/touchpad_toggle Secret
Created
August 15, 2012 06:43
Toggle the touchpad on a DELL E6510
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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