Merge branch 'master' of https://gitea.nerdland.org/adam/cshenv into master

* 'master' of https://gitea.nerdland.org/adam/cshenv:
  Xscreensaver DND script.
This commit is contained in:
2026-04-09 12:34:40 -04:00
+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