KSizer is a KWin script that adds resize presets to the window menu, letting you quickly size and center windows to saved dimensions.
- Adds a "KSizer " submenu in the window menu.
- Resizes windows to preset widths and heights.
- Centers windows by default (configurable).
- Presets are configurable from System Settings.
- KDE Plasma with KWin scripting support (Plasma 6 recommended).
- Copy the
packagedirectory into your KWin scripts folder.- Example:
~/.local/share/kwin/scripts/KSizer
- Example:
- In System Settings, open Window Management > KWin Scripts.
- Enable the script and click Configure to edit presets.
- Click Apply.
- Focus a window.
- Open the window menu using
Alt+F3or by right clicking the titlebar. - Open the "KSizer " submenu.
- Pick a preset to resize and center the window.
- Presets are stored under the
Presetskey in the script config. - Centering is enabled by default and can be changed in the configuration UI.
- After changing presets, toggle the script off/on to refresh the menu.
package/metadata.json: KWin package metadata.package/contents/code/main.js: main script entrypoint.package/contents/config/main.xml: KConfigXT schema for presets.package/contents/ui/config.ui: configuration UI.
No build, lint, or test tooling is configured.
Manual testing:
- Enable or reload the script in System Settings > Window Management > KWin Scripts.
- Open any window, press
Alt+F3, and select a preset. - Verify the window resizes and centers within the available area.
GPL-3.0-or-later. See LICENSE.
If KSizer helps your workflow, you can support development here: https://buymeacoffee.com/allenguarnes
