Skip to content

GNOME Window Control v10

Choose a tag to compare

@hk9890 hk9890 released this 03 Sep 12:35
· 582 commits to main since this release
f9dafa2

What's new

  • wctl workarea [<MONITOR>] [--json] reports a monitor's usable area — the rectangle minus panels and docks, which wctl monitors never gave you. Defaults to the primary monitor.
  • wctl resolve-place [--monitor <N>] <X> <Y> <W> <H> --json reports the rectangle a placement resolves to, with no window and nothing moved. Use it to size a window before it exists.
  • --json on place, tile and center reports the workarea used and the rectangle wctl resolved, so a script can verify a placement by comparing against it instead of recomputing the percentages.
  • --settled on place, tile and center returns only once the frame has stopped changing, and reports where it stopped.
  • wctl version --json reports the extension version GNOME Shell has actually loaded and whether it matches this wctl — so an install the shell has not picked up yet shows as a mismatch instead of looking fine.
  • wctl --timeout <SECONDS>, or $WCTL_TIMEOUT, bounds how long any call waits for GNOME Shell to reply. The default is still 25 s, which is far too long for a command bound to a key.

You must act on

  • Upgrade the extension and wctl together. Move, Resize and MoveResize no longer return a success flag; they raise a named D-Bus error instead, so an older wctl cannot read the new reply. On Wayland the extension needs a logout to take effect — wctl version --json tells you which side of that you are on.
  • Exit codes now say why a command failed: 2 not found, 3 refused (the frame is pinned by fullscreen, maximize or tiling), 4 timed out, 5 extension unusable. 1 remains the catch-all for usage errors, so a script that only tests for a non-zero status is unaffected.

Fixed

  • A geometry command refused because the window was tiled now says so. It used to report "not found", because a bare success flag could not say which failure had happened and the guess could not see tiling at all.

Install

Extension:

gnome-extensions install window-control@carlo9890.github.io_v10.zip

Log out and back in (Wayland), or press Alt+F2, type r, Enter (X11), then:

gnome-extensions enable window-control@carlo9890.github.io

wctl:

curl -fsSL https://github.com/carlo9890/gnome-window-control/releases/download/v10/install-wctl.sh | bash