waycrate / swhkd

Sxhkd clone for Wayland (works on TTY and X11 too)
https://git.sr.ht/~shinyzenith/swhkd
BSD 2-Clause "Simplified" License
666 stars 47 forks source link

[fix] better keyboard checking #242

Closed aadilshabier closed 4 months ago

aadilshabier commented 4 months ago

Inspired from https://unix.stackexchange.com/questions/523108/getting-type-of-evdev-device. My mouse was incorrectly getting recognized as a keyboard because of this. I tried this on my laptop keyboard and with a couple of keyboards I had lying around, and this seems to be consistent.

NOTE: this needs to be tested across devices and setups