aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/lib_copy.sh
diff options
context:
space:
mode:
authorDon Williams <don.e.williams@gmail.com>2026-02-23 18:47:47 -0500
committerDon Williams <don.e.williams@gmail.com>2026-02-23 18:47:47 -0500
commit59e87cbf4482efb6d7c8ff766f80b0286a20732b (patch)
tree7b2bdf7ae6c399a54e154896b78dfef9ec0dd2b7 /scripts/lib_copy.sh
parentc8767dfaa8c9efbeeec0293ffe4287a40c02b34c (diff)
parentc1ae43efc9196eca55c59cc43dd8f85975d84206 (diff)
Merge branch 'development'
Conflicts: README.md config/fastfetch/config-compact.jsonc config/fastfetch/config.jsonc config/hypr/scripts/Tak0-Per-Window-Switch.sh i18n/README/README.de.md i18n/README/README.jp.md i18n/README/README.ro.md i18n/README/README.ru.md i18n/README/README.ua.md It looks like you may be committing a merge. If this is not correct, please run git update-ref -d MERGE_HEAD and try again. Please enter the commit message for your changes. Lines starting with '#' will be ignored, and an empty message aborts the commit. On branch main Your branch is up to date with 'origin/main'. All conflicts fixed but you are still merging. Changes to be committed: modified: CHANGELOG.md modified: README.md renamed: update-dots.sh -> archive/update-dots.sh new file: assets/waybar-weather.gz new file: config/fastfetch/config-compact-legacy.jsonc modified: config/fastfetch/config-compact.jsonc modified: config/fastfetch/config.jsonc new file: config/fastfetch/config.legacy.jsonc modified: config/hypr/UserConfigs/WindowRules.conf new file: config/hypr/UserScripts/RainbowBorders-low-cpu.sh modified: config/hypr/configs/ENVariables.conf modified: config/hypr/configs/Keybinds.conf modified: config/hypr/configs/Startup_Apps.conf modified: config/hypr/configs/WindowRules-config-v3.conf modified: config/hypr/configs/WindowRules.conf modified: config/hypr/monitors.conf modified: config/hypr/scripts/Kitty_themes.sh modified: config/hypr/scripts/Kool_Quick_Settings.sh new file: config/hypr/scripts/PortalHyprlandUbuntu2604.sh modified: config/hypr/scripts/Refresh.sh modified: config/hypr/scripts/Tak0-Per-Window-Switch.sh new file: config/hypr/scripts/Toggle-Active-Window-Audio.sh new file: config/hypr/scripts/Toggle-weather-waybar-units.sh modified: config/hypr/scripts/WallustSwww.sh modified: config/hypr/scripts/WaybarCava.sh new file: config/hypr/scripts/dots-tui new file: config/hypr/scripts/dots-tui-ubuntu-2404 new file: config/hypr/scripts/hyprshot.sh new file: config/hypr/scripts/install-uv.sh renamed: config/hypr/v2.3.20 -> config/hypr/v2.3.21 modified: config/hypr/wallpaper_effects/.wallpaper_current modified: config/kitty/kitty.conf new file: config/rofi/00-terminal.rasi modified: config/rofi/config.rasi modified: config/wallust/templates/colors-waybar.css new file: config/wallust/wallust-kitty.toml modified: config/wallust/wallust.toml new file: config/waybar-weather/cityname.txt new file: config/waybar-weather/config.toml new file: config/waybar-weather/geolocation.txt modified: config/waybar/ModulesCustom modified: config/waybar/config renamed: config/waybar/configs/[BOT & Left] SouthWest -> config/waybar/configs/BOT-&-Left-SouthWest renamed: config/waybar/configs/[BOT & Right] SouthEast -> config/waybar/configs/BOT-&-Right-SouthEast renamed: config/waybar/configs/[BOT] Camellia -> config/waybar/configs/BOT-Camellia renamed: config/waybar/configs/[BOT] Chrysanthemum -> config/waybar/configs/BOT-Chrysanthemum renamed: config/waybar/configs/[BOT] Default -> config/waybar/configs/BOT-Default renamed: config/waybar/configs/[BOT] Default Laptop -> config/waybar/configs/BOT-Default-Laptop renamed: config/waybar/configs/[BOT] Gardenia -> config/waybar/configs/BOT-Gardenia renamed: config/waybar/configs/[BOT] Peony -> config/waybar/configs/BOT-Peony renamed: config/waybar/configs/[BOT] Simple -> config/waybar/configs/BOT-Simple renamed: config/waybar/configs/[BOT] Sleek -> config/waybar/configs/BOT-Sleek renamed: config/waybar/configs/[LEFT] WestWing -> config/waybar/configs/LEFT-WestWing renamed: config/waybar/configs/[LEFT] WestWing v2 -> config/waybar/configs/LEFT-WestWing-v2 renamed: config/waybar/configs/[RIGHT] EastWing -> config/waybar/configs/RIGHT-EastWing renamed: config/waybar/configs/[RIGHT] EastWing v2 -> config/waybar/configs/RIGHT-EastWing-v2 renamed: config/waybar/configs/[TOP & BOT] SummitSplit -> config/waybar/configs/TOP-&-BOT-SummitSplit renamed: config/waybar/configs/[TOP & BOT] SummitSplit-glass -> config/waybar/configs/TOP-&-BOT-SummitSplit-glass renamed: config/waybar/configs/[TOP & BOT] SummitSplit v2 -> config/waybar/configs/TOP-&-BOT-SummitSplit-v2 new file: config/waybar/configs/TOP-&-BOT-SummitSplit-v3 renamed: config/waybar/configs/[TOP & Left] NorthWest -> config/waybar/configs/TOP-&-Left-NorthWest renamed: config/waybar/configs/[TOP & Right] NorthEast -> config/waybar/configs/TOP-&-Right-NorthEast renamed: config/waybar/configs/[TOP] 0-Ja-0 -> config/waybar/configs/TOP-0-Ja-0 renamed: config/waybar/configs/[TOP] Arrow -> config/waybar/configs/TOP-Arrow renamed: config/waybar/configs/[TOP] Camellia -> config/waybar/configs/TOP-Camellia renamed: config/waybar/configs/[TOP] Chrysanthemum -> config/waybar/configs/TOP-Chrysanthemum renamed: config/waybar/configs/[TOP] Default -> config/waybar/configs/TOP-Default renamed: config/waybar/configs/[TOP] Default Laptop -> config/waybar/configs/TOP-Default-Laptop renamed: config/waybar/configs/[TOP] Default Laptop-glass -> config/waybar/configs/TOP-Default-Laptop-glass renamed: config/waybar/configs/[TOP] Default Laptop (old v1) -> config/waybar/configs/TOP-Default-Laptop-old-v1 renamed: config/waybar/configs/[TOP] Default Laptop (old v2) -> config/waybar/configs/TOP-Default-Laptop-old-v2 renamed: config/waybar/configs/[TOP] Default Laptop (old v3) -> config/waybar/configs/TOP-Default-Laptop-old-v3 renamed: config/waybar/configs/[TOP] Default Laptop (old v4) -> config/waybar/configs/TOP-Default-Laptop-old-v4 renamed: config/waybar/configs/[TOP] Default Laptop (old v5) -> config/waybar/configs/TOP-Default-Laptop-old-v5 renamed: config/waybar/configs/[TOP] Default (old v1) -> config/waybar/configs/TOP-Default-old-v1 renamed: config/waybar/configs/[TOP] Default (old v2) -> config/waybar/configs/TOP-Default-old-v2 renamed: config/waybar/configs/[TOP] Default (old v3) -> config/waybar/configs/TOP-Default-old-v3 renamed: config/waybar/configs/[TOP] Default (old v4) -> config/waybar/configs/TOP-Default-old-v4 renamed: config/waybar/configs/[TOP] Everforest -> config/waybar/configs/TOP-Everforest renamed: config/waybar/configs/[TOP] Everforest-glass -> config/waybar/configs/TOP-Everforest-glass renamed: config/waybar/configs/[TOP] Gardenia -> config/waybar/configs/TOP-Gardenia renamed: config/waybar/configs/[TOP] Minimal - Long -> config/waybar/configs/TOP-Minimal-Long renamed: config/waybar/configs/[TOP] Minimal - Short -> config/waybar/configs/TOP-Minimal-Short renamed: config/waybar/configs/[TOP] Peony -> config/waybar/configs/TOP-Peony renamed: config/waybar/configs/[TOP] Simple -> config/waybar/configs/TOP-Simple renamed: config/waybar/configs/[TOP] Simpliest -> config/waybar/configs/TOP-Simpliest renamed: config/waybar/configs/[TOP] Sleek -> config/waybar/configs/TOP-Sleek new file: config/waybar/configs/TOP-ddubs-simple-bar modified: config/waybar/style.css renamed: config/waybar/style/[0 VERTICAL] [Catpuccin] Mocha.css -> config/waybar/style/0-VERTICAL-Catpuccin-Mocha.css renamed: config/waybar/style/[0 VERTICAL] Golden Noir.css -> config/waybar/style/0-VERTICAL-Golden-Noir.css renamed: config/waybar/style/[0 VERTICAL] Oglo Chicklets.css -> config/waybar/style/0-VERTICAL-Oglo-Chicklets.css renamed: config/waybar/style/[Black & White] Monochrome.css -> config/waybar/style/Black-&-White-Monochrome.css renamed: config/waybar/style/[Catppuccin] Frappe.css -> config/waybar/style/Catppuccin-Frappe.css renamed: config/waybar/style/[Catppuccin] Latte.css -> config/waybar/style/Catppuccin-Latte.css renamed: config/waybar/style/[Catppuccin] Mocha.css -> config/waybar/style/Catppuccin-Mocha.css renamed: config/waybar/style/[Colored] Chroma Glow.css -> config/waybar/style/Colored-Chroma-Glow.css renamed: config/waybar/style/[Colored] Translucent.css -> config/waybar/style/Colored-Translucent.css renamed: config/waybar/style/[Colorful] Aurora Blossom.css -> config/waybar/style/Colorful-Aurora-Blossom.css renamed: config/waybar/style/[Colorful] Aurora.css -> config/waybar/style/Colorful-Aurora.css renamed: config/waybar/style/[Colorful] Oglo Chicklets.css -> config/waybar/style/Colorful-Oglo-Chicklets.css renamed: config/waybar/style/[Colorful] Rainbow Spectrum.css -> config/waybar/style/Colorful-Rainbow-Spectrum.css renamed: config/waybar/style/[Colorful] stolen-style.css -> config/waybar/style/Colorful-stolen-style.css renamed: config/waybar/style/Crystal Clear Glass.css -> config/waybar/style/Crystal-Clear-Glass.css renamed: config/waybar/style/[Dark] Golden Eclipse.css -> config/waybar/style/Dark-Golden-Eclipse.css renamed: config/waybar/style/[Dark] Golden Noir.css -> config/waybar/style/Dark-Golden-Noir.css renamed: config/waybar/style/[Dark] Half-Moon.css -> config/waybar/style/Dark-Half-Moon.css renamed: config/waybar/style/[Dark] Latte-Wallust combined v2.css -> config/waybar/style/Dark-Latte-Wallust-combined-v2.css renamed: config/waybar/style/[Dark] Latte-Wallust combined.css -> config/waybar/style/Dark-Latte-Wallust-combined.css renamed: config/waybar/style/[Dark] Purpl.css -> config/waybar/style/Dark-Purpl.css renamed: config/waybar/style/[Dark] Wallust Obsidian Edge.css -> config/waybar/style/Dark-Wallust-Obsidian-Edge.css renamed: config/waybar/style/[Extra] Arrow.css -> config/waybar/style/Extra-Arrow.css renamed: config/waybar/style/[Extra] Crimson.css -> config/waybar/style/Extra-Crimson.css renamed: config/waybar/style/[Extra] EverForest.css -> config/waybar/style/Extra-EverForest.css renamed: config/waybar/style/[Extra] ML4W starter.css -> config/waybar/style/Extra-ML4W-starter.css renamed: config/waybar/style/[Extra] Mauve.css -> config/waybar/style/Extra-Mauve.css renamed: config/waybar/style/[Extra] Modern-Combined - Transparent.css -> config/waybar/style/Extra-Modern-Combined-Transparent.css renamed: config/waybar/style/[Extra] Modern-Combined.css -> config/waybar/style/Extra-Modern-Combined.css renamed: config/waybar/style/[Extra] Neon Circuit.css -> config/waybar/style/Extra-Neon-Circuit.css renamed: config/waybar/style/[Extra] Prismatic Glow.css -> config/waybar/style/Extra-Prismatic-Glow.css renamed: config/waybar/style/[Extra] Rose Pine.css -> config/waybar/style/Extra-Rose-Pine.css renamed: config/waybar/style/[Extra] Simple Pink.css -> config/waybar/style/Extra-Simple-Pink.css renamed: config/waybar/style/[Light] Monochrome Contrast.css -> config/waybar/style/Light-Monochrome-Contrast.css renamed: config/waybar/style/[Light] Obsidian Glow.css -> config/waybar/style/Light-Obsidian-Glow.css renamed: config/waybar/style/ML4W Glass-3d.css -> config/waybar/style/ML4W-Glass-3d.css renamed: config/waybar/style/ML4W Glass.css -> config/waybar/style/ML4W-Glass.css renamed: config/waybar/style/[Rainbow] RGB Bordered.css -> config/waybar/style/Rainbow-RGB-Bordered.css renamed: config/waybar/style/[Retro] Simple Style.css -> config/waybar/style/Retro-Simple-Style.css renamed: config/waybar/style/[Transparent] Crystal Clear.css -> config/waybar/style/Transparent-Crystal-Clear.css renamed: config/waybar/style/[VERTICAL] [Catpuccin] Mocha.css -> config/waybar/style/VERTICAL-Catpuccin-Mocha.css renamed: config/waybar/style/[Wallust Bordered] Chroma Fusion Edge.css -> config/waybar/style/Wallust-Bordered-Chroma-Fusion-Edge.css renamed: config/waybar/style/[Wallust Bordered] Chroma Simple.css -> config/waybar/style/Wallust-Bordered-Chroma-Simple.css renamed: config/waybar/style/[Wallust] Box type.css -> config/waybar/style/Wallust-Box-type.css renamed: config/waybar/style/[Wallust] Chroma Edge.css -> config/waybar/style/Wallust-Chroma-Edge.css renamed: config/waybar/style/[Wallust] Chroma Fusion.css -> config/waybar/style/Wallust-Chroma-Fusion.css renamed: config/waybar/style/[Wallust] Chroma Tally V2.css -> config/waybar/style/Wallust-Chroma-Tally-V2.css renamed: config/waybar/style/[Wallust] Chroma Tally.css -> config/waybar/style/Wallust-Chroma-Tally.css renamed: config/waybar/style/[Wallust] Colored.css -> config/waybar/style/Wallust-Colored.css renamed: config/waybar/style/[WALLUST] ML4W-modern-mixed.css -> config/waybar/style/Wallust-ML4W-modern-mixed.css renamed: config/waybar/style/[WALLUST] ML4W-modern.css -> config/waybar/style/Wallust-ML4W-modern.css renamed: config/waybar/style/[Wallust] Simple.css -> config/waybar/style/Wallust-Simple.css renamed: config/waybar/style/[Wallust Transparent] Crystal Clear.css -> config/waybar/style/Wallust-Transparent-Crystal-Clear.css modified: config/waybar/wallust/colors-waybar.css modified: copy.sh renamed: CODE_OF_CONDUCT.es.md -> i18n/CODE_OF_CONDUCT/CODE_OF_CONDUCT.es.md new file: i18n/CODE_OF_CONDUCT/CODE_OF_CONDUCT.fr.md renamed: COMMIT_MESSAGE_GUIDELINES.es.md -> i18n/COMMIT_MESSAGE_GUIDELINES/COMMIT_MESSAGE_GUIDELINES.es.md new file: i18n/COMMIT_MESSAGE_GUIDELINES/COMMIT_MESSAGE_GUIDELINES.fr.md renamed: CONTRIBUTING.es.md -> i18n/CONTRIBUTING/CONTRIBUTING.es.md new file: i18n/CONTRIBUTING/CONTRIBUTING.fr.md renamed: i18n/README.de.md -> i18n/README/README.de.md new file: i18n/README/README.fr.md renamed: i18n/README.jp.md -> i18n/README/README.jp.md renamed: i18n/README.ro.md -> i18n/README/README.ro.md renamed: i18n/README.ru.md -> i18n/README/README.ru.md renamed: i18n/README.ua.md -> i18n/README/README.ua.md modified: scripts/lib_apps.sh modified: scripts/lib_copy.sh modified: scripts/lib_prompts.sh
Diffstat (limited to 'scripts/lib_copy.sh')
-rw-r--r--scripts/lib_copy.sh25
1 files changed, 18 insertions, 7 deletions
diff --git a/scripts/lib_copy.sh b/scripts/lib_copy.sh
index 331c6906..58fbe066 100644
--- a/scripts/lib_copy.sh
+++ b/scripts/lib_copy.sh
@@ -3,6 +3,7 @@
copy_phase1() {
local log="$1"
+ local base="${DOTFILES_DIR:-.}"
local dirs="fastfetch kitty rofi swaync"
for DIR2 in $dirs; do
local DIRPATH="$HOME/.config/$DIR2"
@@ -16,7 +17,7 @@ copy_phase1() {
BACKUP_DIR=$(get_backup_dirname)
mv "$DIRPATH" "$DIRPATH-backup-$BACKUP_DIR" 2>&1 | tee -a "$log"
echo -e "${NOTE:-[NOTE]} - Backed up $DIR2 to $DIRPATH-backup-$BACKUP_DIR." 2>&1 | tee -a "$log"
- cp -r "config/$DIR2" "$HOME/.config/$DIR2" 2>&1 | tee -a "$log"
+ cp -r "$base/config/$DIR2" "$HOME/.config/$DIR2" 2>&1 | tee -a "$log"
echo -e "${OK:-[OK]} - Replaced $DIR2 with new configuration." 2>&1 | tee -a "$log"
if [ "$DIR2" = "rofi" ]; then
if [ -d "$DIRPATH-backup-$BACKUP_DIR/themes" ]; then
@@ -39,7 +40,7 @@ copy_phase1() {
esac
done
else
- cp -r "config/$DIR2" "$HOME/.config/$DIR2" 2>&1 | tee -a "$log"
+ cp -r "$base/config/$DIR2" "$HOME/.config/$DIR2" 2>&1 | tee -a "$log"
echo -e "${OK:-[OK]} - Copy completed for ${YELLOW:-}$DIR2${RESET:-}" 2>&1 | tee -a "$log"
fi
done
@@ -47,6 +48,7 @@ copy_phase1() {
copy_waybar() {
local log="$1"
+ local base="${DOTFILES_DIR:-.}"
local DIRW="waybar"
local DIRPATHw="$HOME/.config/$DIRW"
if [ -d "$DIRPATHw" ]; then
@@ -58,7 +60,7 @@ copy_waybar() {
BACKUP_DIR=$(get_backup_dirname)
cp -r "$DIRPATHw" "$DIRPATHw-backup-$BACKUP_DIR" 2>&1 | tee -a "$log"
echo -e "${NOTE:-[NOTE]} - Backed up $DIRW to $DIRPATHw-backup-$BACKUP_DIR." 2>&1 | tee -a "$log"
- rm -rf "$DIRPATHw" && cp -r "config/$DIRW" "$DIRPATHw" 2>&1 | tee -a "$log"
+ rm -rf "$DIRPATHw" && cp -r "$base/config/$DIRW" "$DIRPATHw" 2>&1 | tee -a "$log"
for file in "config" "style.css"; do
symlink="$DIRPATHw-backup-$BACKUP_DIR/$file"
target_file="$DIRPATHw/$file"
@@ -103,13 +105,14 @@ copy_waybar() {
esac
done
else
- cp -r "config/$DIRW" "$DIRPATHw" 2>&1 | tee -a "$log"
+ cp -r "$base/config/$DIRW" "$DIRPATHw" 2>&1 | tee -a "$log"
echo -e "${OK:-[OK]} - Copy completed for ${YELLOW:-}$DIRW${RESET:-}" 2>&1 | tee -a "$log"
fi
}
copy_phase2() {
local log="$1"
+ local base="${DOTFILES_DIR:-.}"
local DIR="btop cava hypr Kvantum qt5ct qt6ct swappy wallust wlogout"
for DIR_NAME in $DIR; do
local DIRPATH="$HOME/.config/$DIR_NAME"
@@ -118,8 +121,8 @@ copy_phase2() {
BACKUP_DIR=$(get_backup_dirname)
mv "$DIRPATH" "$DIRPATH-backup-$BACKUP_DIR" 2>&1 | tee -a "$log"
fi
- if [ -d "config/$DIR_NAME" ]; then
- cp -r "config/$DIR_NAME/" "$HOME/.config/$DIR_NAME" 2>&1 | tee -a "$log"
+ if [ -d "$base/config/$DIR_NAME" ]; then
+ cp -r "$base/config/$DIR_NAME/" "$HOME/.config/$DIR_NAME" 2>&1 | tee -a "$log"
echo "${OK:-[OK]} - Copy of config for ${YELLOW:-}$DIR_NAME${RESET:-} completed!" 2>&1 | tee -a "$log"
else
echo "${ERROR:-[ERROR]} - Directory config/$DIR_NAME does not exist to copy." 2>&1 | tee -a "$log"
@@ -146,7 +149,15 @@ restore_hypr_assets() {
echo -e "\n${NOTE:-[NOTE]} Restoring ${SKY_BLUE:-}Animations & Monitor Profiles${RESET:-} into ${YELLOW:-}$HYPR_DIR${RESET:-}..."
- local DIR_B=("Monitor_Profiles" "animations" "wallpaper_effects")
+ # Fresh installs should apply repo defaults; do not restore a previous wallpaper.
+ # RUN_MODE is set by copy.sh (install|upgrade|express) and is visible here.
+ local DIR_B=("Monitor_Profiles" "animations")
+ if [ "${RUN_MODE:-}" != "install" ]; then
+ DIR_B+=("wallpaper_effects")
+ else
+ echo "${NOTE:-[NOTE]} Fresh install: skipping restore of wallpaper_effects so default wallpaper applies." 2>&1 | tee -a "$log"
+ fi
+
for DIR_RESTORE in "${DIR_B[@]}"; do
local BACKUP_SUBDIR="$BACKUP_HYPR_PATH/$DIR_RESTORE"
if [ -d "$BACKUP_SUBDIR" ]; then
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage