Skip to content

Instantly share code, notes, and snippets.

@tmhedberg
Created May 17, 2011 03:28
Show Gist options
  • Save tmhedberg/975876 to your computer and use it in GitHub Desktop.
Save tmhedberg/975876 to your computer and use it in GitHub Desktop.
Toggle Synaptics touchpad on/off
#!/bin/bash
cmd='synclient TouchpadOff='
[[ $(
synclient |
grep '^\s*TouchpadOff' |
awk '{print $3}'
) == 0 ]] &&
${cmd}1 ||
${cmd}0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment