aboutsummaryrefslogtreecommitdiffstats
path: root/copy.sh
diff options
context:
space:
mode:
authorDon Williams <don.e.williams@gmail.com>2026-08-06 13:38:00 -0400
committerPinapelz <yukais@pinapelz.com>2026-08-29 21:41:34 -0700
commit18bebb8b1c82ce894d988ab285c3afe4ec2e2c45 (patch)
tree7ba04590e73fd02af18481162b783789abf9473e /copy.sh
parent599b7ea24c966b34e9d2c839e9ff239f01bbf52f (diff)
Copy.sh defaults to LUA and migrates on updates
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: CHANGELOG.md modified: copy.sh modified: scripts/lib_copy.sh modified: scripts/lib_prompts.sh
Diffstat (limited to 'copy.sh')
-rwxr-xr-xcopy.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/copy.sh b/copy.sh
index a77d2f23..ec34d3d5 100755
--- a/copy.sh
+++ b/copy.sh
@@ -343,6 +343,7 @@ EOF
UPGRADE_MODE=0
EXPRESS_MODE=0
+MIGRATE_HYPR_TO_LUA=0
RUN_MODE=""
while [[ $# -gt 0 ]]; do
@@ -611,6 +612,11 @@ printf "\n%.0s" {1..1}
printf "\n%.0s" {1..1}
prompt_express_upgrade "$EXPRESS_SUPPORTED" "$LOG"
+# Upgrade/express: confirm Hyprlang -> Lua migration (default yes).
+if [ "$RUN_MODE" = "upgrade" ] || [ "$RUN_MODE" = "express" ]; then
+ prompt_lua_migration "$LOG"
+fi
+
set -e
# Check if the ${XDG_CONFIG_HOME:-$HOME/.config}/ directory exists
@@ -631,6 +637,10 @@ printf "${INFO} - Copying dotfiles ${SKY_BLUE}second${RESET} part\n"
copy_phase2 "$LOG"
preserve_custom_sddm_configs "$LOG"
ensure_lua_keybinds "$LOG"
+# Fresh copy defaults to Lua config (Hyprland next release is Lua-only).
+if [ "$RUN_MODE" = "install" ]; then
+ enable_fresh_install_lua_config "$LOG"
+fi
printf "\\n%.0s" {1..1}
# waybar-weather config handling:
# - install (fresh copy): always overwrite and prompt for units
@@ -815,6 +825,10 @@ printf "\n%.0s" {1..1}
restore_hypr_files "$LOG" "$EXPRESS_MODE"
restore_runtime_personal_state "$LOG"
+# After restores, migrate restored Hyprlang customizations to Lua when approved.
+if [ "$RUN_MODE" = "upgrade" ] || [ "$RUN_MODE" = "express" ]; then
+ migrate_hypr_to_lua_if_needed "$LOG" "${MIGRATE_HYPR_TO_LUA:-0}" || true
+fi
printf "\n%.0s" {1..1}
printf "\n%.0s" {1..1}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage