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
This commit is contained in:
@@ -34,8 +34,11 @@ eza
|
||||
fakeroot
|
||||
fastfetch
|
||||
fcitx5
|
||||
fcitx5-chinese-addons
|
||||
fcitx5-configtool
|
||||
fcitx5-gtk
|
||||
fcitx5-qt
|
||||
fcitx5-rime
|
||||
fd
|
||||
ffmpegthumbnailer
|
||||
fontconfig
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user