Add CJK fonts, fontconfig priority, and locale commands
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QKxGW1raAWaqeU8WdHsMsp
This commit is contained in:
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# omarchy:summary=Install CJK fonts and the OmarchyCN fontconfig priority
|
||||
# omarchy:examples=omarchycn font apply
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
omarchy-pkg-add noto-fonts-cjk noto-fonts-emoji
|
||||
|
||||
conf_dir="$HOME/.config/fontconfig/conf.d"
|
||||
mkdir -p "$conf_dir"
|
||||
cp "$OMARCHY_PATH/cn/fontconfig/64-omarchycn-cjk.conf" "$conf_dir/"
|
||||
fc-cache -f > /dev/null
|
||||
|
||||
echo "CJK fonts installed, fontconfig priority applied ($conf_dir/64-omarchycn-cjk.conf)"
|
||||
omarchy-cn-font-status
|
||||
Reference in New Issue
Block a user