diff options
author | Urbain Vaes <urbain@vaes.uk> | 2016-01-25 12:57:35 +0000 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2016-01-25 12:57:35 +0000 |
commit | c991381d6e6d62ef475bcd7d533cbf0b26656aaa (patch) | |
tree | 858476187629febdb020707ca9674463d2e1fe95 /bin/touchpad | |
parent | 0e54dbcaeb3f20c9e189a7d10e24f3676284795d (diff) |
Add key to disable touchpad
Diffstat (limited to 'bin/touchpad')
-rwxr-xr-x | bin/touchpad | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/touchpad b/bin/touchpad new file mode 100755 index 0000000..17649fa --- /dev/null +++ b/bin/touchpad @@ -0,0 +1,9 @@ +#! /usr/bin/env bash + +# Touchpad status +status=$(synclient -l | grep TouchpadOff) +if [[ $status = *1 ]]; then + synclient TouchpadOff=0 +elif [[ $status = *0 ]]; then + synclient TouchpadOff=1 +fi |