From 1fb96a001b687525b5e05e5ca7bead35774e426a Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Thu, 9 Apr 2026 12:31:28 -0400 Subject: [PATCH 1/2] Xscreensaver DND script. --- bin/xscreensaver-dnd.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 bin/xscreensaver-dnd.sh diff --git a/bin/xscreensaver-dnd.sh b/bin/xscreensaver-dnd.sh new file mode 100755 index 0000000..84b0e4d --- /dev/null +++ b/bin/xscreensaver-dnd.sh @@ -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 From 0c7ec22e76f1ea6ecfad0c29e6fe353728b403bb Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Thu, 9 Apr 2026 13:55:47 -0400 Subject: [PATCH 2/2] Touchpad helper. --- bin/setup-touch.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 bin/setup-touch.sh diff --git a/bin/setup-touch.sh b/bin/setup-touch.sh new file mode 100755 index 0000000..bdfe870 --- /dev/null +++ b/bin/setup-touch.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +DEVICE="$(xinput list --name-only | grep "Touchpad$")" +echo Device is ${DEVICE} +xinput set-prop "${DEVICE}" "libinput Tapping Enabled" 1 +#xinput set-prop "Virtual core pointer" "libinput Tapping Enabled" 1