Skip to content

Instantly share code, notes, and snippets.

@telmotrooper
Last active May 28, 2018 13:01
Show Gist options
  • Save telmotrooper/78d06dee47970270570adb1c7b121807 to your computer and use it in GitHub Desktop.
Save telmotrooper/78d06dee47970270570adb1c7b121807 to your computer and use it in GitHub Desktop.
Toggle touchpad script (recommended shortcut is "Ctrl + \")
#!/bin/bash
var=$(synclient -l | grep TouchpadOff)
if [[ "$var" == " TouchpadOff = 0" ]]; then
synclient TouchpadOff=1
else
synclient TouchpadOff=0
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment