Created
April 27, 2013 01:58
-
-
Save DaikiMaekawa/5471585 to your computer and use it in GitHub Desktop.
Script turning on and off the touchpad
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 | |
TOUCH_PAD='AlpsPS/2 ALPS DualPoint TouchPad' | |
if xinput list "$TOUCH_PAD" >/dev/null 2>&1; then | |
if(xinput list "$TOUCH_PAD" | grep disabled) >/dev/null 2>&1; then | |
xinput set-prop "$TOUCH_PAD" 'Device Enabled' 1 | |
else | |
xinput set-prop "$TOUCH_PAD" 'Device Enabled' 0 | |
fi | |
else | |
echo 'TouchPad 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