install.sh: download JetBrains Mono Nerd Font if missing

This commit is contained in:
Jonas H
2026-02-28 00:13:46 +01:00
parent 7d34751695
commit f15f8916d4

View File

@@ -52,6 +52,26 @@ warn_missing autotiling "install via pip: pip install --user autotiling"
warn_missing eww "install from https://github.com/elkowar/eww/releases" warn_missing eww "install from https://github.com/elkowar/eww/releases"
warn_missing wezterm "install from https://wezfurlong.org/wezterm/install/linux.html" warn_missing wezterm "install from https://wezfurlong.org/wezterm/install/linux.html"
# ---------------------------------------------------------------------------
# Fonts
# ---------------------------------------------------------------------------
FONT_DIR="$HOME/.local/share/fonts/JetBrainsMono"
if [[ ! -d "$FONT_DIR" ]]; then
echo ""
echo "Installing JetBrains Mono Nerd Font..."
TMP="$(mktemp -d)"
curl -fLo "$TMP/JetBrainsMono.zip" \
"https://github.com/ryanoasis/nerd-fonts/releases/latest/download/JetBrainsMono.zip"
mkdir -p "$FONT_DIR"
unzip -q "$TMP/JetBrainsMono.zip" -d "$FONT_DIR"
rm -rf "$TMP"
fc-cache -f "$FONT_DIR"
echo "Font installed."
else
echo "JetBrains Mono Nerd Font already installed, skipping."
fi
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Stow all packages # Stow all packages
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------