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 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