简体中文
Documentation Menu▾
Reference

CLI Subcommands

Complete command-line reference for shotori gui, full, ocr, qr, pin, outputs, tray, settings, global flags, and geometry syntax.

Running shotori with no subcommand is equivalent to shotori gui.

shotori [GLOBAL_OPTIONS] [COMMAND]

Global Options

Flag Description
--theme <NAME|FILE> Apply a built-in palette (e.g. shotori-dark, catppuccin-mocha, tokyo-night) or path to a .toml theme file
--print-theme Print all resolved theme color tokens to stdout and exit
--no-config Ignore ~/.config/shotori/settings.toml and theme.toml for this run
-V, --version Print installed Shotori version
-h, --help Print command help

shotori gui — Interactive Overlay

Freezes connected Wayland screens and opens the selection & annotation overlay.

Flag Description
-f, --full Pre-select all connected screens together
-s, --screen Pre-select the currently focused screen
-o, --output <NAME> Pre-select a specific Wayland output (see shotori outputs)
-r, --region <GEOM> Pre-select a logical rectangle (x,y,w,h, x,y wxh, or wxh+x+y)
-w, --window Pre-select the currently focused window via compositor IPC
-d, --delay <SECONDS> Wait <SECONDS> (supports fractional seconds) before freezing
-t, --tool <TOOL> Pre-arm a tool (select, rectangle/rect, ellipse, line, polyline, arrow, number, text, pencil, highlighter, mosaic, blur, magnifier, spotlight, eraser)

shotori full — Headless Capture

Captures immediately without displaying an interactive overlay. Defaults to all screens into the Wayland clipboard when no target/destination flags are specified.

Flag Description
-f, --full Capture all connected screens (default target)
-s, --screen Capture only the focused screen
-o, --output <NAME> Capture only the named Wayland output
-r, --region <GEOM> Capture a desktop logical rectangle
-w, --window Capture only the focused window via compositor IPC
-c, --clipboard Copy PNG to Wayland clipboard (default when --path and --stdout are omitted)
-p, --path <FILE|DIR> Write PNG to FILE (- for stdout), or auto-name inside DIR
--stdout Write encoded PNG bytes directly to standard output
-d, --delay <SECONDS> Wait <SECONDS> before capturing
-n, --no-notify Suppress desktop notifications

shotori ocr [IMAGE] — Headless On-Device OCR

Recognizes text from IMAGE (- for stdin), or captures live from the screen when IMAGE is omitted.

Flag Description
[IMAGE] Optional image file path or - for standard input
-f / -s / -o / -r / -w Screen target when [IMAGE] is omitted
-d, --delay <SECONDS> Delay before live screen capture
-c, --clipboard Copy recognized text to clipboard
-p, --path <FILE> Write recognized text to FILE (- for stdout)
--stdout Print recognized text to stdout (default when --clipboard and --path are omitted)
--download Automatically download missing bundled OCR models on first run
-n, --no-notify Suppress desktop notifications

shotori qr [IMAGE] — Headless QR Scanner

Scans and decodes QR codes from IMAGE (- for stdin) or a live screen target. Accepts the same target (-f, -s, -o, -r, -w, -d) and output (-c/--clipboard, -p/--path, --stdout, -n/--no-notify) flags as shotori ocr.

shotori pin [IMAGE] — Desktop Floating Pin

Floats an image file (- for stdin) or a live screen capture (-f, -s, -o, -r, -w) as an always-on-top desktop window.

Flag Description
[IMAGE] Image file to pin (- for stdin)
-f / -s / -r / -w Live capture target when [IMAGE] is omitted
-o, --output <NAME> Captures <NAME> when [IMAGE] is omitted, or centers [IMAGE] on <NAME>
--at <X,Y> Place the pin’s top-left corner at global logical coordinates X,Y (supports negative coords)
-d, --delay <SECONDS> Delay before live screen capture

shotori outputs, tray & settings

  • shotori outputs [--json] — Lists connected Wayland outputs (wl_output + zxdg_output_v1), logical bounds, physical modes, and scale factors in human-readable or --json format.
  • shotori tray — Runs resident in the background with a StatusNotifierItem tray icon and Unix socket owner for floating pins.
  • shotori settings [PAGE] — Opens the GUI settings window, optionally jumping straight to appearance, capture (alias toolbar), annotation, export (alias save), desktop (aliases notifications, pin), keys (alias shortcuts), ocr, advanced (alias general), or about.

Region Geometry Formats (<GEOM>)

All --region flags accept three standard coordinate syntaxes (minimum 2×2 logical pixels, negative multi-monitor coordinates supported):

shotori full -r "100,200,800,600"   # Shotori CSV: x,y,w,h
shotori full -r "100,200 800x600"   # slurp format: x,y wxh
shotori full -r "800x600+100+200"   # X11 geometry: wxh+x+y (or wxh-720-100)