Skip to content
Edith

Docs

Command reference

Dock Peek

Dock Peek shows previews of an app's windows when you hover its Dock icon, like taskbar previews on Windows. Every window on every Space and display is listed, minimised windows are marked, and each preview can focus, close, minimise, snap or move its window.

Turn it on with the Dock previews toggle, or:

Terminal
ed extensions enable dockPeeked invoke dockPeek dockPeek.enable

Accessibility is required to watch the Dock and arrange windows. Screen Recording is optional: without it the panel shows titles instead of previews, and macOS asks you to reopen Edith after you allow it. Previews are captured only while the panel is open and never leave 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 dockPeek.windows or dockPeek.show.

Operation Input Result
dockPeek.status {} Whether it is on, watching the Dock, the permissions, why it is hidden (fullScreen or presenting), the open panel and the settings
dockPeek.apps {} Running apps with a Dock icon: name, bundleID, processIDs
dockPeek.windows {"app":"Notes"} The app's windows in panel order: visible windows front to back, then hidden, other Spaces and minimised
dockPeek.show {"app":"com.apple.Notes"} Opens the panel at the Dock edge as if you hovered the icon
dockPeek.hide {} Closes the panel
dockPeek.focus {"id":"w1234"} Brings the window forward, switching Space and restoring it if minimised
dockPeek.close {"id":"w1234"} Presses the window's close button
dockPeek.minimize {"id":"w1234"} Minimises the window, or restores a minimised one
dockPeek.move {"id":"w1234","display":2} Moves the window to the next display, or the display id given, keeping its relative position
dockPeek.snap {"id":"w1234","side":"left"} Fills the left or right half of the window's display
dockPeek.enable {} Turns Dock Peek on and asks for any missing permission
dockPeek.disable {} Turns Dock Peek off
dockPeek.permission {"permission":"screenRecording"} Asks macOS for accessibility or screenRecording

app matches an app's name, bundle identifier or process id exactly.

Terminal
ed invoke dockPeek dockPeek.windows --json '{"app":"Notes"}'ed invoke dockPeek dockPeek.snap --json '{"id":"w1234","side":"right"}'

Windows on another Space can be focused, but closing, minimising, snapping and moving need the window on the current Space, because macOS gives no access to windows on other Spaces until you switch to them. Focus the window first.

Settings

Key Default Meaning
dockPeekDelay 400 Milliseconds the pointer rests on an icon before previews appear, 0 to 2000
dockPeekSize medium small, medium or large previews
dockPeekLivePreviews true Keep previews live while the panel is open
dockPeekIncludeMinimized true Show minimised windows
dockPeekSpaces all all Spaces or the current one
dockPeekDisplays all all displays or the current one, whose Dock you hover
dockPeekHideInFullScreen true Stay hidden while a full-screen app is in front
dockPeekHideWhilePresenting true Stay hidden while Presenter privacy is on
Terminal
ed config set dockPeekDelay 250ed config set dockPeekSize large