From 580a6f6c31a072cee0c97aed58fe13ce8e9ff5a6 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 29 Jul 2018 12:16:54 -0400 Subject: [PATCH] toggle touchpad binding and fixes --- .config/i3/config | 6 +++--- .scripts/toggletouchpad | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100755 .scripts/toggletouchpad diff --git a/.config/i3/config b/.config/i3/config index e9d0f89..926a119 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -387,9 +387,9 @@ bindsym XF86Reload restart ##bindsym XF86Launch8 exec ##bindsym XF86Launch9 exec #bindsym XF86AudioMicMute exec $micmute -##bindsym XF86TouchpadToggle exec -bindsym XF86TouchpadOn exec --no-startup-id exec synclient TouchpadOff=0 -bindsym XF86TouchpadOff exec --no-startup-id exec synclient TouchpadOff=1 +bindsym XF86TouchpadToggle exec --no-startup-id toggletouchpad +bindsym XF86TouchpadOn exec --no-startup-id synclient TouchpadOff=0 +bindsym XF86TouchpadOff exec --no-startup-id synclient TouchpadOff=1 bindsym XF86Suspend exec --no-startup-id ~/.config/i3/lock.sh bindsym XF86Close kill bindsym XF86WebCam exec --no-startup-id camtoggle 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."