summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authormomo <momo+github@mo2-systems.com>2011-09-23 21:20:14 +0200
committermomo <momo+github@mo2-systems.com>2011-09-23 21:20:14 +0200
commit41619778f2a32c9c78422a0bd7b15209bc13f68a (patch)
tree0f3259c7346cb306b261e33958c1d20fb4f1f458 /util
parentf97bb70e6f3372c6bbbc70a057cc6880f1044c9a (diff)
//util/bin/untouch: initial commit
Diffstat (limited to 'util')
-rwxr-xr-xutil/bin/untouch8
1 files changed, 8 insertions, 0 deletions
diff --git a/util/bin/untouch b/util/bin/untouch
new file mode 100755
index 00000000..17fd46b8
--- /dev/null
+++ b/util/bin/untouch
@@ -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
+