# Dock Dodger for Raycast

URL: https://www.raycast.com/TimBroddin/dock-dodger

> Move windows that hide behind the Dock back into view.

- Install: raycast://extensions/TimBroddin/dock-dodger
- Author: [Tim Broddin](https://www.raycast.com/TimBroddin)
- Installs: 0
- Platforms: macOS
- Categories: System, Productivity
- Updated: 2026-11-25
- Source: https://github.com/raycast/extensions/tree/dd437691b3ed00e2d8f48d96e4b16b5eb43859f0/extensions/dock-dodger/

## Commands

- **Lift Windows Above Dock**: Move every window that sits behind the Dock up into the visible area.
- **Keep Windows Above Dock**: Check every 10 seconds in the background and lift windows that slipped behind the Dock. Run once to activate, use Deactivate Command to stop.

## README

### Dock Dodger

Raycast extension that moves windows out from behind the Dock.

#### Commands

- **Lift Windows Above Dock**: one-shot. Every window that overlaps the Dock icons gets pushed up (or sideways for a left/right Dock) into the visible area.
- **Keep Windows Above Dock**: same thing every 10 seconds in the background. Run it once to activate, use "Deactivate Command" in Raycast to stop.

#### Permissions

The first run asks for two permissions:

- Privacy & Security > Accessibility: Raycast
- Privacy & Security > Automation: Raycast > System Events

#### Preferences

- **Gap Above Dock**: pixels between window and Dock (default 8)
- **Fit**: shrink windows that are too tall to fit above the Dock (default on)
- **Ignored Apps**: comma-separated app names to leave alone

#### How it works

1. JXA reads screen geometry from `NSScreen.visibleFrame`, the Dock's icon strip via System Events and all on-screen windows via `CGWindowListCopyWindowInfo` (one fast call; asking System Events per app took 30s+).
2. `src/lib/geometry.ts` decides what moves (pure TypeScript).
3. A second JXA call applies the moves, matching each window on its frame so nothing gets moved if you dragged it in between.

Skips minimized and fullscreen windows (a window that covers its whole screen counts as fullscreen). Does nothing when the Dock auto-hides.

#### Author

Tim Broddin
