ErikReider/SwayOSD

caps-lock osd not respecting capslock swap

Doomer-Cat opened this issue · 3 comments

I use capslock:swapescape a lot

The osd activates when i hit escape (actual key: capslock)
and doesn't when i hit capslock (actual key: escape)

input "type:keyboard" xkb_options caps:swapescape

Workaround is not using the backend like mentioned in the readme.md but remaining issue is the osd being activated by escape key in this case

PS: i have a device without capslock led (sys class is still there tho. don't know if that's usually the case)

I have the same issue, im running hyprland though, i had to set this in my config file
bind = ,Caps_lock, exec, sleep 0.1 && swayosd-client --caps-lock
In my case for example, in order for the caps lock on/off to appear on screen only when i press caps lock (actual key escape), i have to run swayosd-server and then do systemctl stop swayosd-server(not the actual name of the process, something like swaysod backend service).

remapping capslock with a tool like keyd instead of through the sway config fixes this as it works on a system level.