#Script to toggle TouchPad on/off on dell XPS L702x
#http://blog.mazesloup.fr
#Author : Mathieu Courquin
#!/bin/bash                                                                                          
enabled=`xinput --list-props "SynPS/2 Synaptics TouchPad" | grep -e "Device Enabled\ (127):\s*1"`

if [ -n "$enabled" ]; then
    xinput --set-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 0
else
    xinput --set-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 1
fi

