Xscreensaver DND script.
This commit is contained in:
Executable
+22
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
last_state=""
|
||||
|
||||
while IFS= read -r line
|
||||
do
|
||||
case "$line" in
|
||||
BLANK*)
|
||||
;;
|
||||
|
||||
LOCK*)
|
||||
xfconf-query -c xfce4-notifyd -p /do-not-disturb -s true
|
||||
;;
|
||||
|
||||
UNBLANK*)
|
||||
xfconf-query -c xfce4-notifyd -p /do-not-disturb -s false
|
||||
;;
|
||||
esac
|
||||
done < <(xscreensaver-command -watch)
|
||||
|
||||
|
||||
# vim: ft=bash
|
||||
Reference in New Issue
Block a user