Files
custum-hyprpanel/install_fonts.sh
Jas Singh b200b6fadb Fix NerdFont icon alignments. (#143)
* WIP

* Fix nerdfont icon alignments

* Ship needed fonts

* Remove italicised fonts

* Update readme and separate OSD settings into their own category.

* Dashboard styling updates

---------

Co-authored-by: matavach <erik@matijevich.org>
2024-08-18 00:32:22 -07:00

29 lines
649 B
Bash
Executable File

#!/bin/bash
SOURCE_DIR="./assets/fonts"
DEST_DIR="$HOME/.local/share/fonts"
DEST_PATH="$DEST_DIR/NFP"
if [ ! -d "$SOURCE_DIR" ]; then
echo "Source directory '$SOURCE_DIR' does not exist."
exit 1
fi
if [ ! -d "$DEST_PATH" ]; then
echo "Destination directory '$DEST_PATH' does not exist. Creating it..."
mkdir -p "$DEST_PATH"
fi
if [ -z "$(ls -A "$SOURCE_DIR")" ]; then
echo "Source directory '$SOURCE_DIR' is empty. No files to copy."
exit 1
fi
echo "Copying fonts from '$SOURCE_DIR' to '$DEST_PATH'..."
cp -r "$SOURCE_DIR"/* "$DEST_PATH"
echo "Updating font cache..."
fc-cache -fv
echo "Fonts installed successfully."