From 2ee27f6959106c06f1fad4520c47695b4df7e37c Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sun, 23 Feb 2025 16:35:48 +0900 Subject: [PATCH 1/3] updated pokemon --- install-scripts/zsh_pokemon.sh | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/install-scripts/zsh_pokemon.sh b/install-scripts/zsh_pokemon.sh index d8c22cd..89bca0a 100755 --- a/install-scripts/zsh_pokemon.sh +++ b/install-scripts/zsh_pokemon.sh @@ -17,16 +17,6 @@ LOG="Install-Logs/install-$(date +%d-%H%M%S)_zsh_pokemon.log" printf "${NOTE} Removing any traces of ${SKY_BLUE}Pokemon Color Scripts${RESET}\n" -# Check if the pokemon directory exists -if [ -d "/usr/local/opt/pokemon-colorscripts" ]; then - sudo rm -rf /usr/local/opt/pokemon-colorscripts -fi - -# Check if the pokemon file exists -if [ -f "/usr/local/bin/pokemon-colorscripts" ]; then - sudo rm -f /usr/local/bin/pokemon-colorscripts -fi - # Install Pokemon Color Scripts printf "${NOTE} Installing ${SKY_BLUE}Pokemon Color Scripts${RESET}\n" for pok in "pokemon-colorscripts-git"; do From 11f2b0c6fed674dc494e02ab1f73916b5b15e0f6 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sun, 23 Feb 2025 20:43:18 +0900 Subject: [PATCH 2/3] it seems like installer is breaking pokemon --- install-scripts/Global_functions.sh | 17 +++++++++++++++++ install-scripts/zsh_pokemon.sh | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/install-scripts/Global_functions.sh b/install-scripts/Global_functions.sh index 5976182..82baafa 100755 --- a/install-scripts/Global_functions.sh +++ b/install-scripts/Global_functions.sh @@ -93,6 +93,23 @@ install_package() { fi } +# Function to just install packages with either yay or paru without checking if installed +install_package_f() { + ( + stdbuf -oL $ISAUR -S --noconfirm "$1" 2>&1 + ) >> "$LOG" 2>&1 & + PID=$! + show_progress $PID "$1" + + # Double check if package is installed + if $ISAUR -Q "$1" &>> /dev/null ; then + echo -e "${OK} Package ${YELLOW}$1${RESET} has been successfully installed!" + else + # Something is missing, exiting to review log + echo -e "\n${ERROR} ${YELLOW}$1${RESET} failed to install :( , please check the install.log. You may need to install manually! Sorry I have tried :(" + fi +} + # Function for removing packages uninstall_package() { local pkg="$1" diff --git a/install-scripts/zsh_pokemon.sh b/install-scripts/zsh_pokemon.sh index 89bca0a..06fefb8 100755 --- a/install-scripts/zsh_pokemon.sh +++ b/install-scripts/zsh_pokemon.sh @@ -20,7 +20,7 @@ printf "${NOTE} Removing any traces of ${SKY_BLUE}Pokemon Color Scripts${RESET}\ # Install Pokemon Color Scripts printf "${NOTE} Installing ${SKY_BLUE}Pokemon Color Scripts${RESET}\n" for pok in "pokemon-colorscripts-git"; do - install_package "$pok" "$LOG" + install_package_f "$pok" "$LOG" done printf "\n%.0s" {1..1} From b16f579e863474732f367b3f2b9381dd50ba6728 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 24 Feb 2025 00:16:00 +0900 Subject: [PATCH 3/3] applying of sddm theme fixed --- install-scripts/sddm_theme.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/install-scripts/sddm_theme.sh b/install-scripts/sddm_theme.sh index c1f5deb..bc41d23 100755 --- a/install-scripts/sddm_theme.sh +++ b/install-scripts/sddm_theme.sh @@ -75,12 +75,20 @@ if git clone --depth 1 "$source_theme" "$theme_name"; then fi done else - # If the directory doesn't exist, create it and set up the new theme echo "$CAT - $sddm_conf_dir not found, creating..." | tee -a "$LOG" sudo mkdir -p "$sddm_conf_dir" 2>&1 | tee -a "$LOG" + fi - echo -e "[Theme]\nCurrent=$theme_name" | sudo tee "$sddm_conf_dir/theme.conf.user" 2>&1 | tee -a "$LOG" - echo "Created and configured $sddm_conf_dir/theme.conf.user with theme $theme_name" | tee -a "$LOG" + if [ ! -f "$sddm_conf_dir/theme.conf.user" ]; then + echo -e "[Theme]\nCurrent = $theme_name" | sudo tee "$sddm_conf_dir/theme.conf.user" > /dev/null + + if [ -f "$sddm_conf_dir/theme.conf.user" ]; then + echo "Created and configured $sddm_conf_dir/theme.conf.user with theme $theme_name" | tee -a "$LOG" + else + echo "Failed to create $sddm_conf_dir/theme.conf.user" | tee -a "$LOG" + fi + else + echo "$sddm_conf_dir/theme.conf.user already exists, skipping creation." | tee -a "$LOG" fi # Replace current background from assets