From beceab7fb97654483b5d505ee6d251b206143aed Mon Sep 17 00:00:00 2001 From: Don Williams Date: Fri, 24 Jul 2026 17:04:04 -0400 Subject: copy.sh was enablling lua workflow Added additional checks Signed-off-by: Don Williams On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/UserConfigs/01-UserDefaults.conf modified: config/hypr/configs/Startup_Apps.conf modified: config/hypr/lua/startup.lua modified: config/hypr/scripts/WallpaperDaemon.sh modified: config/hypr/scripts/WaybarStartup.sh modified: config/rofi/.current_wallpaper modified: copy.sh modified: scripts/lib_copy.sh --- copy.sh | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'copy.sh') diff --git a/copy.sh b/copy.sh index 0ed8e8ac..a77d2f23 100755 --- a/copy.sh +++ b/copy.sh @@ -225,6 +225,20 @@ if ! declare -f restore_runtime_personal_state >/dev/null 2>&1; then echo "${OK} Restored runtime wallpaper state after copy." 2>&1 | tee -a "$log" rm -f "$state_file" 2>/dev/null || true fi + + if [ -L "$rofi_link" ]; then + local resolved_link="" + resolved_link="$(readlink -f "$rofi_link" 2>/dev/null || true)" + if [ -z "$resolved_link" ] || [ ! -f "$resolved_link" ]; then + if [ -f "$wallpaper_current" ]; then + ln -snf "$wallpaper_current" "$rofi_link" 2>/dev/null || true + echo "${NOTE} Repaired broken rofi wallpaper link to wallpaper_current fallback." 2>&1 | tee -a "$log" + fi + fi + elif [ ! -e "$rofi_link" ] && [ -f "$wallpaper_current" ]; then + ln -snf "$wallpaper_current" "$rofi_link" 2>/dev/null || true + echo "${NOTE} Initialized rofi wallpaper link from wallpaper_current fallback." 2>&1 | tee -a "$log" + fi } fi @@ -270,8 +284,17 @@ is_kooldots_config() { is_oem_lua_config() { local cfg_home + local hypr_dir cfg_home="$(config_home)" - [ -f "$cfg_home/hyprland.lua" ] || [ -f "$cfg_home/hypr/hyprland.lua" ] + hypr_dir="$cfg_home/hypr" + + # Explicit Hyprlang workflow marker: + # if hyprland.lua.disable exists and hyprland.lua does not, treat host as conf mode. + if [ -f "$hypr_dir/hyprland.lua.disable" ] && [ ! -f "$hypr_dir/hyprland.lua" ]; then + return 1 + fi + + [ -f "$cfg_home/hyprland.lua" ] || [ -f "$hypr_dir/hyprland.lua" ] } require_kooldots_for_upgrade() { -- cgit v1.2.3