Closed tgrosinger closed 6 months ago
This is not a bug; this is part of the current design spec of custom layouts. Only a Tertiary column can occupy the rightmost position.
This feature doesn't really have an owner right now and honestly I regret implementing it. 😅
If anyone wants to work on a "Custom Layouts v2" with more flexibility in the design spec I am happy to mentor.
Some good places to start looking for anyone who is interested:
Here's the layout that I am actually trying to achieve. Is there another way I can accomplish this that would be valid?
[
{
"column": "Tertiary",
"configuration": "Horizontal"
},
{
"column": "Primary",
"configuration": {
"WidthPercentage": 75
}
}
]
I tried putting the primary column first and then swapping, but it seems that flip-layout horizontal
does not work on custom layouts.
I also tried using the VerticalStack
layout, but it enforces that the primary is 50% width and you can't resize it.
So many options that are so close, but haven't quite found one that gets me all the way there.
You can get close with VerticalStack
flipped on the horizontal axis, but resize has not been implemented for this layout:
This is also a good first issue to work on and you should be able to take some good inspiration from here:
@tgrosinger I added a RightMainVerticalStack
layout with resizing enabled here: https://github.com/LGUG2Z/komorebi/commit/383533e2d9a0cf1e893516311acd2cf4ce2f2dcc
+-----+-------+
| | |
+-----+ |
| | |
+-----+-------+
stack main
Exciting, thank you! I'll give it a try soon.
I'd love to help with adding some features to this project, but I don't have the bandwidth to start learning Rust at the moment. Maybe some day though :)
This is perfect, thanks again.
I was also looking for a RightMain
-type of layout, and arrived at the same bug with the custom_layout
config, where keeping "Primary" to the far-right is treated as an invalid layout.
For now, RightMainVerticalStack
works great, as I can actually drag the main column and resize it as long as I don't move any other window around. When a window is moved to another monitor, the 50-50 split layout kicks back again.
Question: how to let the adjusted width for RightMainVerticalStack
persist? Does the workspace setting (where I specify the "layout" key) take some additional argument to indicate how wide the Primary column should be? I tried to play with the resize_dimensions
key, but didn't find a good way to load it properly.
Describe the bug If you place a primary column as the last column in a custom layout, komorebi fails to load.
For example, this custom layout will load:
But if we change the ordering of the last two columns:
It will no longer load.
Operating System
komorebic check
Output