aboutsummaryrefslogtreecommitdiff
path: root/dot.local-bin-xscreensaver--dunst--watch
blob: 2401cb0ce7d104c65b09415e1ec809e2bb6eef1d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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
logger Exiting with $?