diff options
author | momo <momo+github@mo2-systems.com> | 2011-09-24 19:21:20 +0200 |
---|---|---|
committer | momo <momo+github@mo2-systems.com> | 2011-09-24 19:21:20 +0200 |
commit | 702389e0c0c22c657c4c0e40c7403dc8366c8cff (patch) | |
tree | 30f0a7b1dbd9a6b572e73859fe60004517810ac4 | |
parent | e239eec5c51fdf6cfe5052820ee050dda3909ae5 (diff) |
//util/bin/untouch: rename to TouchpadToggle
-rwxr-xr-x | util/bin/TouchpadToggle | 8 |
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 + |