#!/bin/sh # Rerun the remaps script whenever a new input device is added. while :; do udevadm monitor -u -t seat -s input -s usb | grep --line-buffer -m1 -P '[^un]bind' sleep 1 remaps us:dvorak done