rvaiya / keyd

A key remapping daemon for linux.
MIT License
2.78k stars 166 forks source link

capslock = overload(control, esc) doesnt work when ctrl is used for layout changing #818

Open stCarolas opened 1 month ago

stCarolas commented 1 month ago

Sway WM, to reproduce we should have in sway config

input type:keyboard {
    xkb_layout us,ru
    xkb_options grp:lctrl_rctrl_switch,ctrl:nocaps
}

and in keyd config

[ids]
*

[main]
capslock = overload(control, esc)

As result, capslock would work as Esc when pressed but will do nothing while held.

This scenario usually works great with old XCape and with https://codeberg.org/valpackett/evscript for example