esjeon / krohnkite

A dynamic tiling extension for KWin
MIT License
1.66k stars 66 forks source link

Support the maximize button/window state #79

Open gikari opened 4 years ago

gikari commented 4 years ago

It would be nice to support maximize button in windows decorations and somehow hook to window maximized state. For example:

  1. The user clicks the maximize button - the layout is switched to monocle.
  2. The user clicks again and the layout is brought to the previous state.

In other words the window maximized state is bound to the layout mode.

Window State Layout
Maximized Monocle
Unmaximized Any other layout
esjeon commented 4 years ago

One thing is that, the git version already supports the KWin native maximization, so you can try that one at the moment.

The idea sounds great, and is quite aligned with my initial idea. But sadly KWin does not allow scripts to alter maximization state, so all it can do is to toggle Monocle layout whenever maximization state toggles, no matter whose state it is nor which state it is. This can get clunky, but, yeah.

esjeon commented 4 years ago

@SidharthArya I suggest checking the version of Krohnkite. You have to restart your session (or KWin) after upgrading the script, because script files are cached inside KWin.

SidharthArya commented 4 years ago

@esjeon Yes it did work after restaring. Thank You.