Skip to content

Move toggle config source before user overrides in hyprland.conf#6201

Closed
sridhar-3009 wants to merge 1 commit into
basecamp:masterfrom
sridhar-3009:fix/6068-toggle-load-order
Closed

Move toggle config source before user overrides in hyprland.conf#6201
sridhar-3009 wants to merge 1 commit into
basecamp:masterfrom
sridhar-3009:fix/6068-toggle-load-order

Conversation

@sridhar-3009

Copy link
Copy Markdown
Contributor

Problem

Toggle conf files (~/.local/state/omarchy/toggles/hypr/*.conf) are loaded after the user's custom files (looknfeel.conf, etc.), so any Hyprland variable set by a toggle — like single_window_aspect_ratio from the tiling toggle — silently overrides whatever the user put in their own looknfeel.conf. The only workaround today is to source looknfeel.conf again at the very bottom of hyprland.conf.

Reported in #6068.

Fix

Move the toggle source glob to be between the Omarchy defaults and the user's custom files:

Omarchy defaults → current theme → toggle flags → user overrides

User overrides always win, which is the expected mental model: toggles express Omarchy feature flags, not unoverrideable system policy.

The toggle conf glob was loaded after the user's custom files
(looknfeel.conf, etc.), so any Hyprland variable set by a toggle — like
single_window_aspect_ratio from the tiling toggle — silently won over
whatever the user had in their own looknfeel.conf.

Move the toggle source line to be after the Omarchy defaults but before
the user's custom files. The new order is:

  Omarchy defaults → current theme → toggle flags → user overrides

User overrides always win, which is the expected mental model.

Fixes basecamp#6068.
Copilot AI review requested due to automatic review settings July 10, 2026 04:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Moves Hyprland toggle config sourcing earlier in the default hyprland.conf so Omarchy toggles act as feature flags while user config files remain the final authority (user overrides win).

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Changes:

  • Reorders source = ~/.local/state/omarchy/toggles/hypr/*.conf to load after defaults/theme but before user override files in config/hypr/hyprland.conf.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread config/hypr/hyprland.conf
Comment on lines +15 to +17
# Toggle config flags dynamically (loaded before user overrides so that
# ~/.config/hypr/looknfeel.conf and friends can still take precedence)
source = ~/.local/state/omarchy/toggles/hypr/*.conf
@dhh

dhh commented Jul 18, 2026

Copy link
Copy Markdown
Member

Closing in favor of the Lua-compatible toggle load-order fix in #6116.

@dhh dhh closed this Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants