KWin script that keeps selected windows centered
  • JavaScript 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-07 22:09:40 +02:00
.forgejo/workflows Initial commit 2026-08-12 22:03:18 +02:00
assets Add demo animation 2026-08-13 21:29:23 +02:00
contents Add graphical configuration 2026-08-13 21:31:03 +02:00
metadata.json Fix typo 2026-08-31 08:47:55 +02:00
README.md Add KDE Store installation method 2026-08-31 11:19:35 +02:00
renovate.json Add renovate.json 2026-09-07 20:05:09 +00:00

💠 Center Window on Resize

A KWin 6 script that keeps selected windows centered when their size changes.

Demo animation

Tested on Plasma 6 under Wayland.

Installation

Option 1: System Settings → Window Management → KWin Scripts → Get New... and search for Center Window on Resize. This enables native updates via KNewStuff.

Option 2: Download the .kwinscript file and install it through System Settings → Window Management → KWin Scripts, then enable it.

Option 3: Clone the repository and run

kpackagetool6 --type=KWin/Script -i .

Configuration

The target window classes are configurable in the script's settings (System Settings → Window Management → KWin Scripts → Configure...). Multiple classes can be given as a comma-separated list. Defaults to qView.

License

Licensed under MIT license.