This commit is contained in:
Josh Thomas 2025-06-30 23:33:31 -05:00
parent b41def5a42
commit 16d5599165

View file

@ -57,12 +57,9 @@ curl -sL -o "$BACKGROUNDS_DIR/tokyo-night/2-Milad-Fakurian-Abstract-Purple-Blue.
mkdir -p ~/.local/share/fonts
# Update font cache first to ensure we detect existing fonts
fc-cache -f
if ! fc-list | grep -qi "CaskaydiaMono Nerd Font"; then
if ! ls ~/.local/share/fonts/CaskaydiaMonoNerdFont*.ttf >/dev/null 2>&1; then
pushd /tmp > /dev/null
wget https://github.com/ryanoasis/nerd-fonts/releases/latest/download/CascadiaMono.zip
curl -L -o CascadiaMono.zip https://github.com/ryanoasis/nerd-fonts/releases/latest/download/CascadiaMono.zip
unzip CascadiaMono.zip -d CascadiaFont
cp CascadiaFont/CaskaydiaMonoNerdFont-Regular.ttf ~/.local/share/fonts
cp CascadiaFont/CaskaydiaMonoNerdFont-Bold.ttf ~/.local/share/fonts
@ -70,17 +67,15 @@ if ! fc-list | grep -qi "CaskaydiaMono Nerd Font"; then
cp CascadiaFont/CaskaydiaMonoNerdFont-BoldItalic.ttf ~/.local/share/fonts
rm -rf CascadiaMono.zip CascadiaFont
popd > /dev/null
fc-cache -f
fi
if ! fc-list | grep -qi "iA Writer Mono S"; then
if ! ls ~/.local/share/fonts/iAWriterMonoS*.ttf >/dev/null 2>&1; then
pushd /tmp > /dev/null
wget -O iafonts.zip https://github.com/iaolo/iA-Fonts/archive/refs/heads/master.zip
curl -L -o iafonts.zip https://github.com/iaolo/iA-Fonts/archive/refs/heads/master.zip
unzip iafonts.zip -d iaFonts
cp iaFonts/iA-Fonts-master/iA\ Writer\ Mono/Static/iAWriterMonoS-*.ttf ~/.local/share/fonts
rm -rf iafonts.zip iaFonts
popd > /dev/null
fc-cache -f
fi
# Final font cache update to ensure everything is properly indexed