diff --git a/.local/bin/remapd b/.local/bin/remapd index ee4cf396..8b1eaba9 100755 --- a/.local/bin/remapd +++ b/.local/bin/remapd @@ -1,8 +1,8 @@ -#!/bin/bash +#!/bin/sh # Rerun the remaps script whenever a new input device is added. while :; do remaps - grep -qP -m1 '[^un]bind.+\/[^:]+\(usb\)' <(udevadm monitor -u -t seat -s input -s usb) + watch -gn1 sh -c 'xinput --list | grep keyboard' >/dev/null 2>&1 done