Skip to content

Add a Setup > Region toggle with Chinese language and input method - #9695

Closed
ZacharyZhang-NY wants to merge 1 commit into
omacom:quattrofrom
ZacharyZhang-NY:china-region
Closed

ZacharyZhang-NY wants to merge 1 commit into
omacom:quattrofrom
ZacharyZhang-NY:china-region

Conversation

@ZacharyZhang-NY

@ZacharyZhang-NY ZacharyZhang-NY commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Replaces #9548, whose head fork was deleted by accident.

Setup > Region toggles between World and China. China switches the system language to zh_CN, installs @manateelazycat's rime-ice-installer and runs it, makes Rime the active input method with Ctrl+Space as the toggle, and swaps the menu to Chinese labels. World puts the language and menu back and leaves the input method installed.

Also fixes mergeMenuSources to only override the fields a user extension declares, as docs/menu.md documents.

Companion: omacom/omarchy-pkgs#265.

Test plan

  • region-test.sh (new): language, menu and input-method round-trips, idempotent re-apply
  • menu-test.sh and menu-guards-test.sh
  • ./test/all at the clean-tree baseline
  • Fresh VM install verified end to end

`omarchy region china` switches the system language to zh_CN, installs the
Rime Ice input method through Andy Stewart's rime-ice-installer, makes Rime
the default with Ctrl+Space as the toggle, and swaps the Omarchy menu to
Chinese labels through the user-extension overlay; `omarchy region world`
puts the language and menu back and leaves the input method installed.
mergeMenuSources now only overrides the fields an extension declares, as
docs/menu.md documents, which the label-only overlay needs.

Co-authored-by: Andy Stewart <[email protected]>
@lehug

lehug commented Sep 2, 2026

Copy link
Copy Markdown

注意下 ctrl+~ 这个快捷键,vscode 下有使用,但是 rime,fcitx 会占用

@ZacharyZhang-NY

Copy link
Copy Markdown
Contributor Author

注意下 ctrl+~ 这个快捷键,vscode 下有使用,但是 rime,fcitx 会占用

感谢提醒,我看一下

@omarchybot

Copy link
Copy Markdown
Collaborator

Closing this as superseded. What it set out to do has landed in a different shape:

It now conflicts with quattro in three places:

  • bin/omarchy-region already exists, printing cn/global from /etc/omarchy/region for the regional hotkeys.
  • setup.region is a submenu with Language, Formats and Timezone.
  • The input-method design deliberately never makes Ctrl+Space a Fcitx toggle.

Two things here are still worth having:

  • The mergeMenuSources fix is a real bug on quattro today. normalizeItem fills every missing field with "" and the merge copies all of them, so a user menu extension that only sets label wipes the shipped entry's action, icon and provider. Your fix of merging only the declared keys, with its test, would be welcome as a small PR of its own, rebased onto readMenuJsonc.
  • Rime Ice would fit as a new preset in default/input-methods/presets.json, without the Ctrl+Space binding or rewriting ~/.config/fcitx5/profile.

Thank you @ZacharyZhang-NY. Please reopen if I've missed something this covers that quattro doesn't.

Checked by Opus 5.5 in Claude Code against quattro as of today, with an independent second opinion from Opus 5.5 High that reached the same conclusion (its independence is not guaranteed).

@omarchybot omarchybot closed this Nov 30, 2026
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.

3 participants