aboutsummaryrefslogtreecommitdiff
path: root/touchpad.sh
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-04-09 16:14:46 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2019-04-09 16:14:46 +0200
commitaa545098f845e106fd1d641d18ee233b2f879fd2 (patch)
tree84dc7e766c680b01fe82b7c85237765c7d9faecd /touchpad.sh
parentae527d102aee15b0da503056ea1ef4315e7eed83 (diff)
downloadscripts-aa545098f845e106fd1d641d18ee233b2f879fd2.tar.gz
scripts-aa545098f845e106fd1d641d18ee233b2f879fd2.zip
Simple touchpad toggling script.
Diffstat (limited to 'touchpad.sh')
-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"