Skip to content

Instantly share code, notes, and snippets.

@kynan
Created August 15, 2012 06:43
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save kynan/8f623b103e7488b27ab3 to your computer and use it in GitHub Desktop.
Toggle the touchpad on a DELL E6510
#!/bin/bash
# AlpsPS/2 ALPS DualPoint TouchPad (id: 14)
enabled=`xinput --list-props 14 | grep -e "Device Enabled\ (121):\s*1"`
if [ -n "$enabled" ]; then
xinput --set-prop 14 "Device Enabled" 0
else
xinput --set-prop 14 "Device Enabled" 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment