Regression: Caps Lock can't be set as keyboard layout switch shortcut
Affected version
Fedora Silverblue 39, 40
Mutter 45, 46.beta
Wayland
Bug summary
Earlier, with XKB Options I was able to set Caps Lock as a shortcut to switch the keyboard layout, e.g.
gsettings set org.gnome.desktop.input-sources xkb-options "['grp:caps_toggle']"
Now the option doesn't take place for the Caps Lock, specifically:
instead, the key behaves as usual, upper-casing the symbols typed afterwards.
Other modifiers (Ctrl, Shift) can be set this way, however, they still do not produce the layouts OSD you get while switching with usual default combination Super + Space. The layout switches, though.
Steps to reproduce
- Add some additional layouts in Settings
- Configure XKB Options (optionally, with Gnome Tweaks) to set Caps Lock as a shortcut to switch the layouts:
gsettings set org.gnome.desktop.input-sources xkb-options "['grp:caps_toggle']"
What happened
Nothing happens. Caps Lock continues to switch the "Caps" state, as usual.
What did you expect to happen
Caps Lock switches the layouts.
Relevant logs, screenshots, screencasts etc.
I can't reproduce the issue on Ubuntu 23.10 with Gnome 45.1.
Not sure if Ubuntu patched the Gnome in some way, or it's distribution problem specific to Fedora.
Please help to investigate.
xkbcommon error:
мар 09 23:03:21 host gnome-shell[1966]: xkbcommon: ERROR: [XKB-661] Couldn't process include statement for 'capslock(grouplock)'
мар 09 23:03:21 host gnome-shell[1966]: xkbcommon: ERROR: [XKB-769] Abandoning symbols file "(unnamed)"
мар 09 23:03:21 host gnome-shell[1966]: xkbcommon: ERROR: Failed to compile xkb_symbols
мар 09 23:03:21 host gnome-shell[1966]: xkbcommon: ERROR: Failed to compile keymap
мар 09 23:03:21 host gnome-shell[1966]: xkbcommon: ERROR: [XKB-661] Couldn't process include statement for 'capslock(grouplock)'
мар 09 23:03:21 host gnome-shell[1966]: xkbcommon: ERROR: [XKB-769] Abandoning symbols file "(unnamed)"
мар 09 23:03:21 host gnome-shell[1966]: xkbcommon: ERROR: Failed to compile xkb_symbols
мар 09 23:03:21 host gnome-shell[1966]: xkbcommon: ERROR: Failed to compile keymap
мар 09 23:03:21 host gnome-shell[1966]: Unable to load configured keymap: rules=evdev, model=pc105+inet, layout=us,us, variant=,, options=grp:caps_toggle