diff options
author | Benjamin Morrison <ben@gbmor.org> | 2022-04-20 21:16:54 -0400 |
---|---|---|
committer | Benjamin Morrison <ben@gbmor.org> | 2022-04-20 21:16:54 -0400 |
commit | 81bbc8fab32528db5eea0e504c38e7c7af1c4faf (patch) | |
tree | 7c68f3b84886d600ded3588e4d039e8c53f9569e /bin/touchpad_enable_tap.sh | |
parent | 2373fef1e5f973085d7022418532961642c120a6 (diff) | |
download | dogfiles-81bbc8fab32528db5eea0e504c38e7c7af1c4faf.tar.gz |
touchpad tap enable script fixed for drifting prop IDs
Diffstat (limited to 'bin/touchpad_enable_tap.sh')
-rwxr-xr-x | bin/touchpad_enable_tap.sh | 8 |
1 files changed, 7 insertions, 1 deletions
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' |