Created
November 4, 2014 20:38
-
-
Save jarun/2657829a674d0acc04eb to your computer and use it in GitHub Desktop.
toggle the touchpad
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
#!/bin/bash | |
#SYNSTATE=$(xinput list-props "SynPS/2 Synaptics TouchPad" | grep Enabled | grep -Eo '.$') | |
#if [ $SYNSTATE = 0 ]; then xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 8 1 | |
#else xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 8 0 | |
#fi | |
SYNSTATE=$(synclient -l|grep TouchpadOff|cut -d = -f2) | |
if [ $SYNSTATE = 0 ]; then synclient touchpadoff=1 | |
else synclient touchpadoff=0 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment