Bands 50 px either side of each grid line and screen edge decide which cells the window fills: half, a quarter, three quarters, a strip, or the whole screen. 30 shapes in all. The middle of a cell never snaps.
The line under that edge moves across the whole monitor, and every window on it follows live. Add Shift to snap the line back to even eighths. Without Ctrl, an edge resizes just that window.
Each monitor and each workspace keeps its own layout, saved across logins. Landscape screens get 4 × 2, portrait screens 2 × 4.
A working model of the extension on a real-size screen. Drag any grip on a window edge, holding the keys as you would on the desktop.
Where you can drop a window with Ctrl held, using this monitor's and workspace's grid as it is now. Move a line above and the bands follow. Hover or tap a band to see the window it gives.
| Keys | Edge on a grid line | Edge on the screen edge |
|---|---|---|
| none | Resizes only that window, as usual. The window leaves the grid and stops following line moves. | Resizes only that window and it leaves the grid. |
| Ctrl | Moves the grid line across the whole monitor. Every grid window with an edge on it follows, live. The line stops 200 px from its neighbours and the screen edges. | If a grid line runs through the window, the edge takes it over: it follows the pointer, and once 200 px in, that line moves with it, along with any other window edges on it. Let go sooner and the edge returns. If the window is one cell wide there, nothing moves. |
| Ctrl, on an off-grid window | The edge snaps to any grid line or screen edge within 50 px. Once all four edges are on the grid, the window joins it and follows line moves again. | |
| Ctrl, pressed late | The edge snaps to the grid line or screen edge whose 50 px band it is in, and the window rejoins the grid covering those cells. No line moves. Release Ctrl and it is a plain resize again. | |
| Ctrl+Shift | Same, but the line jumps between the even-eighths positions, so it is easy to put back exactly. | Same, with the line snapping to even eighths. |
A line can't get closer than 200 px to the next line. When the edge you're dragging reaches that point, the drag carries on smoothly with the next line instead of stopping: that line takes over right where your edge is, every edge that was on your line moves onto it, and your original line goes back to where it was when the drag started. The edge never jumps, so you can size the window precisely past lines hidden inside a window. It works the same dragging back. If carrying on would squeeze a window to nothing, the edge stops at 200 px instead.
The keys are checked the whole time you drag, not just when you start. Press Ctrl partway through and the drag switches to moving the line; the window goes back on the grid if it had started to resize on its own. Release Ctrl and the line returns to where it was before the drag, and the drag carries on as a plain resize of that one window.
The pointer position, not the window's edges, picks the band. Along each axis the pointer is either on an edge band, on a line band, or in the open middle of a cell. In the open middle on both axes, nothing snaps. Otherwise the first matching rule applies.
| Where you drop | Window you get | Covers |
|---|
You need Cinnamon 6.0 to 6.6 on X11 (Linux Mint 21 and 22 qualify), plus git and python3. Clone the repository and run the install script; it links the extension into Cinnamon and turns it on.
git clone https://github.com/spuddermax/screen-snapper.git cd screen-snapper ./install.sh
Keep the folder where you cloned it, and run ./install.sh again after git pull to update. To turn it off, use System Settings → Extensions; Cinnamon's own edge tiling comes back. Full details are in the README.