summaryrefslogtreecommitdiffstats
path: root/sxhkd/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsxhkd/.local/bin/toggle-mouse11
1 files changed, 11 insertions, 0 deletions
diff --git a/sxhkd/.local/bin/toggle-mouse b/sxhkd/.local/bin/toggle-mouse
new file mode 100755
index 0000000..906fdbb
--- /dev/null
+++ b/sxhkd/.local/bin/toggle-mouse
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+touchpad_off="$(synclient -l | grep TouchpadOff | cut -d'=' -f 2 | xargs)"
+
+if [ "$touchpad_off" = "0" ]; then
+ synclient TouchpadOff=1
+ unclutter -idle 1 &
+else
+ synclient TouchpadOff=0
+ killall unclutter
+fi