diff --git a/install.sh b/install.sh index c2a7c4d..19973f4 100755 --- a/install.sh +++ b/install.sh @@ -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 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 # ---------------------------------------------------------------------------