Updated font config
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# Native explicit packages. Refresh on the running system: pacman -Qqen > pacman.txt
|
||||
7zip
|
||||
accountsservice
|
||||
adwaita-fonts
|
||||
adwaita-icon-theme
|
||||
adw-gtk-theme
|
||||
alsa-firmware
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
# Install bundled fonts that have no reliable AUR package (Apple SF Pro,
|
||||
# MS Windows 11 — proprietary, so the AUR PKGBUILDs keep breaking). Drop the
|
||||
# font files into 03-user/fonts/ (any subdir layout); they land in
|
||||
# ~/.local/share/fonts/ and the font cache is rebuilt.
|
||||
SRC="$REPO_ROOT/03-user/fonts"
|
||||
DEST="$HOME/.local/share/fonts"
|
||||
find_fonts() { find "$SRC" -type f \( -iname '*.otf' -o -iname '*.ttf' -o -iname '*.ttc' \) "$@"; }
|
||||
|
||||
if [ -z "$(find_fonts -print -quit 2>/dev/null)" ]; then
|
||||
echo " no font files in 03-user/fonts — skipping"
|
||||
return 0 2>/dev/null || exit 0
|
||||
fi
|
||||
|
||||
count=0
|
||||
while IFS= read -r -d '' font; do
|
||||
rel="${font#"$SRC"/}" # preserve subdir layout under DEST
|
||||
install -Dm644 "$font" "$DEST/$rel" && count=$((count + 1))
|
||||
done < <(find_fonts -print0)
|
||||
|
||||
fc-cache -f "$DEST" >/dev/null
|
||||
info "installed $count font file(s) → $DEST"
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -34,7 +34,6 @@ scope-tui
|
||||
sdrangel-bin
|
||||
spotify
|
||||
streamrip
|
||||
ttf-ms-win11
|
||||
uxplay
|
||||
vcvrack
|
||||
vkd3d-proton-bin
|
||||
|
||||
Reference in New Issue
Block a user