#!/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 cd kora || exit cp -r kora ~/.icons/kora cp -r kora-light ~/.icons/kora-light cp -r kora-light-panel ~/.icons/kora-light-panel cp -r kora-pgrey ~/.icons/kora-pgrey rm -rf $DOWNLOAD_DIR/kora fi