-
-
Save fathergoose/047df1698a8a74928a45534d747d51a2 to your computer and use it in GitHub Desktop.
A shell script to toggle tap to click on my Dell XPS13 L321X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
a=( $(xinput list-props "CyPS/2 Cypress Trackpad" | grep 'Tap Action') ) | |
if [[ ${a[4]} == "2," ]] | |
then | |
xinput set-prop "CyPS/2 Cypress Trackpad" "Synaptics Tap Action" 0 | |
echo Tap to click is now off | |
else | |
xinput set-prop "CyPS/2 Cypress Trackpad" "Synaptics Tap Action" 2, 3, 0, 0, 1, 3, 2 | |
echo Tap to click is now on | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment