summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authormomo <momo+github@mo2-systems.com>2011-09-24 19:21:20 +0200
committermomo <momo+github@mo2-systems.com>2011-09-24 19:21:20 +0200
commit702389e0c0c22c657c4c0e40c7403dc8366c8cff (patch)
tree30f0a7b1dbd9a6b572e73859fe60004517810ac4 /util
parente239eec5c51fdf6cfe5052820ee050dda3909ae5 (diff)
//util/bin/untouch: rename to TouchpadToggle
Diffstat (limited to 'util')
-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
+