From 7150f6354472ef884a2df4f58ff6718876ed31ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Tue, 25 Aug 2026 10:14:00 -0400 Subject: [PATCH] Ship Chinese IME and font fallback by default on zh_CN systems fcitx5-rime, fcitx5-chinese-addons, and fcitx5-configtool join the base package set, and a provisioning step seeds the Rime profile and CJK fontconfig for users on systems whose locale is zh_CN, so Chinese input works at first boot without omarchycn setup. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01QKxGW1raAWaqeU8WdHsMsp --- install/omarchy-base.packages | 3 +++ install/user/all.sh | 1 + install/user/cn-chinese.sh | 14 ++++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 install/user/cn-chinese.sh diff --git a/install/omarchy-base.packages b/install/omarchy-base.packages index 4097b645..b7160a9c 100644 --- a/install/omarchy-base.packages +++ b/install/omarchy-base.packages @@ -34,8 +34,11 @@ eza fakeroot fastfetch fcitx5 +fcitx5-chinese-addons +fcitx5-configtool fcitx5-gtk fcitx5-qt +fcitx5-rime fd ffmpegthumbnailer fontconfig diff --git a/install/user/all.sh b/install/user/all.sh index 39d98ea5..a0116749 100644 --- a/install/user/all.sh +++ b/install/user/all.sh @@ -2,6 +2,7 @@ run_logged "$OMARCHY_INSTALL/user/theme.sh" run_logged "$OMARCHY_INSTALL/user/chromium.sh" run_logged "$OMARCHY_INSTALL/user/git.sh" run_logged "$OMARCHY_INSTALL/user/xcompose.sh" +run_logged "$OMARCHY_INSTALL/user/cn-chinese.sh" run_logged "$OMARCHY_INSTALL/user/mise-work.sh" run_logged "$OMARCHY_INSTALL/user/hardware/asus/fix-audio-mixer.sh" diff --git a/install/user/cn-chinese.sh b/install/user/cn-chinese.sh new file mode 100644 index 00000000..1717e50a --- /dev/null +++ b/install/user/cn-chinese.sh @@ -0,0 +1,14 @@ +# Seed Chinese input and CJK font fallback on zh_CN systems. + +grep -qs "^LANG=zh_CN" /etc/locale.conf || exit 0 + +if [[ ! -f ~/.config/fcitx5/profile ]]; then + mkdir -p ~/.config/fcitx5 + cp "$OMARCHY_PATH/cn/fcitx5/profile" ~/.config/fcitx5/profile +fi + +if [[ ! -f ~/.config/fontconfig/conf.d/64-omarchycn-cjk.conf ]]; then + mkdir -p ~/.config/fontconfig/conf.d + cp "$OMARCHY_PATH/cn/fontconfig/64-omarchycn-cjk.conf" ~/.config/fontconfig/conf.d/ + fc-cache -f > /dev/null +fi