#!/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 Colloid-icon-theme is installed if check_directory "$HOME/.icons/kora"; then echo "Kora icon theme is already installed" else echo "Installing kora icon theme" DOWNLOAD_DIR="${XDG_DOWNLOAD_DIR:-$(xdg-user-dir DOWNLOAD)}" cd $DOWNLOAD_DIR || exit git clone https://github.com/bikass/kora.git mkdir -p ~/.icons cd kora || exit cp -r kora ~/.icons cp -r kora-light ~/.icons cp -r kora-light-panel ~/.icons cp -r kora-pgrey ~/.icons rm -rf $DOWNLOAD_DIR/kora fi