mirror of
https://github.com/joshuadavidthomas/dotfiles.git
synced 2025-08-04 18:18:13 +00:00
meh
This commit is contained in:
parent
b41def5a42
commit
16d5599165
1 changed files with 4 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue