Skip to content

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

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

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

Conversation

@dorman

@dorman dorman commented Aug 27, 2026

Copy link
Copy Markdown

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 qrencode --type ANSIUTF8, opens a floating terminal when stdout is not a tty, and refuses empty or oversized payloads. Clipboard reads are limited to text/plain so an image on the pasteboard does not become a broken encode.

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 joins multi-word arguments
ok - share-qr encodes the clipboard
ok - share-qr opens a floating terminal when stdout is not a tty
ok - share-qr hands explicit text through the environment
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 03:51

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 QR-code sharing for clipboard or supplied text through the Share menu and CLI.

Changes:

  • Adds QR encoding with validation and floating-terminal display.
  • Integrates and documents the Share menu action.
  • Adds shell tests for primary behavior and failure cases.

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 3 out of 4 changed files in this pull request and generated no comments.

File Description
bin/omarchy-share-qr Implements QR sharing and terminal launch behavior.
default/omarchy/omarchy-menu.jsonc Adds the QR Code Share action.
manual/22-guis.md Documents clipboard QR sharing.
test/shell.d/share-qr-test.sh Tests encoding, validation, and menu integration.

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

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

Labels

enhancement New feature or request

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

3 participants