diff --git a/HOME/locker.sh b/HOME/locker.sh deleted file mode 100644 index 44367d5..0000000 --- a/HOME/locker.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -set -eu - -RESOLUTION=$(xrandr -q|sed -n 's/.*current[ ]\([0-9]*\) x \([0-9]*\),.*/\1x\2/p') - -# lock the screen -import -silent -window root jpeg:- | convert - -scale 20% -blur 0x2.5 -resize 500% RGB:- | \ - i3lock --raw $RESOLUTION:rgb -i /dev/stdin -e $@ -# TODO fix - doesn't lock! - -exit 0 diff --git a/hjalmar-droneship/i3/config b/hjalmar-droneship/i3/config index c813bc6..77188d1 100644 --- a/hjalmar-droneship/i3/config +++ b/hjalmar-droneship/i3/config @@ -34,7 +34,7 @@ exec --no-startup-id nm-applet exec --no-startup-id nitrogen --restore exec --no-startup-id xfce4-power-manager exec --no-startup-id pamac-tray -exec --no-startup-id xautolock -time 30 -locker ~/dotfiles/HOME/locker.sh +exec --no-startup-id xautolock -time 10 -locker blurlock exec --no-startup-id blueman-applet exec_always --no-startup-id sbxkb exec_always --no-startup-id fix_xcursor @@ -184,7 +184,7 @@ for_window [class="qt5ct"] floating enable sticky enable border normal # Set shut down, restart and locking features set $mode_system (l)ock, (e)xit, switch_(u)ser, (r)eboot, (s)hutdown mode "$mode_system" { - bindsym l exec --no-startup-id sh ~/locker.sh, mode "default" + bindsym l exec --no-startup-id i3exit lock, mode "default" bindsym u exec --no-startup-id i3exit switch_user, mode "default" bindsym e exec --no-startup-id i3exit logout, mode "default" bindsym r exec --no-startup-id i3exit reboot, mode "default" diff --git a/hjalmar-mothership/i3/config b/hjalmar-mothership/i3/config index 27bb40e..7beed18 100644 --- a/hjalmar-mothership/i3/config +++ b/hjalmar-mothership/i3/config @@ -34,7 +34,7 @@ exec --no-startup-id nm-applet exec --no-startup-id nitrogen --restore exec --no-startup-id xfce4-power-manager exec --no-startup-id pamac-tray -exec --no-startup-id xautolock -time 30 -locker ~/dotfiles/HOME/locker.sh +exec --no-startup-id xautolock -time 10 -locker blurlock exec --no-startup-id blueman-applet exec_always --no-startup-id sbxkb exec_always --no-startup-id fix_xcursor @@ -179,7 +179,7 @@ for_window [class="qt5ct"] floating enable sticky enable border normal # Set shut down, restart and locking features set $mode_system (l)ock, (e)xit, switch_(u)ser, (r)eboot, (s)hutdown mode "$mode_system" { - bindsym l exec --no-startup-id sh ~/locker.sh, mode "default" + bindsym l exec --no-startup-id i3exit lock, mode "default" bindsym u exec --no-startup-id i3exit switch_user, mode "default" bindsym e exec --no-startup-id i3exit logout, mode "default" bindsym r exec --no-startup-id i3exit reboot, mode "default"