Created
February 15, 2011 08:37
-
-
Save ino46/827273 to your computer and use it in GitHub Desktop.
TouchPad Enable/Disable
This file contains hidden or 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/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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