waycrate / swhkd

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

[feat] enable users to specify keyboard devices through arguments #132

Closed EdenQwQ closed 2 years ago

EdenQwQ commented 2 years ago

example:

pkexec swhkd -D "/dev/input/event0" -D "/dev/input/event1"

use -D or --device to specify a device and the argument can occur multiply.

If the argument is not presented, we'll automatically detect all the keyboard devices.

Shinyzenith commented 2 years ago

Path can change often, maybe a name based identifier would help too?