Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply all the workspace rules for the same workspace selector #5656

Merged
merged 1 commit into from Apr 20, 2024

Conversation

thejch
Copy link
Contributor

@thejch thejch commented Apr 19, 2024

Describe your PR, what does it fix/add?

merge all the rules set for the same workspace selector when adding to workspace rules.
current behavior if you have

workspace = 1, gapsout:10
workspace = 1, gapsin:10

then the first rule is discarded and the second rule is added.
and if you set another workspace rule now by calling hyprctl keyword workspace "1, bordersize:5" then those 2 exisitng rules will be discarded.
the pr allows all the rules to be merged into one rule and be applied.
the merged rule has the priority of the first rule

fixes #5537 btw

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

not really

Is it ready for merging, or does it need work?

ready

Copy link
Member

@vaxerski vaxerski left a comment

Choose a reason for hiding this comment

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

lgtm

@vaxerski vaxerski merged commit 10caa03 into hyprwm:main Apr 20, 2024
9 checks passed
@thejch thejch deleted the merge-wsrules branch April 20, 2024 07:07
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.

Can't set gapsin and gapsout per workspace simultaneously with hyprctl
2 participants