From a8a12804dd43b4f8b91df3dac65f896f1e467f53 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Thu, 19 Mar 2015 14:49:06 -0400 Subject: [sxhkd] shortcut for [dis/en]abling the touchpad can disable the touchpad and hide the pointer requires synclient for disabling the touchapd and unclutter for hiding the mouse --- sxhkd/.local/bin/toggle-mouse | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 sxhkd/.local/bin/toggle-mouse (limited to 'sxhkd/.local/bin/toggle-mouse') 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 -- cgit v1.2.3-60-g2f50