vscripts/lock-screen

11 lines
408 B
Text
Raw Normal View History

#!/usr/bin/env zsh
BACKGROUND='/tmp/screen_locked.png'
/usr/bin/notify-send DUNST_COMMAND_PAUSE
/usr/bin/scrot $BACKGROUND
/usr/bin/mogrify -scale 10% -colorspace GRAY -scale 1000% $BACKGROUND
2017-06-27 15:54:27 +03:00
/usr/bin/setxkbmap 'ducky_mini(us)'
until /usr/bin/i3lock -entc 661111 -i $BACKGROUND; do :; done
2017-06-27 15:54:27 +03:00
/usr/bin/setxkbmap 'ducky_mini(us),ducky_mini(ru)'
/usr/bin/rm $BACKGROUND
/usr/bin/notify-send DUNST_COMMAND_RESUME