-
-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(wm): add dynamic layout selection rules
This commit adds a new feature which allows the user to specify a set of rules for a specific workspace that will be used to calculate which layout to apply to that workspace at any given time. The rule consists of a usize, which identifies the threshold of window containers which need to be visible on the workspace to activate the rule, and a layout, which will be applied to the workspace when the rule is activated. Both default and custom layouts can be used in workspace layout rules. When a workspace has layout rules in effect, manually changing the layout will not work again until the rules for that workspace have been cleared. This feature came about after trying but failing to modify the custom layout code in such a way that the width percentage of a primary column in a custom layout might be propagated to the fallback columnar layout when the tertiary column threshold is not met. Although this new feature introduces more complexity, it is strictly opt-in and can be completely ignored if the user has no interest in adjusting layouts based on the visible window count. re #121
- Loading branch information
Showing
7 changed files
with
286 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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