#!/bin/sh set -e # For each add-event of input subsystem by udev call ~/.xprofile-keyboard udevadm monitor -u -s input | grep --line-buffered add | while read line; do echo ">> $line"; sh ~/.xprofile-udevinput done