Skip to content

Snap Hover

How to install Snap Hover, use its layouts, change its settings and fix the usual problems.

Open source

Snap Hover is a GNOME Shell extension that puts snap layouts on a window's maximize button. Rest the pointer on the button and a small panel of layouts opens under it; click a slot and the window moves into that part of the screen. It is free and open source, made by Zorath LLC. For screenshots and a short tour, see the Snap Hover page.

Requirements

  • GNOME Shell 46 to 51. Those are the versions the extension declares in its metadata.json, and GNOME only loads an extension on a version it declares. Ubuntu 24.04 LTS through Ubuntu 26.10 ship versions in that range. To see yours, run gnome-shell --version.
  • A maximize button in the title bar. Ubuntu shows one by default. On a system that hides it, turn it on in GNOME Tweaks, under Windows > Titlebar Buttons > Maximize.

The button matters because the panel opens from it. Snap Hover reads the order of the title bar buttons from GNOME's settings to know where the maximize button is; see The maximize button.

Install

Snap Hover installs from its source repository today. A listing on extensions.gnome.org is planned. Get the source and run the install script from the repository folder:

git clone https://github.com/zorl-engine/snap-hover.git
cd snap-hover
tools/install-local.sh

The script builds the extension's zip file into the dist folder with gnome-extensions pack, then installs that zip for your user with gnome-extensions install --force, which replaces any copy already installed. The extension ends up in ~/.local/share/gnome-shell/extensions/[email protected].

Then sign out and sign back in. A running GNOME Shell on Wayland does not pick up a newly installed extension, so it is loaded at the next sign-in. Once you are back, enable it:

gnome-extensions enable [email protected]

To check that it is on, ask GNOME for its details:

gnome-extensions info [email protected]

The answer should include Enabled: Yes and State: ACTIVE:

[email protected]
  Name: Snap Hover
  ...
  Version: 1.1
  Enabled: Yes
  State: ACTIVE

Using it

Three steps

  1. Hover. Rest the pointer on a window's maximize button. After the hover time (see Settings), the panel of layouts opens under the button, centred on the pointer and kept inside the screen.
  2. Pick a slot. Each layout in the panel is drawn as a set of slots. Click a slot and the window moves into that part of the screen. If the window is maximized, it is restored first.
  3. Fill the rest. Snap Hover then shows the layout's other slots and offers your other open windows, as small previews, in the next empty slot. Click one to place it there; the next empty slot is offered after it, until the layout is full or no windows are left. A window you pick is restored first if it is maximized, minimized or full screen.

Slots fill the part of the screen that windows may use on that monitor, with the gap from the settings between windows and along the edges.

What closes the panel

  • Moving the pointer away from the button and the panel. The panel closes a moment later.
  • The window under the panel moving, changing size or closing.
  • Starting to drag or resize a window, switching workspace, or opening the overview.

After the panel closes, the button does not open it again until the pointer has left the button once.

What stops the other windows step

  • Pressing Escape.
  • Clicking anywhere other than a preview.
  • One of the offered windows closing.
  • A minute passing without a pick. The step holds the keyboard and pointer while it is open, so it ends by itself rather than leave the desktop held.

When the step ends, the last window you placed is brought to the front.

Which windows are offered

The windows offered are the other ordinary windows on the same monitor and the same workspace as the window you placed. Any window that keeps out of the taskbar is left out, and at most twelve are offered at once. If there are none, the step does not start.

Which windows get a panel

Only ordinary windows that can be maximized. Menus, dialogs, full screen windows and windows without a maximize function get no panel. Nothing opens while a mouse button is held down or while the overview is showing.

Layouts

The panel shows eight built-in layouts, four to a row. The slots are listed in the order the other windows step fills them. The identifier is the name the layouts setting stores.

LayoutSlotsIdentifier
HalvesLeft half, right half.halves
ThirdsThree equal columns.thirds
Two thirds and one thirdLeft two thirds, right third.wide-left
One third and two thirdsLeft third, right two thirds.wide-right
Wide centreA quarter on the left, a half in the centre, a quarter on the right.centre-wide
Half and two quartersLeft half, then the right half split into a top and a bottom quarter.main-stack
QuartersTop left, top right, bottom left, bottom right.quarters
Four columnsFour equal columns.four-columns

Which layouts appear is a setting. The preferences keep them in this order, and at least one stays on: they will not let you turn off the last one.

Settings

Open the preferences from the Extensions app, or run:

gnome-extensions prefs [email protected]

The preferences window has three groups: Behaviour, Layouts and Maximize button.

