aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtouchpad.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/touchpad.sh b/touchpad.sh
new file mode 100755
index 0000000..0d30c4c
--- /dev/null
+++ b/touchpad.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# Toggles the touchpad
+
+device="PS/2 Generic Mouse"
+[ "$(xinput --list-props "$device" | grep -e "Device Enabled (.*):.*1")" ] && xinput disable "$device" || xinput enable "$device"