summaryrefslogtreecommitdiff
path: root/bin/touchpad
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2016-01-27 13:47:02 +0000
committerUrbain Vaes <urbain@vaes.uk>2016-01-27 13:47:02 +0000
commit5e37d9cc35c6ec8b8387eded126f4a1fb617fd1c (patch)
treed18df68cd01565432312cc8302187f57e8a2f81a /bin/touchpad
parent014c4e6252e829c5e546f9d05ed7ec999e75d3d0 (diff)
parentc223e72d93df76025a365018d44603bf4ce750ea (diff)
Merge branch 'master' of urbainvaes.com:git/dotfiles
Diffstat (limited to 'bin/touchpad')
-rwxr-xr-xbin/touchpad9
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