From 8288b9b32a9ba488af551cd140bc66638ca2883c Mon Sep 17 00:00:00 2001 From: shynd Date: Thu, 20 Feb 2025 21:13:27 +0100 Subject: [PATCH] working on copy script --- copy.sh | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/copy.sh b/copy.sh index 3bc4c07..911c050 100644 --- a/copy.sh +++ b/copy.sh @@ -421,4 +421,23 @@ while true; do echo "${ERROR} invalid choice. please enter y for yes or n for no." fi done -printf "\n%.0s" {1..1} \ No newline at end of file +printf "\n%.0s" {1..1} + +# Check if the user wants to disable Rainbow borders +echo "${NOTE} ${SKY_BLUE}by default, rainbow borders animation is enabled" +echo "${WARN} however, this uses a bit more CPU and Memory resources." + +read -p "${CAT} do you want to disable Rainbow Borders animation? (y/N): " border_choice +if [[ "$border_choice" =~ ^[Yy]$ ]]; then + mv config/hypr/UserScripts/RainbowBorders.sh config/hypr/UserScripts/RainbowBorders.bak.sh + + sed -i '/exec-once = \$UserScripts\/RainbowBorders.sh \&/s/^/#/' config/hypr/UserConfigs/Startup_Apps.conf + sed -i '/^[[:space:]]*animation = borderangle, 1, 180, liner, loop/s/^/#/' config/hypr/UserConfigs/UserAnimations.conf + + echo "${OK} rainbow borders are now disabled." 2>&1 | tee -a "$LOG" +else + echo "${NOTE} no changes made. rainbow borders remain enabled." 2>&1 | tee -a "$LOG" +fi +printf "\n%.0s" {1..1} + +set -e \ No newline at end of file