random script dump
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

xscreensaver-companion 502B

1234567891011121314151617181920
  1. #!/usr/bin/env zsh
  2. function parse_actions
  3. {
  4. while read action _; do
  5. case $action in
  6. (LOCK|BLANK)
  7. /usr/bin/setxkbmap us -option
  8. /usr/bin/numlockx off
  9. /usr/bin/notify-send DUNST_COMMAND_PAUSE
  10. ;;
  11. (UNBLANK)
  12. $HOME/vscripts/mykblayouts
  13. /usr/bin/notify-send DUNST_COMMAND_RESUME
  14. ;;
  15. esac
  16. done
  17. }
  18. /usr/bin/xscreensaver-command -watch | parse_actions