Created
July 29, 2014 22:53
-
-
Save madtrapper/0f8dfb44dac063cacc34 to your computer and use it in GitHub Desktop.
disableTrackpad
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 | |
mode="$(xinput list-props 11|grep "Device Enabled"|cut -d ':' -f2)" | |
if [ $mode -eq "1" ]; then | |
xinput set-prop 11 "Device Enabled" 0 | |
else | |
xinput set-prop 11 "Device Enabled" 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment