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:
2026-08-24 19:25:53 -04:00
co-authored by Claude Fable 5
parent 320ba5118a
commit 843769bf77
4 changed files with 100 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
# omarchy:summary=Generate zh_CN.UTF-8 and en_US.UTF-8 locales
# omarchy:examples=omarchycn locale apply
# omarchy:requires-sudo=true
set -euo pipefail
for loc in "zh_CN.UTF-8 UTF-8" "en_US.UTF-8 UTF-8"; do
if ! grep -qE "^${loc% *}" /etc/locale.gen; then
echo "$loc" | sudo tee -a /etc/locale.gen > /dev/null
fi
done
sudo locale-gen
echo "Locales available: $(locale -a | grep -cE 'zh_CN|en_US') (zh_CN/en_US variants)"