GridSnap: an open source Divvy-style window snapper

How GridSnap handles grids, presets and multiple displays, why rebuilding it breaks the Accessibility grant, and which windows it cannot move.

Binary Buddies · 5 min read · 9 views

Tiling window managers solve window layout by taking over the whole desktop. A lot of people want something smaller: leave windows floating, but put one in exactly the right rectangle with a single gesture. The Divvy model does this with a grid. You press a shortcut, a grid appears, you drag across the cells you want, and the window takes that region.

GridSnap is an MIT-licensed, open source implementation of that model for macOS. Its README positions it as an alternative to Divvy. This article covers what the repository documents: how it installs, what the grid does, how presets and multiple displays behave, how to build it, and where it stops working.

The detail that matters most to anyone who intends to modify it is the Accessibility permission. It is tied to the app's code signature, and an ad-hoc build loses the grant on every rebuild. That is covered below.

Install and the Accessibility grant

The README gives two binary routes. With Homebrew:

brew install --cask konieczkow/tap/gridsnap

Or download GridSnap-x.y.z.zip from the latest release, unzip it and drag GridSnap into Applications. Requirements are macOS 14 or later, on Apple Silicon or Intel. It has been tested on macOS 26.

On first launch it asks for Accessibility, which it needs to move other apps' windows. Enable it under System Settings › Privacy & Security › Accessibility. The menu bar icon also has a Grant Accessibility… item that opens that pane. GridSnap detects the grant on its own, so you do not need to relaunch it. Without the grant it cannot reposition anything, so a snap that does nothing right after install is almost certainly this.

What a snap looks like

You press the shortcut and a grid overlay appears. You drag across the cells you want, and the window follows the drag as a live preview. If you cancel, the window jumps back to where it was. The overlay opens with the window's current cells already outlined, so pressing Return alone aligns the window to the grid.

Wider gutters in the grid mark halves, thirds and quarters. That is a small but practical touch: on a grid with many columns it is easy to miscount cells, and the gutters give you landmarks for the common fractions.

There is also an undo for the last snap. On macOS 26 the overlay uses the glass material. On older supported versions it falls back to a frosted panel, so the behaviour is the same and only the look differs.

Which window, and which display

You can snap the focused window or the window under the cursor. Which one it uses is a setting, the 'target rule' in Settings.

With multiple displays, the grid appears on the display under the cursor, and the window snaps to that display. Moving the mouse to another monitor before pressing the shortcut therefore moves the window there as part of the snap. Presets behave differently: they snap to the display the window is already on. Keep that distinction in mind, because the same region on a different monitor needs the grid, not a preset.

Presets as one-keystroke snaps

Any region you drag out can be saved as a preset, and each preset gets its own global shortcut. A Full screen preset on ⌃⌥F is built in. After that, a layout you use daily no longer needs the overlay at all.

The presets table lives in Settings, reached from the menu bar icon. Names and shortcuts are editable in place, and the − button removes the selected preset. Because shortcuts are global, a preset shortcut that collides with another app's binding is a setup problem you resolve in whichever app is wrong. The README does not describe how conflicts are reported, so check new bindings yourself.

Configuration

Settings holds a short list of things:

  • Both shortcuts
  • Columns and rows of the grid
  • The gap, in points, between snapped windows
  • The target rule (focused window or window under the cursor)
  • The presets table

The gap setting is the one that differs from a bare 'move to half' tool. Adjacent windows keep a consistent gutter without manual nudging. The README does not document default values for columns, rows or gap, so look at the app or at Defaults.swift, where stored settings live, rather than assuming a number.

The app runs from the menu bar, can launch at login, and has no Dock icon.

Building from source

There is no Xcode project. The build needs the Xcode Command Line Tools with the macOS 26 SDK, and swiftc compiles the files directly:

git clone https://github.com/konieczkow/gridsnap.git
cd gridsnap
./build.sh install
open /Applications/GridSnap.app

./build.sh alone produces build/GridSnap.app. With install it also copies the app to /Applications. The icon source is Resources/icon.png; if you change it, regenerate AppIcon.icns with iconutil.

The source is split by responsibility into a small number of files under Sources/:

  • main.swift: startup
  • AX.swift: window plumbing
  • Grid.swift: the overlay
  • Presets.swift and Hotkeys.swift
  • ShortcutButton.swift: the shortcut recorder
  • SettingsWindow.swift, Menu.swift and Defaults.swift

If you want to change how windows get moved, AX.swift is where to start.

The rebuild problem: signatures and permissions

macOS ties the Accessibility grant to the app's code signature. The default ad-hoc signature changes with every build, so each rebuild means granting permission again. In a tight edit-build-test loop this gets old quickly.

The README's fix is to create a self-signed certificate once. In Keychain Access, use Certificate Assistant › Create a Certificate, set the type to Code Signing, and name it GridSnap Dev. The build script then picks it up automatically. Any other signing identity works through an environment variable:

CODESIGN_IDENTITY='your identity name' ./build.sh

With a stable identity, the grant survives rebuilds. Without one, you will find that snapping has silently stopped working after a build.

Why open source matters for this kind of tool

An app with Accessibility access can control other apps' windows. That is a lot of trust to extend to a binary you cannot inspect. The README states that GridSnap has no network access, no analytics and no accounts. Because the code is on GitHub under the MIT licence, and small enough to be split into the handful of files above, you can read it and build it yourself rather than rely on the statement alone. That claim is the author's, but the code is available to check it against.

Where it does not fit

The README lists two known limitations. Full-screen windows ignore snapping. Some apps also enforce a minimum window size and will not shrink to a small cell. In that case the window stays on screen and overlaps the neighbouring cells, so a dense grid layout can look wrong depending on which apps are involved.

Other constraints follow from the requirements. It needs macOS 14 or later, and building needs the macOS 26 SDK, so older systems can run only a prebuilt release. The glass look is only on macOS 26. It is a menu bar utility with a grid-and-preset model, and the README does not describe automatic tiling or layouts that rearrange themselves as windows open. If you want that, this is the wrong tool. If you want precise manual placement with a few saved layouts, it is a reasonable fit.

  • #Divvy alternative
  • #GridSnap
  • #Open Source
  • #Swift
  • #macOS window manager
  • #window snapping

Comments

Add a comment
Sign in with Google to join the conversation