dotfiles

personal dotfiles
git clone anongit@rnpnr.xyz:dotfiles.git
Log | Files | Refs | Feed | Submodules

Commit: 036e6cb27a4828c0ab68c6cc1c87c10450913595
Parent: 55bc1f52d5a0ec257cdb740dfb1a7b547dd0ef01
Author: Randy Palamar
Date:   Fri, 28 Jun 2024 09:45:27 -0600

trackpad: fix for new way xinput lists disabled devices

Diffstat:
Mbin/trackpad | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/bin/trackpad b/bin/trackpad @@ -2,7 +2,11 @@ # (de)activate/toggle trackpad -tp=$(xinput list | sed -n '/Touchpad/{s:.*↳ \(.*\)id=.*:\1:;s:[[:space:]]*$::p}') || exit 0 +tp=$(xinput list | sed -n '/Touchpad/{ + s:.*↳ \(.*\)id=.*:\1:; + s:∼ \(.*\)id=.*:\1:; + s:[[:space:]]*$::p +}' | head -1) || exit 0 enabled=$(xinput list-props "$tp" | awk '/Device Enabled/{print $4}') [ $# -eq 1 ] || set err