2017-08-10 14:49:50 +03:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
|
|
|
|
function parse_actions
|
|
|
|
{
|
|
|
|
while read action _; do
|
|
|
|
case $action in
|
|
|
|
(LOCK|BLANK)
|
|
|
|
/usr/bin/setxkbmap us -option
|
2017-11-28 12:55:22 +02:00
|
|
|
/usr/bin/numlockx off
|
2017-08-10 14:49:50 +03:00
|
|
|
/usr/bin/notify-send DUNST_COMMAND_PAUSE
|
|
|
|
;;
|
|
|
|
(UNBLANK)
|
2017-08-11 18:43:59 +03:00
|
|
|
$HOME/vscripts/mykblayouts
|
2017-08-10 14:49:50 +03:00
|
|
|
/usr/bin/notify-send DUNST_COMMAND_RESUME
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
/usr/bin/xscreensaver-command -watch | parse_actions
|