Remember split size? #957
-
Consider the following scenario: Two windows are tiled side-by-side, with each taking up 50% of the monitor. The windows are resized so one column is wider than the other. One window is minimized and subsequently restored. The split is now back to 50/50. Is it possible to have Komorebi remember the previous split dimensions so that when the second window is restored it returns to the same layout? Incredible app, thank you for creating this! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
It seems it does remember if you maximize a window then restore, but forgets if you go into monocle mode then restore. Indeed, it would be nice to remember for that case as well. EDIT: Oh. If I maximize with the mouse it remembers, but if I use the komorebic command it forgets. |
Beta Was this translation helpful? Give feedback.
-
You can assign binds for https://lgug2z.github.io/komorebi/cli/save-resize.html Once a window is removed from the window manager's visibility tree (eg. windows are minimized or closed) any state associated with those windows is also removed (resize dimensions are stored alongside window containers) - the only way around this is to serialize and write these ephemeral resize dimensions to disk and then load them up again in the future whenever you want them reapplied. |
Beta Was this translation helpful? Give feedback.
You can assign binds for
komorebi save-resize <filepath>
andkomorebic load-resize <filepath>
to achieve this:https://lgug2z.github.io/komorebi/cli/save-resize.html
https://lgug2z.github.io/komorebi/cli/load-resize.html
Once a window is removed from the window manager's visibility tree (eg. windows are minimized or closed) any state associated with those windows is also removed (resize dimensions are stored alongside window containers) - the only way around this is to serialize and write these ephemeral resize dimensions to disk and then load them up again in the future whenever you want them reapplied.