Last active
October 9, 2018 13:58
-
-
Save pablopalacios/823bea7c445e249fde15b3624fb7d167 to your computer and use it in GitHub Desktop.
enable-tapping.sh
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
#!/usr/bin/bash | |
enable_tapping() { | |
device='SynPS/2 Synaptics TouchPad' | |
prop=$(xinput list-props "$device" | grep 'Tapping Enabled (') | |
regex='([0-9]+)' | |
if [[ $prop =~ $regex ]]; then | |
xinput set-prop "$device" ${BASH_REMATCH[1]} 1 | |
else | |
echo 'something went wrong' | |
fi | |
} | |
enable_tapping |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment