A window tiling extension for Linux Cinnamon

Snap windows to an eighths grid. Then drag the grid.

Screen Snapper replaces Cinnamon's edge tiling with a grid of 4 columns by 2 rows (2 by 4 on a portrait screen). Hold Ctrl while you drag a window and it lands on the grid. Ctrl-drag the edge two windows share and the grid line moves, taking both windows with it.

Free and open source (MIT) · Cinnamon 6.0 to 6.6 on X11

Snappy, the Screen Snapper mascot: a grinning snapping turtle with an orange patch on its shell, pumping a fist
Ctrl + drag a window

Drop it on the grid

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.

Ctrl + drag a shared edge

Resize the grid itself

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.

Super + Ctrl + G resets

A grid for every workspace

Each monitor and each workspace keeps its own layout, saved across logins. Landscape screens get 4 × 2, portrait screens 2 × 4.

Interactive demo

Try it now: move a grid line

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.

Screen
Workspace
Keys hold, or tap to latch
Ctrl moves a grid line Ctrl can't move (screen edge) Grid lines (where they are now) Window off the grid
What happened
Nothing yet
Click a window to bring it to the front, drag its title bar to move it, or drag an edge grip. Or pick something from the list below.
Windows
On the desktop, Super + Ctrl + G does this for the monitor under the pointer.

Things to try

  • Ctrl + drag a title barMove a window like on the desktop: an orange preview shows where it snaps when you let go.
  • Ctrl + drag an orange gripThe grid line moves, and every window on it follows.
  • Ctrl + Shift + dragThe line snaps to the even eighths.
  • Drag with no keysOnly that window resizes, and it leaves the grid.
  • Ctrl + drag Editor's left edge rightIt leaves the screen edge and takes over the hidden line once it is 200 px in. Grey grips have no line inside their window, so they stay put.
  • Ctrl + drag Editor's right edge far leftIt glides past the hidden line, and Editor ends up one column wide.
  • Drag past the line, then press CtrlThe edge snaps to the next line or screen edge it reaches, and the window rejoins the grid. Try Browser's right edge after Terminal's top edge has moved down.

Drop zone map

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.

All 30 windows the grid allows

Pointer is in
Rule
Window snaps to
Size
Grid units
Every band that gives this window

    Dragging a window edge

    KeysEdge on a grid lineEdge on the screen edge
    noneResizes only that window, as usual. The window leaves the grid and stops following line moves.Resizes only that window and it leaves the grid.
    CtrlMoves 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 windowThe 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 lateThe 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+ShiftSame, 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.

    Snap rules

    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 dropWindow you getCovers

    How it behaves on the desktop

    Install

    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.