diff options
| author | Don Williams <don.e.williams@gmal.com> | 2026-07-24 17:04:04 -0400 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-08-29 21:41:34 -0700 |
| commit | beceab7fb97654483b5d505ee6d251b206143aed (patch) | |
| tree | 28993072f211310d366a2a0110fedc2c2ff47b07 /copy.sh | |
| parent | 84ed728735d7d2d550675a072879e285a6ebf9f8 (diff) | |
copy.sh was enablling lua workflow
Added additional checks
Signed-off-by: Don Williams <don.e.williams@gmal.com>
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
Diffstat (limited to 'copy.sh')
| -rwxr-xr-x | copy.sh | 25 |
1 files changed, 24 insertions, 1 deletions
@@ -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() { |
