This commit is contained in:
Josh Thomas 2025-06-30 23:28:30 -05:00
parent ace03c1b48
commit b41def5a42

View file

@ -57,8 +57,11 @@ 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
cd /tmp
pushd /tmp > /dev/null
wget https://github.com/ryanoasis/nerd-fonts/releases/latest/download/CascadiaMono.zip
unzip CascadiaMono.zip -d CascadiaFont
cp CascadiaFont/CaskaydiaMonoNerdFont-Regular.ttf ~/.local/share/fonts
@ -66,18 +69,21 @@ if ! fc-list | grep -qi "CaskaydiaMono Nerd Font"; then
cp CascadiaFont/CaskaydiaMonoNerdFont-Italic.ttf ~/.local/share/fonts
cp CascadiaFont/CaskaydiaMonoNerdFont-BoldItalic.ttf ~/.local/share/fonts
rm -rf CascadiaMono.zip CascadiaFont
cd -
popd > /dev/null
fc-cache -f
fi
if ! fc-list | grep -qi "iA Writer Mono S"; then
cd /tmp
pushd /tmp > /dev/null
wget -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
cd -
popd > /dev/null
fc-cache -f
fi
# Final font cache update to ensure everything is properly indexed
fc-cache -fv
gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark"