Skip to content

Instantly share code, notes, and snippets.

@azh
Created October 26, 2014 04:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azh/480b97f6116d43a7b094 to your computer and use it in GitHub Desktop.
Save azh/480b97f6116d43a7b094 to your computer and use it in GitHub Desktop.
toggles the touchpad on my thinkpad
# 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