Skip to content

fix(migrations): rewrite hyprlock.conf references in the theme-state move - #419

Open
duketopceo wants to merge 1 commit into
omacom:quattrofrom
duketopceo:fix-hyprlock-state-path
Open

fix(migrations): rewrite hyprlock.conf references in the theme-state move#419
duketopceo wants to merge 1 commit into
omacom:quattrofrom
duketopceo:fix-hyprlock-state-path

Conversation

@duketopceo

Copy link
Copy Markdown

Summary

Fixes #382 — the narrow repair the reporter suggested.

migrations/1781043107.sh moves ~/.config/omarchy/current~/.local/state/omarchy/current and rewrites every shipped config that references it — except hyprlock.conf, which isn't in the replace_current_path file list. A retained legacy lock config keeps source/background pointing at the directory the migration just removed, and the lock screen loses its theme.

One-line change: add $HOME/.config/hypr/hyprlock.conf to the list — it covers all three path spellings ($HOME/..., literal ~, and ../ relative) through the existing helper.

Test plan

  • New test/shell.d/theme-state-migration-test.sh: legacy hyprlock.conf + assets under the old dir → asserts the move lands, the dir is gone, and both source and background references resolve to the new location; idempotent on already-migrated files — 2/2 pass

Generated with Devin

…move

migrations/1781043107.sh moves ~/.config/omarchy/current to
~/.local/state/omarchy/current and rewrites the terminals and Hyprland
configs, but not a retained hyprlock.conf — its source/background paths
keep pointing at the directory the migration just removed, so the lock
screen loses its theme. Add it to the rewrite list.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick-later Port to omacom/omarchy after the overlay merges; match mainline.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Theme-state migration leaves legacy hyprlock.conf references pointing at removed paths

2 participants