summaryrefslogtreecommitdiff
path: root/i3/toggle_mouse.sh
diff options
context:
space:
mode:
authorBlaise Thompson <blaise@untzag.com>2017-10-05 09:31:35 -0700
committerBlaise Thompson <blaise@untzag.com>2017-10-05 09:31:35 -0700
commitcf91b9eb13af5c64a04b1d1c128bd5d2720f299b (patch)
treed9b1be8e9814ae12993bf8c7c29c10e21c4d489d /i3/toggle_mouse.sh
parent3a23c3baf129ccaf927b12c54aa2558e15fb0e19 (diff)
toggle mouse
Diffstat (limited to 'i3/toggle_mouse.sh')
-rwxr-xr-xi3/toggle_mouse.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/i3/toggle_mouse.sh b/i3/toggle_mouse.sh
new file mode 100755
index 0000000..9343810
--- /dev/null
+++ b/i3/toggle_mouse.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+if [ -z "$(synclient | grep TouchpadOff | grep 1)" ]; then
+ synclient TouchpadOff=1
+ unclutter -idle 0 &
+else
+ synclient TouchpadOff=0
+ unclutter -idle 5 &
+fi