Merge 1e35ff5c7d1f4f14f23fcbd667a7117b7b70b852 into 07952026753f1bbeaf5b6c4eb5414a9c51536041

This commit is contained in:
snailed 2023-12-14 15:33:10 +00:00 committed by GitHub
commit 08c5f986a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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