aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDon Williams <don.e.williams@gmail.com>2026-07-22 14:27:43 -0400
committerPinapelz <yukais@pinapelz.com>2026-08-29 21:40:35 -0700
commit14b0de2fd85e79437eb2a42fae15349298ef98bf (patch)
treeee726e29c773268050716efe9ecc43fe3c472b31
parent5ad8ad3b4c94d50c5020beb7552282d3376ee2d0 (diff)
Lib_copy wasn't honering --express-upgrade
Signed-off-by: Don Williams <don.e.williams@gmail.com> On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: scripts/lib_copy.sh
-rw-r--r--scripts/lib_copy.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/scripts/lib_copy.sh b/scripts/lib_copy.sh
index dda7690c..1cb37fb7 100644
--- a/scripts/lib_copy.sh
+++ b/scripts/lib_copy.sh
@@ -9,11 +9,16 @@
copy_phase1() {
local log="$1"
+ local run_mode="${2:-${RUN_MODE:-}}"
local base="${DOTFILES_DIR:-.}"
local dirs="fastfetch kitty rofi swaync"
for DIR2 in $dirs; do
local DIRPATH="${XDG_CONFIG_HOME:-$HOME/.config}/$DIR2"
if [ -d "$DIRPATH" ]; then
+ if [ "$run_mode" = "express" ]; then
+ echo -e "${NOTE:-[NOTE]} - Express mode: keeping existing ${YELLOW:-}$DIR2${RESET:-} config." 2>&1 | tee -a "$log"
+ continue
+ fi
while true; do
printf "\n${INFO:-[INFO]} Found ${YELLOW:-}$DIR2${RESET:-} config found in ${XDG_CONFIG_HOME:-$HOME/.config}/\n"
echo -n "${CAT:-[ACTION]} Do you want to replace ${YELLOW:-}$DIR2${RESET:-} config? (y/n): "
@@ -206,7 +211,13 @@ restore_hypr_assets() {
fi
if [ "$express_mode" -eq 1 ]; then
- echo "${NOTE:-[NOTE]} Express mode: skipping automatic restoration of animations and monitor profile directories." 2>&1 | tee -a "$log"
+ echo "${NOTE:-[NOTE]} Express mode: preserving existing wallpaper effects from backup and skipping animations/monitor profile restores." 2>&1 | tee -a "$log"
+ local BACKUP_WALLPAPER_DIR="$BACKUP_HYPR_PATH/wallpaper_effects"
+ if [ -d "$BACKUP_WALLPAPER_DIR" ]; then
+ rm -rf "$HYPR_DIR/wallpaper_effects"
+ cp -r "$BACKUP_WALLPAPER_DIR" "$HYPR_DIR/" 2>&1 | tee -a "$log"
+ echo "${OK:-[OK]} - Restored directory: ${MAGENTA:-}wallpaper_effects${RESET:-}" 2>&1 | tee -a "$log"
+ fi
else
echo -e "\n${NOTE:-[NOTE]} Restoring ${SKY_BLUE:-}Animations & Monitor Profiles${RESET:-} into ${YELLOW:-}$HYPR_DIR${RESET:-}..."
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage