From b84ba672c73d67ce0791c5979e1bbc3491bd58ae Mon Sep 17 00:00:00 2001 From: Daniel Bauer Date: Wed, 14 Jan 2026 10:49:59 +0100 Subject: [PATCH 1/5] added fontconfig file --- run_onchange_before_25_fonts.sh | 51 +++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100755 run_onchange_before_25_fonts.sh diff --git a/run_onchange_before_25_fonts.sh b/run_onchange_before_25_fonts.sh new file mode 100755 index 0000000..bf3301d --- /dev/null +++ b/run_onchange_before_25_fonts.sh @@ -0,0 +1,51 @@ +#!/usr/bin/env bash +set -euo pipefail + +FONT_DIR="${HOME}/.local/share/fonts" +TEMP_DIR=$(mktemp -d) + +cleanup() { + rm -rf "$TEMP_DIR" +} +trap cleanup EXIT + +mkdir -p "$FONT_DIR" + +echo "Installing fonts to ${FONT_DIR}..." + +# Install Nerd Fonts +NERD_FONTS_VERSION="v3.4.0" +NERD_FONTS=( + "UbuntuMono" + "SourceCodePro" + "JetBrainsMono" + "AtkinsonHyperlegibleMono" +) + +for font in "${NERD_FONTS[@]}"; do + echo "Downloading ${font} Nerd Font..." + curl -fsSL "https://github.com/ryanoasis/nerd-fonts/releases/download/${NERD_FONTS_VERSION}/${font}.zip" -o "${TEMP_DIR}/${font}.zip" + + unzip -q "${TEMP_DIR}/${font}.zip" -d "${TEMP_DIR}/${font}" + + # Copy only TTF and OTF files, excluding Windows-compatible versions + find "${TEMP_DIR}/${font}" -type f \( -name "*.ttf" -o -name "*.otf" \) ! -name "*Windows Compatible*" -exec cp {} "${FONT_DIR}/" \; + + echo "Installed ${font} Nerd Font" +done + +# Install Charis SIL +echo "Downloading Charis SIL..." +CHARIS_VERSION="6.200" +curl -fsSL "https://software.sil.org/downloads/r/charis/CharisSIL-${CHARIS_VERSION}.zip" -o "${TEMP_DIR}/CharisSIL.zip" + +unzip -q "${TEMP_DIR}/CharisSIL.zip" -d "${TEMP_DIR}/charis" +find "${TEMP_DIR}/charis" -type f \( -name "*.ttf" -o -name "*.otf" \) -exec cp {} "${FONT_DIR}/" \; + +echo "Installed Charis SIL" + +# Update font cache +echo "Updating font cache..." +fc-cache -f "$FONT_DIR" +echo "Done" + From 4db2490d36bc71e0269c92ca00a8c21dae7ba471 Mon Sep 17 00:00:00 2001 From: Daniel Bauer Date: Wed, 14 Jan 2026 11:03:16 +0100 Subject: [PATCH 2/5] feat: font config and font download --- private_dot_config/fontconfig/fonts.conf | 13 ++++++++++--- run_onchange_before_25_fonts.sh | 8 +++++++- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/private_dot_config/fontconfig/fonts.conf b/private_dot_config/fontconfig/fonts.conf index eda2b26..1ae253c 100644 --- a/private_dot_config/fontconfig/fonts.conf +++ b/private_dot_config/fontconfig/fonts.conf @@ -21,8 +21,9 @@ serif - Noto Serif for Powerline - Noto Serif + Charis SIL + Noto Serif for Powerline + Noto Serif Liberation Serif DejaVu Serif Bitstream Vera Serif @@ -32,6 +33,8 @@ sans-serif + Inter + Atkinson Hyperlegible Noto Sans for Powerline Noto Sans Liberation Sans @@ -45,7 +48,11 @@ monospace - Inconsolata-g for Powerline + UbuntuMono Nerd Font + SauceCodePro Nerd Font + Ubuntu Mono + Source Code Pro + Inconsolata-g for Powerline Liberation Mono DejaVu Sans Mono Bitstream Vera Sans Mono diff --git a/run_onchange_before_25_fonts.sh b/run_onchange_before_25_fonts.sh index bf3301d..f1c4caf 100755 --- a/run_onchange_before_25_fonts.sh +++ b/run_onchange_before_25_fonts.sh @@ -18,7 +18,6 @@ NERD_FONTS_VERSION="v3.4.0" NERD_FONTS=( "UbuntuMono" "SourceCodePro" - "JetBrainsMono" "AtkinsonHyperlegibleMono" ) @@ -34,6 +33,13 @@ for font in "${NERD_FONTS[@]}"; do echo "Installed ${font} Nerd Font" done +# Install Inter (sans-serif) +echo "Downloading Inter..." +curl -fsSL "https://github.com/rsms/inter/releases/download/v4.1/Inter-4.1.zip" -o "${TEMP_DIR}/Inter.zip" +unzip -q "${TEMP_DIR}/Inter.zip" -d "${TEMP_DIR}/inter" +find "${TEMP_DIR}/inter" -path "*/Inter Desktop/*.ttf" -exec cp {} "${FONT_DIR}/" \; +echo "Installed Inter" + # Install Charis SIL echo "Downloading Charis SIL..." CHARIS_VERSION="6.200" From 02b86c2d2833034b06e42d5fa0c2c5df39d22ad3 Mon Sep 17 00:00:00 2001 From: Daniel Bauer Date: Wed, 14 Jan 2026 11:05:21 +0100 Subject: [PATCH 3/5] feat: install packages prints output --- run_onchange_before_0_install-packages.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run_onchange_before_0_install-packages.sh b/run_onchange_before_0_install-packages.sh index 3593a9d..67dacee 100644 --- a/run_onchange_before_0_install-packages.sh +++ b/run_onchange_before_0_install-packages.sh @@ -3,13 +3,14 @@ set -e echo "Installing packages" +echo "Updating sources..." sudo apt update -qq for package in xsel git git-extras neovim git ripgrep; do if dpkg -s "$package" >/dev/null 2>&1; then echo $package is already installed. else - echo Installing $package + echo Installing $package ... sudo apt install -y $package fi done From e406601e7783219052be09c9e35b0cbc3fe926b4 Mon Sep 17 00:00:00 2001 From: Daniel Bauer Date: Fri, 6 Feb 2026 15:07:11 +0100 Subject: [PATCH 4/5] fix diff so fancy missing folder --- run_onchange_before_21_diff-so-fancy.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/run_onchange_before_21_diff-so-fancy.sh b/run_onchange_before_21_diff-so-fancy.sh index 8e79ad6..a9f137a 100644 --- a/run_onchange_before_21_diff-so-fancy.sh +++ b/run_onchange_before_21_diff-so-fancy.sh @@ -6,5 +6,6 @@ if [ ! -f "$HOME/.local/bin/diff-so-fancy" ]; then mkdir -p $HOME/.local/lib git clone --depth 1 https://github.com/so-fancy/diff-so-fancy.git $HOME/.local/lib/diff-so-fancy fi + mkdir -p $HOME/.local/bin ln -s $HOME/.local/lib/diff-so-fancy/diff-so-fancy $HOME/.local/bin/diff-so-fancy fi From 9f5406133179d40835c03beef8f48065b6a6dccc Mon Sep 17 00:00:00 2001 From: Daniel Bauer Date: Fri, 6 Feb 2026 15:07:31 +0100 Subject: [PATCH 5/5] fix: add missing unzip package required for other runs --- run_onchange_before_0_install-packages.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_onchange_before_0_install-packages.sh b/run_onchange_before_0_install-packages.sh index 67dacee..53324d9 100644 --- a/run_onchange_before_0_install-packages.sh +++ b/run_onchange_before_0_install-packages.sh @@ -6,7 +6,7 @@ echo "Installing packages" echo "Updating sources..." sudo apt update -qq -for package in xsel git git-extras neovim git ripgrep; do +for package in xsel unzip git git-extras neovim git ripgrep; do if dpkg -s "$package" >/dev/null 2>&1; then echo $package is already installed. else