summarylogtreecommitdiffstats
path: root/touchpad-toggle.sh
diff options
context:
space:
mode:
authorTheo J.A. de Vries2015-07-30 10:35:42 +0200
committerTheo J.A. de Vries2015-07-30 10:35:42 +0200
commit620fffa126b3a5d3b16f864cbd9ba6bb4ec8997c (patch)
treeceb2a97b8ed4efa5bb12d25bb4756aaa440e2e18 /touchpad-toggle.sh
downloadaur-620fffa126b3a5d3b16f864cbd9ba6bb4ec8997c.tar.gz
Initial commit
Diffstat (limited to 'touchpad-toggle.sh')
-rwxr-xr-xtouchpad-toggle.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/touchpad-toggle.sh b/touchpad-toggle.sh
new file mode 100755
index 000000000000..913e87688915
--- /dev/null
+++ b/touchpad-toggle.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+# Script to toggle the touchpad
+# See https://wiki.archlinux.org/index.php/Touchpad_Synaptics#Software_toggle
+# Use desktop environment to set keyboard shortcut.
+
+synclient TouchpadOff=$(synclient -l | grep -c 'TouchpadOff.*=.*0')