summaryrefslogtreecommitdiffstats
path: root/util/bin/untouch
diff options
context:
space:
mode:
authortv <tv@iiso>2011-09-24 21:14:35 +0200
committertv <tv@iiso>2011-09-24 21:14:35 +0200
commite692ab13d032df6e8c96bf1ec840f366122dca1f (patch)
tree6b5cddee32d52d8de4005c93204665acbb762925 /util/bin/untouch
parenta1885b309ceb50afddf3b6cf758b3569e942ecbb (diff)
parent53679fedeb1db9d68399638fc44aa4cf4ac5ee1c (diff)
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'util/bin/untouch')
-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
+