Keep Hyprland toggle catalog out of new-user state - #3
Merged
Conversation
Copying default/hypr/toggles into ~/.local/state enabled window-no-gaps and the 1:1 single-window flag for every new session. The catalog is opt-in; the state directory should start empty. Fixes omacom#1
themartiano
reviewed
Aug 25, 2026
themartiano
left a comment
Collaborator
There was a problem hiding this comment.
A lot of people noticed this, thanks for fixing!
| # Presence of a file here enables that Hyprland flag. default/hypr/toggles is | ||
| # the catalog (window-no-gaps, 1:1 single window), not the factory default. | ||
| mkdir -p "$root/etc/skel/.local/state/omarchy/toggles/hypr" | ||
| copy_contents "$source_dir/default/hypr/toggles" "$root/etc/skel/.local/state/omarchy/toggles/hypr" |
Collaborator
There was a problem hiding this comment.
Here we stop copying the whole directory, but flags.lua is also there and not the cause of the issue.
Not sure what's the impact, but to keep Omarchy as close to source as possible, can you please import it here?
Contributor
Author
There was a problem hiding this comment.
Done. New sessions now get only flags.lua (the empty-directory sentinel). window-no-gaps and single-window-aspect-ratio stay in the catalog.
The catalog files remain opt-in. flags.lua is the empty-directory sentinel from upstream, so keep that one file.
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1
omarchy-hyprland-toggletreats any file in~/.local/state/omarchy/toggles/hypr/as an enabled flag.materialize-omarchy.shwas copying the catalog fromdefault/hypr/toggles/into that directory for every new user.That turned on:
window-no-gaps(gaps and borders at 0)single-window-aspect-ratio(first window as a centered 1:1 square)The catalog stays under
/usr/share/omarchy/default/hypr/toggles/so users can still toggle the flags. New sessions start with an empty state directory.Existing VMs already copied those files into
$HOME. A factory reset (or deleting those two lua files from the toggle state dir) is needed to pick this up.