Created
October 20, 2013 10:21
-
-
Save czepluch/7067662 to your computer and use it in GitHub Desktop.
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
event=button.fnf1 FNF1 | |
action=/etc/acpi/actions/toggle-touchpad.sh "%e" |
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
PATH="/bin:/usr/bin:/sbin:/usr/sbin" | |
export DISPLAY=:0 | |
USER=`who | grep ':0' | grep -o '^\w*' | head -n1` | |
if [ "$(su "$USER" -c "synclient -l" | grep TouchpadOff | awk '{print $3}')" == "0" ]; then | |
su "$USER" -c "synclient TouchpadOff=1" | |
else | |
su "$USER" -c "synclient TouchpadOff=0" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment