boppreh / keyboard

Hook and simulate global keyboard events on Windows and Linux.
MIT License
3.8k stars 433 forks source link

Support for hardware changes on Linux #26

Open boppreh opened 7 years ago

boppreh commented 7 years ago

Right now if a user plugs or unplugs a keyboard on Linux the library won't realize. Specially now that Linux correctly reports the device id, it should be possible to update hardware changes.

Windows gives this for free.

Utopiah commented 3 years ago

I'm also having this issue. A workaround could be to do the opposite, namely to run the code using the library from a udev rule.

PS: my context is hot plugging a USB keyboard (Anavi MacroPad8) on a headless Raspberry Pi (WebThings IoT gateway).