diff options
Diffstat (limited to 'dot.local-bin-xscreensaver--dunst--watch')
| -rwxr-xr-x | dot.local-bin-xscreensaver--dunst--watch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/dot.local-bin-xscreensaver--dunst--watch b/dot.local-bin-xscreensaver--dunst--watch new file mode 100755 index 0000000..4b5a4ca --- /dev/null +++ b/dot.local-bin-xscreensaver--dunst--watch @@ -0,0 +1,13 @@ +#!/bin/sh +xscreensaver-command -watch | while read event rest; do + case $event in + "LOCK"|"BLANK") + pkill -USR1 -x -u `id -u` dunst + logger Paused dunst + ;; + "UNBLANK") + pkill -USR2 -x -u `id -u` dunst + logger Resumed dunst + ;; + esac +done |