SettingWhat it doesDefault
Hover timeHow long the pointer must rest on the maximize button before the panel opens. From 100 to 2000 milliseconds, in steps of 50.350 milliseconds
Gap between windowsThe space left between placed windows and at the screen edge. From 0 to 64 pixels.6 pixels
Offer other windowsAfter a window is placed, offer your other open windows for the remaining slots. Turn it off to stop after the first window.On
LayoutsOne switch per layout: which layouts the panel shows.All eight
Distance from the window edgePixels from the window edge to the centre of the maximize button, from 0 to 400. 0 works it out from the title bar button order.0 (worked out)
Area widthWidth of the area treated as the maximize button. From 16 to 200 pixels.38 pixels
Area heightHeight of that area, measured from the top of the window. From 16 to 120 pixels.40 pixels
Write decisions to the logLog what the pointer logic decides. Useful when tuning the button position.Off

The first three are in Behaviour, the layout switches in Layouts, and the last four in Maximize button. The settings live under org.gnome.shell.extensions.snap-hover.

The maximize button

Why it has to look for the button

Applications draw their own title bars, and GNOME Shell gives extensions no way to ask where a button is. So Snap Hover watches a small area near the top corner of the window under the pointer and treats it as the maximize button.

How it places the area

It reads the title bar button order from GNOME's settings (the button-layout key of org.gnome.desktop.wm.preferences). That tells it which corner the maximize button is in and how many buttons sit between it and the edge, and from that how far in to look. The spacing it uses was measured on several common kinds of application window, and the area is wide enough to cover the maximize button in each of them. You can see the order with:

gsettings get org.gnome.desktop.wm.preferences button-layout

If the order has no maximize in it and no distance is set, Snap Hover has nowhere to look and no panel opens.

Adjusting it

If the panel does not open on the maximize button of some application, or opens on the wrong button, set "Distance from the window edge" in the Maximize button group of the preferences: the number of pixels from the window edge to the centre of the button. "Area width" and "Area height" change the size of the area. Setting the distance back to 0 returns to working it out.

One application at a time

Values for a single application go in the app-overrides key, a JSON object keyed by window class. Each entry may hold offset (the distance), width and height (the area), and side (left or right, the corner). The key has no control in the preferences, so set it with gsettings:

gsettings --schemadir ~/.local/share/gnome-shell/extensions/[email protected]/schemas \
  set org.gnome.shell.extensions.snap-hover app-overrides \
  '{"firefox": {"offset": 52, "width": 40, "height": 36}}'

The --schemadir part is needed because the extension's settings schema is installed with the extension, not with the system's own schemas.

The log

Turning on "Write decisions to the log" shows what the pointer logic sees. Follow it with:

journalctl --user -f -o cat | grep snap-hover

When the pointer reaches the button area of a window, the log names the window and, in brackets, its window class, which is the name to use in app-overrides.

Troubleshooting

The panel does not open at all

  • Check the extension is on with gnome-extensions info [email protected]. If it was just installed, sign out and back in first, then run the enable command from Install.
  • Check the title bar has a maximize button: the button order should include maximize (see The maximize button). Turn it on in GNOME Tweaks, or set a distance in the preferences.
  • Check the window is one that gets a panel: dialogs, menus, full screen windows and windows that cannot be maximized get none.

The panel does not open on one application

That application draws its buttons somewhere the area does not cover. Turn on the log and move the pointer slowly along the top of that window, near its buttons, until a line appears: the log only writes when the pointer is inside the area, so resting on the button itself may show nothing. The name in brackets is the window class. Use it as the key in app-overrides and set offset to the distance of the maximize button from the window edge, as in The maximize button.

The panel opens on the wrong button

Adjust "Distance from the window edge" in the preferences until the area sits on the maximize button, or narrow it with "Area width". For one application only, use app-overrides.

The panel opens too soon or too late

Change "Hover time" in the preferences.

Other windows are not offered

  • Check that "Offer other windows" is on in the preferences.
  • Only windows on the same monitor and workspace as the placed window are offered. Move the windows you want there first.
  • A window that keeps out of the taskbar is never offered.

The other windows step closed by itself

It ends after a minute without a pick, and when one of the offered windows closes. Hover the button again to start over.

Updating and removing

Updating

Pull the repository and run the install script again; it replaces the installed copy:

cd snap-hover
git pull
tools/install-local.sh

Then sign out and back in, so GNOME Shell loads the new version. If gnome-extensions info [email protected] does not show it as enabled, run the enable command again.

Removing

gnome-extensions disable [email protected]
gnome-extensions uninstall [email protected]

Uninstalling removes the extension's files. Its settings are kept under /org/gnome/shell/extensions/snap-hover/; to clear them too, run:

dconf reset -f /org/gnome/shell/extensions/snap-hover/

Source and licence

Snap Hover is licensed GPL-2.0-or-later. Copyright (C) 2026 Zorath LLC. The source is on GitHub at zorl-engine/snap-hover, and bug reports and pull requests go to its issue tracker. Snap Hover is not affiliated with the GNOME Project.

The checks run from the repository folder with:

tests/run.sh

They start a separate, headless GNOME Shell with its own D-Bus session and its own folders, and drive it with a simulated pointer and keyboard. They do not touch the desktop you are signed in to.