Originally created by @crosstyan on GitHub (Aug 18, 2021).
I don't think it's a bug and I know there's toggle-monocle in komorebi, but personally I prefer a more native monocle implement which is maximizing a window.
You can see the problem that window get retiled after switching back to a workspace with maximized window, which is not what I expected.
Originally created by @crosstyan on GitHub (Aug 18, 2021).
I don't think it's a bug and I know there's `toggle-monocle` in komorebi, but personally I prefer a more native monocle implement which is maximizing a window.


You can see the problem that window get retiled after switching back to a workspace with maximized window, which is not what I expected.
I was not able to find a way to do this relying just on WinEvents, but since you are already using a hotkey for native maximization, I have implemented a komorebic command (toggle-maximize) to handle maximization and restoration through the komorebi process. This way, it can be tracked as part of the window manager state, and when switching back to a workspace that has a maximized window, the window will be loaded in the maximized state.
@LGUG2Z commented on GitHub (Aug 18, 2021):
I was not able to find a way to do this relying just on WinEvents, but since you are [already using a hotkey for native maximization](https://gist.github.com/crosstyan/dafacc0778dabf693ce9236c57b201cd#file-komorebic-ahk-L200), I have implemented a `komorebic` command (`toggle-maximize`) to handle maximization and restoration through the `komorebi` process. This way, it can be tracked as part of the window manager state, and when switching back to a workspace that has a maximized window, the window will be loaded in the maximized state.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @crosstyan on GitHub (Aug 18, 2021).
I don't think it's a bug and I know there's
toggle-monoclein komorebi, but personally I prefer a more native monocle implement which is maximizing a window.You can see the problem that window get retiled after switching back to a workspace with maximized window, which is not what I expected.
@LGUG2Z commented on GitHub (Aug 18, 2021):
I was not able to find a way to do this relying just on WinEvents, but since you are already using a hotkey for native maximization, I have implemented a
komorebiccommand (toggle-maximize) to handle maximization and restoration through thekomorebiprocess. This way, it can be tracked as part of the window manager state, and when switching back to a workspace that has a maximized window, the window will be loaded in the maximized state.@crosstyan commented on GitHub (Aug 18, 2021):
Gist updated.