Open setpill opened 4 years ago
To work around this limitation, I used to use inotifywait
on /sys/class/leds/input*::capslock/brightness
in a script to monitor the caps lock status. But inotifywait
is spotty on /sys
(depending on the kernel version) and this solution recently broke after an update. Being able to monitor the locks through swaymsg
would be great.
Currently keyboard layout information is exposed through
GET_INPUTS
; it would be useful to also be able to read the status of the different keyboard locks. An example usecase would be to implement on-screen keyboard lock indicators in waybar; useful if there's no hardware indicator leds.Ideally any change in these would also be exposed through the
INPUT
event.