Skip to content

Keep fcitx5 aligned with Hyprland keyboard layouts - #9565

Open
rookepoole wants to merge 1 commit into
omacom:quattrofrom
rookepoole:fix/fcitx5-multi-layout
Open

rookepoole wants to merge 1 commit into
omacom:quattrofrom
rookepoole:fix/fcitx5-multi-layout

Conversation

@rookepoole

Copy link
Copy Markdown
Contributor

Summary

  • keep fcitx5's keyboard engine aligned with Hyprland activelayout events
  • add the configured XKB layouts only to an untouched or previously Omarchy-managed fcitx5 group
  • preserve customized groups and active non-keyboard input methods, while ignoring fcitx5's virtual-keyboard events
  • document how synchronization interacts with custom fcitx5 groups

Testing

  • test/shell.d/fcitx5-layout-sync-test.sh
  • test/shell.d/systemd-test.sh
  • ./test/all (new coverage passes; the suite retains five unrelated baseline failures: three require the separate omarchy-pkgs checkout, two upstream test files are not executable, and the headless terminal-size animation assertion fails)

Closes #9552

@rookepoole

rookepoole commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor Author

Retested on 2026-10-07 after updating this system to Omarchy 4.0.4-1 / fcitx5 5.1.22-1.

  • At PR head bb4a47dd9669753cd08c5a6da1deca953e6da03a: fcitx5-layout-sync-test.sh passes its 3 assertions and systemd-test.sh passes its 13 assertions.
  • The PR merges locally without conflicts into current quattro (0a55a3c5544931bd314342e2a1f00bada577c574); both focused suites also pass on that combined tree.
  • Exercised the combined tree's script against a real fcitx5 5.1.22 process on a private D-Bus, with temporary XDG directories and fixture Hyprland responses (us,ir, active index 1). The untouched real fcitx5 group gained keyboard-us and keyboard-ir; a second run preserved the same group; a separately customized keyboard-us,keyboard-de group was left unchanged.

The private process had no graphical input context, so this validates the real group-management D-Bus API and preservation behavior, not end-to-end physical-keyboard switching in applications. Active-layout-index mapping and active non-keyboard input-method preservation remain covered by the fixture tests. The live user's fcitx5 configuration was not modified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Default fcitx5 service breaks Hyprland multi-layout keyboard switching (bar label switches, typing doesn't)

2 participants