Skip to content

Show a QR code for the clipboard from Trigger > Share - #8512

Closed
chessing234 wants to merge 1 commit into
omacom:quattrofrom
chessing234:feat/share-clipboard-qr
Closed

chessing234 wants to merge 1 commit into
omacom:quattrofrom
chessing234:feat/share-clipboard-qr

Conversation

@chessing234

Copy link
Copy Markdown
Contributor

Fixes #8509.

Trigger > Share can send the clipboard with LocalSend. There is no scan-with-phone path for a URL or snippet already copied.

This adds omarchy-share-qr on that menu. It encodes the clipboard (or an argument) with the same qrencode --type ANSIUTF8 the Wi-Fi share card uses, opens a floating terminal when stdout is not a tty, and refuses empty or oversized payloads.

Verification

test/shell.d/share-qr-test.sh:

ok - share-qr refuses an empty clipboard
ok - share-qr encodes an explicit argument
ok - share-qr encodes the clipboard
ok - share-qr opens a floating terminal when stdout is not a tty
ok - share-qr refuses a payload that cannot fit in a QR
ok - share-qr is on the Share menu

A stub qrencode records stdin. --display is the in-terminal path the floating helper re-invokes.

Scan-with-phone for a URL or snippet already on the clipboard, using the
same qrencode the Wi-Fi share card uses. Opens a floating terminal when
there is no tty.
Copilot AI balanced review requested due to automatic review settings August 27, 2026 02:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds clipboard-to-QR sharing through the Trigger > Share menu and CLI.

Changes:

  • Adds omarchy-share-qr with validation and terminal presentation.
  • Adds the Share menu entry.
  • Adds shell tests for core behavior.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
bin/omarchy-share-qr Generates and presents clipboard QR codes.
default/omarchy/omarchy-menu.jsonc Adds the QR sharing menu item.
test/shell.d/share-qr-test.sh Tests QR sharing behavior and integration.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@chessing234

Copy link
Copy Markdown
Contributor Author

@dhh @ryanrhughes ready for review

@chessing234

Copy link
Copy Markdown
Contributor Author

folded into #12730 with presentation mode so the menu toggles review together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No way to share the clipboard as a QR code from Trigger > Share

2 participants