2023-12-14 09:43:23 +01:00

9 lines
167 B
Bash
Executable File

#!/bin/sh
# Rerun the remaps script whenever a new input device is added.
while :; do
remaps
watch -gn1 sh -c 'xinput --list | grep keyboard' >/dev/null 2>&1
done