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>
This commit is contained in:
28
install_fonts.sh
Executable file
28
install_fonts.sh
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/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."
|
||||
Reference in New Issue
Block a user