简体中文
Documentation Menu▾
Core Guides

Floating Pins

Keep cropped screenshots, diagrams, and code snippets floating above your workspaces across monitors with smooth wheel zoom.

Instead of saving temporary reference files or juggling split windows, Pin (Ctrl+P) turns any selection — annotated or raw — into a borderless, always-on-top floating window that stays on your desktop after the screenshot overlay closes.

Creating a Pin

You can create floating pins from three places:

  1. Interactive Overlay: Frame a region (add annotations if desired) and click the Pin button or press Ctrl+P.
  2. Long-Screenshot Panel: Finish a scrolling capture directly into a floating pin with Ctrl+P or the panel’s Pin action.
  3. Command Line (shotori pin): Float an existing image file, piped stdin bytes, or a headless screen target directly:
# Float an image file on a named monitor
shotori pin architecture.png --output DP-2

# Float at exact global logical coordinates
shotori pin palette.png --at 80,120

# Capture and pin the currently focused window immediately
shotori pin --window

# Pipe PNG bytes from another tool into a desktop pin
cat chart.png | shotori pin -

When shotori tray or another pin process is already running, new shotori pin invocations hand off their image over a local Unix socket to the resident owner process automatically.

Interacting with Pins

  • Move across monitors: Drag anywhere inside a pin to reposition it, including across mixed-HiDPI output boundaries. Shotori tracks each monitor’s physical capture scale so pins stay razor-sharp.
  • Smooth Wheel Zoom: Scroll the mouse wheel over a pin to scale it up or down (pin.zoom_step, default 12% per notch). Require a modifier key (ctrl, alt, or shift) via pin.zoom_modifier if you prefer accidental-scroll protection.
  • Dismiss: Close an active pin with Escape or its context controls when you’re done referencing it.

Pin Preferences ([pin])

Customize floating pin appearance and behavior in shotori settings desktop or ~/.config/shotori/settings.toml:

[pin]
zoom_modifier = "none" # "none" | "ctrl" | "alt" | "shift"
zoom_step = 12         # 5..=50 (% per wheel notch; 12 = 1.12x)
show_border = true     # Subtle accent-tinted frame (theme.pin_border)
shadow = true          # Drop shadow for separation over bright/dark windows
snap_to_edge = false   # Snap pin edges near screen boundaries