Skip to content

Instantly share code, notes, and snippets.

@DaikiMaekawa
Created April 27, 2013 01:58
Show Gist options
  • Save DaikiMaekawa/5471585 to your computer and use it in GitHub Desktop.
Save DaikiMaekawa/5471585 to your computer and use it in GitHub Desktop.
Script turning on and off the touchpad
#! /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