mirror of
https://github.com/dnlbauer/dotfiles.git
synced 2026-09-10 13:35:30 +00:00
Merge branch 'master' of github.com:dnlbauer/dotfiles
This commit is contained in:
@@ -21,6 +21,7 @@
|
|||||||
<alias>
|
<alias>
|
||||||
<family>serif</family>
|
<family>serif</family>
|
||||||
<prefer>
|
<prefer>
|
||||||
|
<family>Charis SIL</family>
|
||||||
<family>Noto Serif for Powerline</family>
|
<family>Noto Serif for Powerline</family>
|
||||||
<family>Noto Serif</family>
|
<family>Noto Serif</family>
|
||||||
<family>Liberation Serif</family>
|
<family>Liberation Serif</family>
|
||||||
@@ -32,6 +33,8 @@
|
|||||||
<alias>
|
<alias>
|
||||||
<family>sans-serif</family>
|
<family>sans-serif</family>
|
||||||
<prefer>
|
<prefer>
|
||||||
|
<family>Inter</family>
|
||||||
|
<family>Atkinson Hyperlegible</family>
|
||||||
<family>Noto Sans for Powerline</family>
|
<family>Noto Sans for Powerline</family>
|
||||||
<family>Noto Sans</family>
|
<family>Noto Sans</family>
|
||||||
<family>Liberation Sans</family>
|
<family>Liberation Sans</family>
|
||||||
|
|||||||
@@ -3,13 +3,14 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo "Installing packages"
|
echo "Installing packages"
|
||||||
|
echo "Updating sources..."
|
||||||
sudo apt update -qq
|
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
|
if dpkg -s "$package" >/dev/null 2>&1; then
|
||||||
echo $package is already installed.
|
echo $package is already installed.
|
||||||
else
|
else
|
||||||
echo Installing $package
|
echo Installing $package ...
|
||||||
sudo apt install -y $package
|
sudo apt install -y $package
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -6,5 +6,6 @@ if [ ! -f "$HOME/.local/bin/diff-so-fancy" ]; then
|
|||||||
mkdir -p $HOME/.local/lib
|
mkdir -p $HOME/.local/lib
|
||||||
git clone --depth 1 https://github.com/so-fancy/diff-so-fancy.git $HOME/.local/lib/diff-so-fancy
|
git clone --depth 1 https://github.com/so-fancy/diff-so-fancy.git $HOME/.local/lib/diff-so-fancy
|
||||||
fi
|
fi
|
||||||
|
mkdir -p $HOME/.local/bin
|
||||||
ln -s $HOME/.local/lib/diff-so-fancy/diff-so-fancy $HOME/.local/bin/diff-so-fancy
|
ln -s $HOME/.local/lib/diff-so-fancy/diff-so-fancy $HOME/.local/bin/diff-so-fancy
|
||||||
fi
|
fi
|
||||||
|
|||||||
57
run_onchange_before_25_fonts.sh
Executable file
57
run_onchange_before_25_fonts.sh
Executable file
@@ -0,0 +1,57 @@
|
|||||||
|
#!/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"
|
||||||
|
"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 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"
|
||||||
|
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"
|
||||||
|
|
||||||
Reference in New Issue
Block a user