Skip to content

Instantly share code, notes, and snippets.

@madtrapper
Created July 29, 2014 22:53
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 madtrapper/0f8dfb44dac063cacc34 to your computer and use it in GitHub Desktop.
Save madtrapper/0f8dfb44dac063cacc34 to your computer and use it in GitHub Desktop.
disableTrackpad
#!/bin/bash
mode="$(xinput list-props 11|grep "Device Enabled"|cut -d ':' -f2)"
if [ $mode -eq "1" ]; then
xinput set-prop 11 "Device Enabled" 0
else
xinput set-prop 11 "Device Enabled" 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment