working on copy script

This commit is contained in:
shynd 2025-02-20 21:13:27 +01:00
parent 868d9f621e
commit 8288b9b32a
1 changed files with 20 additions and 1 deletions

21
copy.sh
View File

@ -421,4 +421,23 @@ while true; do
echo "${ERROR} invalid choice. please enter y for yes or n for no." echo "${ERROR} invalid choice. please enter y for yes or n for no."
fi fi
done done
printf "\n%.0s" {1..1} 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