From 7639a8d8c69a6a695346905e78f0726e43b2fde4 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 19 May 2019 20:55:42 -0400 Subject: [PATCH] touchpad done by sxhkd --- .config/sxhkd/sxhkdrc | 6 ++++++ .local/bin/toggletouchpad | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) delete mode 100755 .local/bin/toggletouchpad diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 7bf63df..8c2a677 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -43,6 +43,12 @@ super + x mpc pause; pauseallmpv; i3lock -e -f -c 1d2021; xset dpms force off XF86Launch1 xset dpms force off +XF86TouchpadToggle + (synclient | grep "TouchpadOff.*1" && synclient TouchpadOff=0)>/dev/null || synclient TouchpadOff=1 +XF86TouchpadOff + synclient TouchpadOff=1 +XF86TouchpadOn + synclient TouchpadOff=0 # Recording # Take screenshot diff --git a/.local/bin/toggletouchpad b/.local/bin/toggletouchpad deleted file mode 100755 index 6d8c9c8..0000000 --- a/.local/bin/toggletouchpad +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -# 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."