Skip to content

Instantly share code, notes, and snippets.

@ino46
Created February 15, 2011 08:37
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 ino46/827273 to your computer and use it in GitHub Desktop.
Save ino46/827273 to your computer and use it in GitHub Desktop.
TouchPad Enable/Disable
#!/bin/sh
# TouchPad Enable/Disable
# tested on ASRock Multibook G22 + Ubuntu 10.04
myTouchPadDevice='SynPS/2 Synaptics TouchPad'
# How to get the device name
# $ xinput list
if xinput list "$myTouchPadDevice" >/dev/null 2>&1; then
if (xinput list "$myTouchPadDevice" | grep disabled) >/dev/null 2>&1; then
echo 'TouchPad: Disabled -> Enabled'
xinput set-prop "$myTouchPadDevice" 'Device Enabled' 1
else
echo 'TouchPad: Enabled -> Disable'
xinput set-prop "$myTouchPadDevice" 'Device Enabled' 0
fi
else
echo 'Device Not Found...'
exit 1
fi
exit 0
@HackerGprat
Copy link

i want gesture like double tap in the top left corner to enable and disable touchpad .. like windwos 10 is there any software or script for it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment