Hi everyone, I wanna share with you my first kwin script to manage the window maximization as Mac does. I needed some “hacks” to make this works , and I suspect there are some bugs that I’m not 100% if are from my script. I know there are many kwin scripts to achieve this , but all that I tested didn´t work ok for me.
This script allows (or at least I understand that allows)
- When a window is maximized , will be maximized to a new virtual desktop (will not be the first one , will be the last one virtual desktop)
- Everytime that a window (that is maximized in a virtual desktop) is closed the virtual desktop related will be erased
- It is possible unmaximized a maximized window with escape button (but is the only thing that scape button can do. I didn´t find a way to remove a registered shortcut from a kwin script yet
- If the title bar is clicked twice the window will be maximized but in the main desktop , I mean , will not be maximized to a new virtual desktop. To achieve this I use the shade event (this script modify the shade behaviour)
- If a window is maximized to a new virtual desktop , and then is minized, the window will be restored to a virtual desktop
This is a beta realease , and as I said , probably this has bugs . I’m not pretty sure if I will going to maintain this. At the moment right now I’m testing it in my computer . Also I know the code could be better but I didn´t use too much functions to achieve the code will be really explicit (I was strugling a lot with some bugs).
Thanks to read this and bye!