summary refs log tree commit diff stats
path: root/bin
diff options
context:
space:
mode:
authorBenjamin Morrison <ben@gbmor.org>2023-11-06 22:15:23 -0500
committerBenjamin Morrison <ben@gbmor.org>2023-11-06 22:15:23 -0500
commitdc500844c448deb46aa8613faa3d295a0061965c (patch)
treed8090e57e9d728f6119d34d05b730d4cf168ddfc /bin
parentc5bae0a85eccbfb07fa5b269b3e8d73e7a60bac4 (diff)
downloaddogfiles-dc500844c448deb46aa8613faa3d295a0061965c.tar.gz
config drifted. HEAD trunk
Diffstat (limited to 'bin')
-rwxr-xr-xbin/touchpad_enable_tap.sh13
-rwxr-xr-xbin/yubikey_detect_touch.sh10
2 files changed, 19 insertions, 4 deletions
diff --git a/bin/touchpad_enable_tap.sh b/bin/touchpad_enable_tap.sh
index 938c652..fbe1150 100755
--- a/bin/touchpad_enable_tap.sh
+++ b/bin/touchpad_enable_tap.sh
@@ -13,11 +13,16 @@ set -eu
 #       xinput, libinput
 
 TOUCHPAD_ID="$(xinput | awk '/Touchpad/ {split($6, a, "="); print a[2]}')"
-TAPPING_PROP_ID="$(xinput list-props "$TOUCHPAD_ID" | awk '/Tapping Enabled \(/ {split($4, a, "[()]"); print a[2]}')"
+#TAPPING_PROP_ID="$(xinput list-props "$TOUCHPAD_ID" | awk '/Tapping Enabled \(/ {split($4, a, "[()]"); print a[2]}')"
+TAPPING_PROP_ID="$(xinput list-props "$TOUCHPAD_ID" | awk '/Tap Action \(/ {split($4, a, "[()]"); print a[2]}')"
+PALM_DETECT_PROP="$(xinput list-props "$TOUCHPAD_ID" | awk '/Palm Detection \(/ {split($4, a, "[()]"); print a[2]}')"
 
-printf 'Touchpad ID:\t%s\n' "$TOUCHPAD_ID"
-printf 'Tapping Prop:\t%s\n' "$TAPPING_PROP_ID"
+printf 'Touchpad ID:\t\t%s\n' "$TOUCHPAD_ID"
+printf 'Tapping Prop:\t\t%s\n' "$TAPPING_PROP_ID"
+printf "Palm Detect Prop:\t%s\n" "$PALM_DETECT_PROP"
 
-/usr/bin/xinput set-prop "$TOUCHPAD_ID" "$TAPPING_PROP_ID" 1
+/usr/bin/xinput set-prop "$TOUCHPAD_ID" "$TAPPING_PROP_ID" 1 1 1 1 1 1
+/usr/bin/xinput set-prop "$TOUCHPAD_ID" "$PALM_DETECT_PROP" 1
 
 printf '\n...Tapping Enabled\n'
+
diff --git a/bin/yubikey_detect_touch.sh b/bin/yubikey_detect_touch.sh
new file mode 100755
index 0000000..ce4893e
--- /dev/null
+++ b/bin/yubikey_detect_touch.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+
+if ! pgrep yubikey-touch-detector; then
+    yubikey-touch-detector &
+fi
+
+if ! pgrep yubikey-push-the-button; then
+    yubikey-push-the-button &
+fi