Created
August 30, 2016 21:52
-
-
Save anonymous/670ecbe2b3fb4bf0d2276da7d5ec1927 to your computer and use it in GitHub Desktop.
toggle touch pad shell script
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 | |
device="SynPS/2 Synaptics TouchPad" | |
state=$(xinput list-props "$device" | grep "Device Enabled" | cut -f3) | |
if [ $state == 1 ]; then | |
xinput --disable "$device" | |
else | |
xinput --enable "$device" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment