summaryrefslogtreecommitdiffstats
path: root/util/bin/TouchpadToggle
diff options
context:
space:
mode:
Diffstat (limited to 'util/bin/TouchpadToggle')
-rwxr-xr-xutil/bin/TouchpadToggle8
1 files changed, 8 insertions, 0 deletions
diff --git a/util/bin/TouchpadToggle b/util/bin/TouchpadToggle
new file mode 100755
index 00000000..17fd46b8
--- /dev/null
+++ b/util/bin/TouchpadToggle
@@ -0,0 +1,8 @@
+#!/bin/sh
+#
+#This script toggles the touchpad on a netbook using synclient.
+
+status=`synclient|awk '/TouchpadOff/{printf$3}'`
+status=`expr \( $status + 1 \) \% 2`
+synclient TouchpadOff=$status
+