mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #1524] feat(wm): add dynamic work area offsets #1445
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/LGUG2Z/komorebi/pull/1524
Author: @omark96
Created: 8/2/2025
Status: 🔄 Open
Base:
master← Head:feat(wm)/dynamic-workspace-offset📝 Commits (1)
5f3a36dfeat(wm): add dynamic work area offsets📊 Changes
3 files changed (+41 additions, -2 deletions)
View changed files
📝
komorebi/src/static_config.rs(+11 -0)📝
komorebi/src/window_manager.rs(+1 -0)📝
komorebi/src/workspace.rs(+29 -2)📄 Description
This commit adds a config setting to let you set custom work_area_offset_rules for a workspace, following a simlar schema as for layout_rules. Still WIP, I have yet to test it alongside https://github.com/LGUG2Z/komorebi/pull/1476 so awaiting the verdict on that before doing further testing.
Example of a workspace configured to use this:
EDIT: I just found that monocle mode is bugged and is using the rule for having 1 window less than what the workspace had before entering monocle mode. So if you have 2 windows open and go to monocle mode it will count as having 1 window open, but if you have 4 windows it will count as having 3 windows open. Will have to add special case for monocle mode.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.