Files
omarchycn/install/user/cn-chinese.sh
T
ZacharyZhang-NYandClaude Fable 5 7150f63544 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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QKxGW1raAWaqeU8WdHsMsp
2026-08-25 10:14:00 -04:00

15 lines
478 B
Bash

# 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