summaryrefslogtreecommitdiffstats
path: root/.scripts/toggletouchpad
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-07-29 12:16:54 -0400
committerLuke Smith <luke@lukesmith.xyz>2018-07-29 12:16:54 -0400
commit580a6f6c31a072cee0c97aed58fe13ce8e9ff5a6 (patch)
tree376de8e9ca5dae5ecaad856ceede3449a421a41f /.scripts/toggletouchpad
parentabdfebe38ab1334298cc8dd22e77c2a74123aabc (diff)
downloadeibhear-580a6f6c31a072cee0c97aed58fe13ce8e9ff5a6.tar.gz
eibhear-580a6f6c31a072cee0c97aed58fe13ce8e9ff5a6.tar.zst
eibhear-580a6f6c31a072cee0c97aed58fe13ce8e9ff5a6.zip
toggle touchpad binding and fixes
Diffstat (limited to '.scripts/toggletouchpad')
-rwxr-xr-x.scripts/toggletouchpad4
1 files changed, 4 insertions, 0 deletions
diff --git a/.scripts/toggletouchpad b/.scripts/toggletouchpad
new file mode 100755
index 0000000..bbb4110
--- /dev/null
+++ b/.scripts/toggletouchpad
@@ -0,0 +1,4 @@
+#!/bin/bash
+# Toggle touchpad. Requires xf86-input-synaptics.
+(synclient | grep TouchpadOff.*1 && synclient TouchpadOff=0)>/dev/null && echo "TouchPad reactivated." && exit
+synclient TouchpadOff=1 && echo "TouchPad deactivated."