From cf49e9f48d07c33bf794fc4096a8cd46ac0af69a Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Wed, 13 Dec 2023 14:22:27 +0100 Subject: [PATCH] improve remapd detection --- .local/bin/daemons/remapd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.local/bin/daemons/remapd b/.local/bin/daemons/remapd index 1b47500cb..709edf68e 100755 --- a/.local/bin/daemons/remapd +++ b/.local/bin/daemons/remapd @@ -1,5 +1,5 @@ -#!/bin/bash +#!/bin/sh while :; do - grep -qP -m1 '[^un]bind.+\/[^:]+\(usb\)' <(udevadm monitor -u -t seat -s input -s usb) - remaps -qd + watch -gn1 eval 'xinput --list | grep keyboard' + remaps -qd done