简体中文
Documentation Menu▾
Core Guides

QR Code Scanner

Decode QR codes directly from an interactive selection, local image file, stdin pipe, or headless screen capture (new in v0.18.1).

Added in v0.18.1, Shotori decodes QR codes natively on-device using rqrr — zero external tools, zero network calls, and zero mobile-phone camera juggling when a QR code appears on your monitor.

Scanning from the Overlay (Ctrl+Q)

  1. Run shotori and frame a selection containing one or more QR codes (smart region click-snapping works great on QR cards).
  2. Click the QR button on the toolbar or press Ctrl+Q.
  3. Shotori decodes the QR payload immediately, copies the text/URL to your Wayland clipboard, and posts a desktop notification (configurable via notify.on_qr).

Don’t need the QR button visible on the toolbar? Remove "qr" from [toolbar] items in shotori settings capture — the Ctrl+Q shortcut continues to work whenever you need it!

Headless CLI Scanning (shotori qr)

shotori qr decodes QR codes from existing image files, piped stdin streams, or live screen captures without opening any UI:

# Scan an image file and print decoded payload to stdout
shotori qr ticket.png

# Capture the focused screen and copy decoded QR payload to clipboard
shotori qr --screen --clipboard

# Scan only the focused window and write to a file
shotori qr --window --path payload.txt

# Read PNG bytes from stdin (e.g. from clipboard or curl)
wl-paste --type image/png | shotori qr -

Output & Notification Options

  • Default CLI output: Prints the decoded string to stdout when neither --clipboard nor --path is passed, making it clean to embed inside shell command substitutions such as xdg-open "$(shotori qr --window --no-notify)".
  • Notifications: Controlled by [notify] on_qr = true in ~/.config/shotori/settings.toml, or suppressed per run with -n / --no-notify.
  • Shortcut customization: Rebind keys.qr = "ctrl-q" in shotori settings keys.