# Pin Window

> Pin Window keeps a live copy of any window on top of everything, which macOS does not do on its own.

- Canonical URL: https://getedith.pro/docs/cli/pin-window
- Updated: 2026-12-02

Pin Window keeps a live copy of any window on top of everything, which macOS
does not do on its own. A pin mirrors the whole window at the same place and
size, or, with Crop and lock, just the part of a window you drag over, such as
a video, a chart or a log pane. Several pins can be open at once, and each can
be moved, resized, faded, made click-through, sent back behind the other pins
or closed.

Press Control-Option-P to pin the front window, and again with that window in
front to unpin it. Press Control-Option-Shift-P and drag over part of a window
to crop and lock it; click a window instead of dragging to pin all of it, and
press Escape or the shortcut again to cancel.

While the pinned window itself is in front, its copy steps aside so you can
use the real window. Clicking a copy brings the real window forward. Pins
pause capture while they are covered, hidden, on a display that is asleep, or
while their window is minimised or on another Space, and all of them close
when Pin Window is turned off, the Mac sleeps or Edith quits.

Screen Recording is required to mirror windows, and macOS asks you to reopen
Edith after you allow it. Accessibility lets a click on a pin raise exactly
its window. Nothing is recorded or saved, and nothing leaves the Mac.

## Operations

Every operation takes a JSON object and prints JSON. Errors print a readable
message on stderr and exit non-zero. Window ids look like `w1234` and come
from `pinWindow.windows`; pin ids look like `p1` and come from
`pinWindow.pins`. Coordinates are in points from the top-left corner of the
main display, and crop rectangles are in points from the top-left corner of
the window.

| Operation | Input | Result |
| --- | --- | --- |
| `pinWindow.status` | `{}` | Permissions, whether Crop and lock is selecting, whether displays are asleep or Presenter privacy is on, the open pins front to back, the settings and the last error |
| `pinWindow.windows` | `{}` | Windows that can be pinned, front to back: `id`, `app`, `bundleID`, `processID`, `title`, `onScreen` and the frame |
| `pinWindow.pins` | `{}` | Open pins front to back |
| `pinWindow.pin` | `{"window":"w1234"}` | Pins that window, or the front window when `window` is left out. `created` is false when it was already pinned |
| `pinWindow.toggle` | `{}` | Does what the shortcut does: pins the front window, or unpins it when it is already pinned. `action` is `pinned` or `unpinned` |
| `pinWindow.crop` | `{"window":"w1234","x":0,"y":40,"width":640,"height":360}` | Floats that region of the window over the same place on screen |
| `pinWindow.select` | `{}` | Starts Crop and lock so you can drag over a window, or cancels it when it is already running |
| `pinWindow.update` | `{"pin":"p1","opacity":60,"clickThrough":true,"x":40,"y":60,"width":480}` | Changes one pin's opacity (20 to 100), click-through, position or size. A size keeps the content's shape, so `width` or `height` alone is enough |
| `pinWindow.sendBack` | `{"pin":"p1"}` | Puts the pin behind every other pin |
| `pinWindow.focus` | `{"pin":"p1"}` | Brings the pinned window forward, as a click on the pin does |
| `pinWindow.close` | `{"pin":"p1"}` | Closes the pin. The window itself is not touched |
| `pinWindow.closeAll` | `{}` | Closes every pin |
| `pinWindow.permission` | `{"permission":"screenRecording"}` | Asks macOS for `screenRecording` or `accessibility` |

Each pin reports its `kind` (`window` or `crop`), its `window` id, `frame`,
`crop`, `opacity`, `clickThrough`, whether it `follows` its window, and its
`state`: `live` with `framesPerSecond`, `paused` with `pausedBecause`
(`occluded`, `sourceOffscreen` or `sleeping`), or `hidden` with
`hiddenBecause` (`sourceInFront`, `presenting` or `coversProtectedWindow`, while
the pin would cover Edith or System Settings).

```bash
ed invoke pinWindow pinWindow.windows
ed invoke pinWindow pinWindow.pin --json '{"window":"w1234"}'
ed invoke pinWindow pinWindow.crop --json '{"window":"w1234","x":0,"y":40,"width":640,"height":360}'
ed invoke pinWindow pinWindow.update --json '{"pin":"p1","opacity":50,"clickThrough":true}'
```

Whole-window pins follow their window when it moves until you move or resize
the pin yourself. Cropped pins stay where you put them and keep showing the
same part of their window. Closing the window closes its pins.

## Settings

| Key | Default | Meaning |
| --- | --- | --- |
| `pinWindowOpacity` | `100` | Opacity of every pin, 20 to 100 percent |
| `pinWindowClickThrough` | `false` | Let clicks pass through pins to the windows below |
| `pinWindowShowControls` | `true` | Show close, send back and click-through buttons when the pointer rests on a pin |
| `pinWindowFrameRate` | `standard` | `low` (15), `standard` (30) or `smooth` (60) frames a second, capped at 15 in Low Power Mode |
| `pinWindowHideWhilePresenting` | `true` | Hide pins while Presenter privacy is on |

```bash
ed config set pinWindowOpacity 70
ed config set pinWindowFrameRate smooth
```

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
