#!/bin/sh # Rerun the remaps script whenever a new input device is added. while :; do remaps watch -n1 -g xinput --list done