daktilo icon indicating copy to clipboard operation
daktilo copied to clipboard

Possible to treat different keyboard devices differently?

Open QuinnyPig opened this issue 1 year ago • 3 comments

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.

QuinnyPig avatar Oct 31 '23 18:10 QuinnyPig

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.

orhun avatar Nov 02 '23 14:11 orhun

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.

Xenira avatar Nov 02 '23 18:11 Xenira

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.

Xenira avatar Nov 04 '23 21:11 Xenira