26 lines
746 B
Bash
Executable File
26 lines
746 B
Bash
Executable File
#!/bin/sh
|
|
# credit: https://github.com/drewgrif/bookworm-scripts
|
|
|
|
# Function to check if a directory exists
|
|
check_directory() {
|
|
if [ -d "$1" ]; then
|
|
return 0 # Directory exists
|
|
else
|
|
return 1 # Directory does not exist
|
|
fi
|
|
}
|
|
|
|
# Check if Lavanda-gtk-theme is installed
|
|
if check_directory "$HOME/.themes/Lavanda-Dark"; then
|
|
echo "Lavanda gtk theme is already installed."
|
|
else
|
|
echo "Installing Lavanda-gtk-theme..."
|
|
DOWNLOAD_DIR="${XDG_DOWNLOAD_DIR:-$(xdg-user-dir DOWNLOAD)}"
|
|
cd $DOWNLOAD_DIR || exit
|
|
git clone https://github.com/vinceliuice/Lavanda-gtk-theme
|
|
cd Lavanda-gtk-theme
|
|
bash install.sh
|
|
rm -rf $DOWNLOAD_DIR/Lavanda-gtk-theme
|
|
echo "Finished installing Lavanda-gtk-theme"
|
|
fi
|