mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[BUG]: Custom layout is ignored when there are only two windows #226
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?
Originally created by @averrin on GitHub (Jun 29, 2023).
Describe the bug
I have a custom layout (just 70% width instead of 50%) and it works until there are only two windows on a workspace. It fallbacks to 50%
To Reproduce
Expected behavior
Width of the left is 70%
Operating System
Windows 11
komorebi is built from master branch.
komorebic stateOutput@averrin commented on GitHub (Jul 1, 2023):
komorebic workspace-custom-layout-rule 0 0 2 ~/custom.yamldoesn't help either =(@LGUG2Z commented on GitHub (Jul 1, 2023):
Let's continue this here: https://github.com/LGUG2Z/komorebi/issues/390
tl;dr Custom layouts require at least the number of columns + 1 to be activated, though this may be reduced to at least the number of columns in the future.
@averrin commented on GitHub (Jul 1, 2023):
This works for me: https://github.com/LGUG2Z/komorebi/pull/477
But tbh, looks suspicious and may cause problems in all other cases.
@averrin commented on GitHub (Jul 1, 2023):
Oh, I see, Im not the smartest guy here.
@LGUG2Z commented on GitHub (Jul 1, 2023):
@averrin I just applied that exact change in the
masterbranch; if your custom layout only contains two columns (primary and tertiary), then your custom layout will load when there are at least 2 windows open (this will be like a master/stack layout I guess?)