Use KDE 6+ Tiling manager and "tile" all windows at the best positon without having to press the shift
key.
It will not split or add areas on the fly, the window is only resized to an existing area that you can define with Meta+T
using KDE's tiling editor.
Single windows are maximized automatically.
This extension is unstable.
Requirements :
- Since version
v1.0.0
, KDE/Plasma 6 is required, for Plasma 5.27 use releasev0.1.6
.
Demo:
Resources :
- KWin documentation https://develop.kde.org/docs/plasma/kwin/api/
- Plasma's MR that adds Tiling support https://invent.kde.org/plasma/kwin/-/merge_requests/2560/diffs
- KDE's Scripting support https://invent.kde.org/plasma/kwin/-/blame/master/src/scripting/scripting.cpp#L210
Inspired by :
- https://github.com/esjeon/krohnkite
- https://github.com/Bismuth-Forge/bismuth
- https://github.com/zeroxoneafour/polonium
How to install :
- Download a release from https://github.com/ragusa87/kde-tiling-on-drag/releases (file
kde-tiling-on-drag.kwinscript
). - Open Plasma setting and search for "KWin" (Windows Management -> KWin Script).
- Click on "Install from file" and select the
kde-tiling-on-drag.kwinscript
file. - Enable this extension (kde-tiling-on-drag).
- Click on Apply.
How to use it :
- Make sure your enabled the tiling editor in the "Desktop effect" settings.
- Press "Meta+T" to open the tiling Editor.
- Setup a layout.
- Drag or open any window, it will be tiled automatically.
How to compile and install from source :
- Install requirements (
makefile
,7z
,npm
,plasmapkg2
orplasma-framework
) - Edit the source file
- Run
make reload
to build the package and reload it in Plasma
Limitations :
- It's buggy
- You need to set at least a layout with 2 areas.
- There is no feature such as "switch layout", etc.
- If you need more, stick to a more advanced script. This one is only an MVP.
- You can of course submit MR or fork.