List, move and tile windows from a script, a rules file or the keyboard. It works on Wayland, where wmctrl and xdotool reach only XWayland windows, and on X11. * Scripts: list every window with its ID, title, WM class, PID, workspace, monitor and geometry. Activate, move, resize, minimize, maximize, fullscreen, keep above, make sticky or close a window, move it to another workspace or monitor, or wait until a window opens. Use the wctl command-line client or any D-Bus client, such as gdbus. * Rules: a rule in ~/.config/gnome-window-control/rules.json places a matching window when it opens. The extension reads that file and never writes it. * Keyboard: Super+Ctrl and a numpad key tile the focused window on a 4x2 grid. You can rebind or unbind every shortcut in GSettings. No preferences window and no panel icon. When you disable the extension, the D-Bus interface, the rules and the shortcuts stop. IMPORTANT: the D-Bus interface has no access control. Any application in your session can read your window titles and control your windows, also while the screen is locked. Do not enable the extension if that is not acceptable to you. wctl is a separate download and is not installed with this extension. Get it and the full documentation from the project page.
Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.
EGO-C49-003 error
extensions targeting GNOME 49 must not call maximize or unmaximize with Meta.MaximizeFlags
This extension explicitly targets GNOME Shell 49 but still passes `Meta.MaximizeFlags` to `maximize()` or `unmaximize()`.
window-helpers.js:32
win.maximize(Meta.MaximizeFlags.BOTH)
window-helpers.js:40
win.unmaximize(Meta.MaximizeFlags.BOTH)
EGO-C49-004 error
extensions targeting GNOME 49 must not call Meta.Window.get_maximized
This extension explicitly targets GNOME Shell 49 but still calls removed `Meta.Window.get_maximized()`.
window-helpers.js:21
win.get_maximized()
| Version | Status |
|---|---|
| 21 (9) | Active |
| 20 (8) | Active |
| 19 (7) | Active |
| 18 (6) | Rejected |
| 17 (5) | Rejected |
| 16 (4) | Active |
| 15 (3) | Rejected |
| 14 (2) | Rejected |
| 11 (1) | Inactive |
Ok. I’m not fully convinced by that `session-modes` comment. Your extension may get disabled and re-enabled on lock. How does that going to work there? Seems the extension shouldn't be running on lock.
I use unlock-dialog because tools that use the D-Bus interface lost the service at every screen lock. Apps keep running while the screen is locked, so a window can still open then, and without the service it does not get its rules placement. A fix at unlock cannot keep the service running during the lock. I tried to make a disable and enable during a lock safe. disable() always removes everything. enable() checks Main.sessionMode.isLocked and does not add keybindings while the screen is locked. A sessionMode 'updated' handler removes the keybindings at lock and adds them again at unlock. The extension shows no UI and takes no input on the lock screen. Do you see any problems with this in general?