xscreensaver-companion and a small fix to dmenu_ssh

This commit is contained in:
Von Random 2017-08-10 14:49:50 +03:00
parent 09631ca385
commit 6bc06170d5
2 changed files with 19 additions and 1 deletions

19
xscreensaver-companion Executable file
View file

@ -0,0 +1,19 @@
#!/usr/bin/env zsh
function parse_actions
{
while read action _; do
case $action in
(LOCK|BLANK)
/usr/bin/setxkbmap us -option
/usr/bin/notify-send DUNST_COMMAND_PAUSE
;;
(UNBLANK)
/home/von/vscripts/mykblayouts
/usr/bin/notify-send DUNST_COMMAND_RESUME
;;
esac
done
}
/usr/bin/xscreensaver-command -watch | parse_actions