mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
Change monospace match from mode="assign" binding="strong" to mode="append" binding="same" so the system font acts as a fallback instead of overriding explicit app font configs like Ghostty's font-family. Add migration to fix existing user configs. Fixes #5675
12 lines
480 B
Bash
12 lines
480 B
Bash
echo "Fix fontconfig monospace binding so app-specific fonts are not overridden"
|
|
|
|
if [[ -f ~/.config/fontconfig/fonts.conf ]] && command -v xmlstarlet >/dev/null 2>&1; then
|
|
xmlstarlet ed -L \
|
|
-u '//match[@target="pattern"][test/string="monospace"]/edit[@name="family"]/@mode' \
|
|
-v "append" \
|
|
-u '//match[@target="pattern"][test/string="monospace"]/edit[@name="family"]/@binding' \
|
|
-v "same" \
|
|
~/.config/fontconfig/fonts.conf
|
|
fc-cache -f >/dev/null 2>&1
|
|
fi
|