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."