Skip to content

Instantly share code, notes, and snippets.

@jarun
Created November 4, 2014 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jarun/2657829a674d0acc04eb to your computer and use it in GitHub Desktop.
Save jarun/2657829a674d0acc04eb to your computer and use it in GitHub Desktop.
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