From 81bbc8fab32528db5eea0e504c38e7c7af1c4faf Mon Sep 17 00:00:00 2001 From: Benjamin Morrison Date: Wed, 20 Apr 2022 21:16:54 -0400 Subject: touchpad tap enable script fixed for drifting prop IDs --- bin/touchpad_enable_tap.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bin/touchpad_enable_tap.sh') diff --git a/bin/touchpad_enable_tap.sh b/bin/touchpad_enable_tap.sh index f457315..d4ac1cb 100755 --- a/bin/touchpad_enable_tap.sh +++ b/bin/touchpad_enable_tap.sh @@ -12,5 +12,11 @@ set -eu # xinput, libinput TOUCHPAD_ID="$(xinput | grep Touchpad | awk '{print $6}' | cut -d'=' -f2)" +TAPPING_PROP_ID="$(xinput list-props 14 | grep 'Tapping Enabled (' | cut -d'(' -f2 | cut -d')' -f1)" -/usr/bin/xinput set-prop "$TOUCHPAD_ID" 320 1 +printf 'Touchpad ID:\t%s\n' "$TOUCHPAD_ID" +printf 'Tapping Prop:\t%s\n' "$TAPPING_PROP_ID" + +/usr/bin/xinput set-prop "$TOUCHPAD_ID" "$TAPPING_PROP_ID" 1 + +printf '\n...Tapping Enabled\n' -- cgit 1.4.1