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)
- Run
shotoriand frame a selection containing one or more QR codes (smart region click-snapping works great on QR cards). - Click the QR button on the toolbar or press Ctrl+Q.
- 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] itemsinshotori 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
stdoutwhen neither--clipboardnor--pathis passed, making it clean to embed inside shell command substitutions such asxdg-open "$(shotori qr --window --no-notify)". - Notifications: Controlled by
[notify] on_qr = truein~/.config/shotori/settings.toml, or suppressed per run with-n/--no-notify. - Shortcut customization: Rebind
keys.qr = "ctrl-q"inshotori settings keys.