Merge branch 'master' of https://gitea.nerdland.org/adam/cshenv into master
* 'master' of https://gitea.nerdland.org/adam/cshenv: Touchpad helper. Xscreensaver DND script.
This commit is contained in:
Executable
+5
@@ -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
|
||||||
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