Xscreensaver DND script.

This commit is contained in:
2026-04-09 12:31:28 -04:00
parent 4dafa86f71
commit 1fb96a001b
+22
View File
@@ -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