Skip to content

Instantly share code, notes, and snippets.

@kynan
Created August 15, 2012 06:43
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