vscripts/lock-screen
2017-06-27 17:29:20 +03:00

10 lines
398 B
Bash
Executable file

#!/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
/usr/bin/setxkbmap -layout us -variant altgr-intl
until /usr/bin/i3lock -entc 661111 -i $BACKGROUND; do :; done
$HOME/vscripts/mykblayouts
/usr/bin/rm $BACKGROUND
/usr/bin/notify-send DUNST_COMMAND_RESUME