feat: add match.is_alone window rule - #187
Merged
Merged
Conversation
Yocraft-2000
force-pushed
the
feat/alone-window-rule
branch
from
September 8, 2026 09:55
6fb91e0 to
f44a4fa
Compare
Yocraft-2000
marked this pull request as draft
September 8, 2026 10:02
Yocraft-2000
marked this pull request as ready for review
September 8, 2026 12:44
match.is_alone window rule
# Conflicts: # docs/user/window-rules.md # examples/config.toml # src/config/resolve.cpp # src/config/resolve.h # src/view/view.cpp # src/view/view.h # tests/unit/config_resolve.cpp
Contributor
|
Thanks! |
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.
Summary
Added
is_alonewindow rule match.Floating windows are ignored, the rule only match tiled windows.
Revert only if toggle by the rule, a window opened fullscreen will not unfullscreen when opening another one.
Re-evaluated whenever the tiled windows change (open, close, move, float toggle, etc) and on config reload.
Motivation
Objective is to find an optimal solution to #93, #177 and also the already added
expand_single_column.One window rule that can do all of that is better than a lot of random options.
This one resolve #93 :
This one resolve #177 :
this one replace
expand_single_column:It can also extend to a lot of other use cases.
Type of Change
Related Issue
Closes #93 and #177.
Related to the already merged #48.
Testing
just formatjust testjust lintManual Coverage
Screenshots / Videos
Checklist
SCOPE.md, or its scope was agreed in an issue or on Discord first.CONTRIBUTING.md.just format, or this PR has no C++ changes.docs/andexamples/config.toml, or this PR does not change user-facing configuration or behavior.Additional Notes