Created
October 26, 2014 04:23
-
-
Save azh/480b97f6116d43a7b094 to your computer and use it in GitHub Desktop.
toggles the touchpad on my thinkpad
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
# enables and disables the touchpad for people that don't only use the nub | |
TOGGLE=$HOME/.tpadoff | |
if [ ! -e $TOGGLE ]; then | |
touch $TOGGLE | |
synclient Touchpadoff=1 | |
echo "Touchpad off" | |
else | |
rm $TOGGLE | |
synclient Touchpadoff=0 | |
echo "Touchpad on" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment