mirror of
https://github.com/joshuadavidthomas/dotfiles.git
synced 2025-07-07 20:55:01 +00:00
fonts!
This commit is contained in:
parent
ace03c1b48
commit
b41def5a42
1 changed files with 10 additions and 4 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue