daktilo
daktilo copied to clipboard
Possible to treat different keyboard devices differently?
As a user, I would like to be able to have my Yubikey physically scream when I push the button. For some unknown reason, Yubico refuses to support this in hardware, so I'm falling back to a software option here.
I think rdev only supports listening for keyboard and mouse events. I'm not familiar with Yubikey but if it is recognized as a keyboard then it should be somehow possible to query events from it. Otherwise it needs some custom logic - we probably need to look for some other Rust library for that. Needs some investigation.
I own a yubikey and I am not sure if that is something you can easily listen to.
It can act as a keyboard in some cases, but the button itself does not. Without further researching the topic I am not even sure if you can get that information, as this is a security feature internal to the yubikey. If there is a lib that supports getting that information #54 might provide an interface to make daktilo respond to it.
Regardless of whether the yubikey can be supported I like the idea of having different presets based on the keyboard used.
A good use case would be laptop keyboard vs usb keyboard.