summarylogtreecommitdiffstats
path: root/touchpad-toggle.sh
diff options
context:
space:
mode:
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')