Skip to content

Instantly share code, notes, and snippets.

@jarun jarun/toggletouch
Created Nov 4, 2014

Embed
What would you like to do?
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
You can’t perform that action at this time.