Skip to content

Instantly share code, notes, and snippets.

@desnudopenguino
Created February 28, 2018 16:01
Show Gist options
  • Save desnudopenguino/e23d8a1f08917448fe1b42ebc4fe6c81 to your computer and use it in GitHub Desktop.
Save desnudopenguino/e23d8a1f08917448fe1b42ebc4fe6c81 to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
# Current state
CUR_STATE=$(synclient -l | grep TouchpadOff | awk '{ print $3 }')
if [ $CUR_STATE = 0 ]; then
synclient TouchpadOff=1
elif [ $CUR_STATE = 1 ]; then
synclient TouchpadOff=0
fi
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment