Skip to content

Instantly share code, notes, and snippets.

@pablopalacios
Last active October 9, 2018 13:58
Show Gist options
  • Save pablopalacios/823bea7c445e249fde15b3624fb7d167 to your computer and use it in GitHub Desktop.
Save pablopalacios/823bea7c445e249fde15b3624fb7d167 to your computer and use it in GitHub Desktop.
enable-tapping.sh
#!/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