Skip to content

Instantly share code, notes, and snippets.

Created August 30, 2016 21:52
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 anonymous/670ecbe2b3fb4bf0d2276da7d5ec1927 to your computer and use it in GitHub Desktop.
Save anonymous/670ecbe2b3fb4bf0d2276da7d5ec1927 to your computer and use it in GitHub Desktop.
toggle touch pad shell script
#!/bin/bash
device="SynPS/2 Synaptics TouchPad"
state=$(xinput list-props "$device" | grep "Device Enabled" | cut -f3)
if [ $state == 1 ]; then
xinput --disable "$device"
else
xinput --enable "$device"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment