Implement Wayland xcb layout options #712
Draft
+22
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #705.
This feature allows uses to have fcitx5 manage their KDE Wayland XKB layout options when switching groups.
Missing things
Before
I wanted to have a French Dvorak layout to type accents with RALT/AltGr level3, and a Japanese Kana layout with RALT mapped to Henkan.
I could have fcitx5 have one of them working automatically when switching between them. I had to change the "3rd level shortcuts" in "KDE System Settings > Input Devices > Keyboards > Layouts." When level3 was enabled, the French worked but the Japanese didn't as the level3 option overrode my custom definition of RALT as Henkan. When level3 was disabled, the French obviously didn't work as it was not enabled, but my custom Japanese RALT Henkan worked as the level3 options was no longer overriding it.
After
I put
Default Layout Options=lv3:ralt_switch_multikey
in my French group in~/.config/fcitx5/profile
, andDefault Layout Options=
in my Japanese group. Now fcitx5 automatically controls my xcb keyboard layout so I can switch between languages conveniently.