explaingit

eczarny/spectacle

13,636Objective-CAudience · generalComplexity · 1/5Setup · easy

TLDR

Spectacle is a free Mac app that snaps windows into preset positions, halves, thirds, corners, full screen, using keyboard shortcuts, so you can arrange your screen without touching the mouse.

Mindmap

mindmap
  root((spectacle))
    Window Layouts
      Halves
      Thirds
      Corners
      Fullscreen
    Shortcuts
      Customizable keys
      Move to monitor
      Undo and redo
    Limitations
      Not maintained
      Some apps unsupported
      Terminal sizing quirks
    Alternatives
      Rectangle recommended
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Snap any open window to the left half, right half, or a corner of your screen with a single keyboard shortcut.

USE CASE 2

Divide your screen into thirds and arrange multiple windows side by side without touching the mouse.

USE CASE 3

Move a window from one monitor to another instantly using a keyboard shortcut.

Tech stack

Objective-CmacOS

Getting it running

Difficulty · easy Time to first run · 5min

No longer actively maintained, Rectangle is the community-recommended active alternative for the same functionality.

Source code is publicly available, the specific license terms are not described in the repository explanation.

In plain English

Spectacle is a free Mac application that lets you move and resize windows on your screen using keyboard shortcuts, without ever touching your mouse. You press a key combination and the window snaps into place: left half of the screen, right half, a corner, the center, or fully maximized. That covers the most common layouts people set up by hand every day. Beyond simple halves, Spectacle can divide the screen into thirds. Press the same shortcut twice and a window shifts between one-third and two-thirds of its region. You can also step a window through the three horizontal columns one press at a time. If you have more than one monitor, there are shortcuts to send a window to the next or previous display without touching the mouse. If you move something by accident, Spectacle keeps a history of window positions so you can undo and redo individual moves. The keyboard shortcuts all have defaults out of the box, and every one of them can be changed or turned off entirely in the app preferences. A few limitations are worth knowing. Spectacle works through the Mac accessibility system, which most standard applications support, but some apps build their windows in non-standard ways and cannot be moved or resized by Spectacle at all. Terminal apps like iTerm 2 impose their own sizing rules so that text rows and columns stay whole, which means Spectacle has to try several times to fit those windows and the result can look slightly jumpy. The project is no longer actively maintained. The author kept it available as a download and left the source code open, but no new fixes or features are coming. The README points to Rectangle as a community-recommended open-source alternative that covers the same use case and is still under active development.

Copy-paste prompts

Prompt 1
I just installed Spectacle on my Mac. What are the most useful keyboard shortcuts for quickly splitting windows left and right or into thirds?
Prompt 2
I use iTerm 2 with Spectacle but window snapping looks jumpy. Why does this happen and is there a way to fix it?
Prompt 3
Spectacle is no longer maintained. Help me migrate my existing Spectacle shortcut layout to Rectangle, the recommended replacement.
Open on GitHub → Explain another repo

← eczarny on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.