Window Size Shortcuts for KDE Plasma 6

For a while now, I have been missing two small window management features in KDE Plasma 6 on Wayland: a shortcut for resizing the active window to a useful default size, and the old Cascade Windows action.

I wrote a small KWin script to bring that workflow back. It adds three size presets on Meta+1, Meta+2, and Meta+3, while Meta+C centers the active window without changing its size.

Meta+0 arranges all windows on the current desktop. Pressing it repeatedly cycles through Cascade, Grid, Columns, and Rows. Windows stay on their current monitor, so this also works sensibly with multiple displays.

The size presets use fractions of the available work area instead of fixed pixel values. This means Small, Medium, and Large remain in the right order on both my laptop display and a larger external monitor, while also respecting panels.

I also added shortcuts for minimizing and restoring windows. Meta+Space uses KDE's built-in Minimize All action, while Meta+Shift+Space restores every minimized window on the current desktop.

The installer packages the script, resolves the conflicting Task Manager shortcuts, enables it in KWin, and verifies that it was actually loaded. It is made for Plasma 6 on Wayland.

The source code and installation instructions are available on GitHub: github.com/MaMuk/kde-window-size-shortcuts