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