summaryrefslogtreecommitdiff
path: root/toggletouchpad
diff options
context:
space:
mode:
Diffstat (limited to 'toggletouchpad')
-rwxr-xr-xtoggletouchpad13
1 files changed, 0 insertions, 13 deletions
diff --git a/toggletouchpad b/toggletouchpad
deleted file mode 100755
index f00dd4f..0000000
--- a/toggletouchpad
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-type synclient >/dev/null 2>&1 && synclient >/dev/null 2>&1 && SYNCLIENT=y || type xinput >/dev/null 2>&1 && XINPUT=y || echo "This script requires X11"
-[ -n "$SYNCLIENT" ] && TOUCHPADSTATE=`synclient | grep "TouchpadOff" | sed -e "s/^\s*TouchpadOff\s*=\s*//" -e "s/1/y/" -e "s/0/n/"`
-[ -n "$XINPUT" ] && DEVICE=`xinput | grep -i touchpad | sed -e 's/.*id\=//' -e 's/\s*\[.*//'`
-#echo "$DEVICE"
-[ -n "$XINPUT" -a -n "$DEVICE" ] && TOUCHPADSTATE=`xinput list-props $DEVICE | grep -i 'device enabled' | sed -e 's/.*:\s*//' -e 's/0/y/' -e 's/1/n/'`
-#echo "$TOUCHPADSTATE $SYNCLIENT $XINPUT"
-[ -z "$SYNCLIENT" -a -z "$XINPUT" -o -z "$TOUCHPADSTATE" ] && echo "Couldn't use either synclient or xinput" && exit
-[ ! "$TOUCHPADSTATE" = "y" ] || unset TOUCHPADSTATE
-[ -z "$TOUCHPADSTATE" -a -n "$SYNCLIENT" ] && synclient "touchpadoff=0" && notify-send "Enabled Touchpad"
-[ -n "$TOUCHPADSTATE" -a -n "$SYNCLIENT" ] && synclient "touchpadoff=1" && notify-send "Disabled Touchpad"
-[ -z "$TOUCHPADSTATE" -a -n "$XINPUT" ] && xinput enable "$DEVICE" && notify-send "Enabled Touchpad"
-[ -n "$TOUCHPADSTATE" -a -n "$XINPUT" ] && xinput disable "$DEVICE" && notify-send "Disabled Touchpad"