udevmon requires restart to see new devices
I'm using interception tools 0.3.1 and caps2esc 0.3.4 on my laptop running Arch, using the default udevmon systemd service. My udevmon config is capturing all devices:
- JOB: "intercept -g $DEVNODE | caps2esc -m 1 | uinput -d $DEVNODE"
DEVICE:
EVENTS:
EV_KEY: [KEY_CAPSLOCK, KEY_ESC]
This works as intended for the laptop's built in keyboard. If I plug in an external USB keyboard, the caps lock key is not intercepted until I restart udevmon. After restarting the service, everything works as intended on both the built in and external keyboards. Because this is a laptop, udevmon is usually started before any external keyboard is plugged in. Is there a way for udevmon to recognize a new device without me restarting its systemd service?