A kwin script that automatically tiles windows
mkdir -p ~/.local/share/kwin/scripts/grid-tiling
cd ~/.local/share/kwin/scripts/grid-tiling
ln -s <path>/contents
ln -s <path>/metadata.json
<path>
is the path to this repository./usr/share
instead of ~/.local/share
kpackagetool6
is at this moment of writing broken and unable to install declarative kwin scripts without a main.js
rows=2,2
and colums=2,3
results screen 1: 2x2
, screen 2: 2x3
1
is the largest and fully takes up a desktop, size of 2
means that it takes up at least half of the virtual desktop and so forth...Action | Shortcut |
---|---|
Window to Next Desktop | Meta+End |
Window to Previous Desktop | Meta+Home |
Switch to Next Desktop | Meta+Right |
Switch to Previous Desktop | Meta+Left |
Toggle Overview | Meta+Space |
Move Window to Next Screen | Meta+PgUp |
Move Window to Previous Screen | Meta+PgDown |
Switch to Next Screen | Meta+Up |
Switch to Previous Screen | Meta+Down |
Grid Tiling: Move Left | Meta+Ctrl+Left |
Grid Tiling: Move Right | Meta+Ctrl+Right |
Grid Tiling: Move Up | Meta+Ctrl+Up |
Grid Tiling: Move Down | Meta+Ctrl+Down |
Switch to Window Left | Meta+Alt+Left |
Switch to Window Right | Meta+Alt+Right |
Switch to Window Above | Meta+Alt+Up |
Switch to Window Below | Meta+Alt+Down |
Grid Tiling: Increase Size | Meta+= |
Grid Tiling: Decrease Size | Meta+- |
Grid Tiling: Maximize Size | Meta++ |
Grid Tiling: Minimize Size | Meta+_ |
Grid Tiling: Tile/Float | Meta+T |
Grid Tiling: Toggle Gap | Meta+G |
Grid Tiling: Toggle Border | Meta+B |
Minimize Window | Meta+N |
Grid Tiling: Toggle Minimize Desktop | Meta+M |
Window Operations Menu | Meta+` |
Grid Tiling: Refresh | Meta+R |
Grid Tiling: Reset | Meta+Ctrl+R |
Close Window | Meta+W |
Grid Tiling: Close Desktop | Meta+Q |
KWin
application that contains the shortcuts to this script. Restart KWin and then activate the script again and the old unused shortcuts should now all be goneRegExp
class which is build using the string that the user provides and then the test
method is used on the window class (application) property (equivalent JS code RegExp(config).test(window.resourceName)
). You can find the value for these properties on a window by opening the Windows Operations Menu (there is a global shortcut for this). For some examples check out the min space section of the configuration interfacejournalctl _COMM=kwin_wayland