x220-acpi: updating getXenv.inc
[shutils.git] / lenovo-x220-linuxacpi / etc / acpi / actions / btn-touchpad.sh
1 #!/bin/sh
2
3 . /usr/local/bin/getXenv.inc
4 getXconsole
5
6 if (synclient -l | grep TouchpadOff | grep -q 0) ; then
7 echo "touchpad on, turning it off"
8 su $XUSER -c "synclient TouchpadOff=1"
9 else
10 echo "touchpad off, turning it on"
11 su $XUSER -c "synclient TouchpadOff=0"
12 fi
13
14