toggle the touchpad
#!/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