Quattro: selecting an image in clipboard history copies it but does not paste it
What happened
In Omarchy Quattro, opening clipboard history with SUPER + CTRL + V and selecting an image with Enter closes the picker, but the image is not pasted into the previously focused application.
Steps to reproduce
- Copy an image, such as a screenshot.
- Focus an application that accepts image paste, such as a Chromium text field.
- Press
SUPER + CTRL + V. - Select the image entry and press Enter.
Expected
The image should be pasted into the previously focused application.
Actual
The picker closes, but nothing appears in the application. The selected image is copied correctly: wl-paste --list-types reports image/png immediately after the failed paste.
System
- Omarchy Quattro 4.2.1
- Hyprland
wtypeis installed
Investigation
The native picker calls omarchy-clipboard-paste-file for an image selection. That helper copies the image with wl-copy, waits 0.15 seconds, then injects Shift + Insert with wtype. The short delay appears insufficient for focus to return from the clipboard layer-shell overlay, so the synthetic paste can miss the original application.
Possible fix: wait until focus is restored before injecting the paste, and consider sending Ctrl + V for non-terminal applications.
text entries hit the same bug (not just images) - selecting them with 'shift+return' works though
Open PR #8350 addresses the observed GUI paste path by sending Ctrl+V outside terminals while retaining Shift+Insert for terminals, including the image-file helper used by clipboard history. Qualified link: the PR attributes the failure to GUI applications not handling Shift+Insert, while this report also suspects focus-return timing, so it may fix the Chromium reproduction without covering every possible missed-paste race.
Reviewed by Claude Opus 5.5, with a second opinion from Codex Medium.
Could not reproduce this on a stock install. On a worker VM built from the Omarchy ISO, the real flow worked every time: Chromium focused on an editable element, the clipboard manager opened with omarchy-shell shell toggle omarchy.clipboard, the top entry selected with Enter. Tried three times on the commit the worker was built from and three more after switching it to current quattro (902fd8aeb):
- Image entries pasted 6 of 6 times, and Chromium received them as a paste event carrying the file. Text entries also pasted 6 of 6.
- Raising the delay in
omarchy-clipboard-paste-filemade no difference, because the 0.15s it has already lands. Focus coming back late from the picker did not show. - With the pointer resting over a second window (foot) beside Chromium, it still pasted into Chromium, 3 of 3.
- Shift+Insert pastes an image into Chromium when the helper is called directly, so "Chromium ignores Shift+Insert" does not hold on a stock install either.
So neither the delay theory here nor the Ctrl+V change in #8350 and #12377 is tied to a failure anyone has reproduced yet. That is why neither pull request is linked to this issue.
Codex Medium found no mechanism in source either, and raised one condition the test above does not cover. A physically held modifier merges into the keystroke wtype injects (the comment at the top of default/hypr/bindings/clipboard.lua documents this). If Ctrl or Super is still down from Super+Ctrl+V when Enter is pressed, the paste would arrive as something like Ctrl+Shift+Insert, which is not a paste.
@andresreibel, @TonyBostonTB: these would let it be reproduced:
- Does it still fail if you let go of Super and Ctrl completely before pressing Enter?
- The exact page and field you are pasting into. A plain text input cannot take an image at all; a chat box or editor can.
hyprctl clients -jwhile Chromium is open, which shows whether it is running under XWayland, plus your Chromium version and any launch flags.- Your monitor layout, and any custom window, input or layer rules in
~/.config/hypr. - Right after a failed paste, do Ctrl+V and Shift+Insert each paste the image when you press them by hand?
Waiting on the reporter for those answers.
@omarchybot
To your first question: no modifiers are held. I release Super+Ctrl+V fully, then press Enter.
Found the cause: Enter pastes the primary selection, not the clipboard.
Repro:
- Highlight some text with the mouse in any app (sets PRIMARY).
- Copy other stuff, open the clipboard manager (Super+Ctrl+V), pick any entry with Enter.
- The highlighted text from step 1 is pasted, regardless of which entry was picked.
After a failed paste:
wl-paste-> the selected entry (wl-copy worked)wl-paste -p-> exactly the text that got pasted
The helpers send Shift+Insert, which pastes PRIMARY in both Brave Origin 154 (native Wayland) and Ghostty. Same result in either target, so it's not browser-specific. A stock test VM likely has no primary selection set, which would explain why it didn't reproduce.
Switching GUI apps to Ctrl+V (#8350/#12377) would not cover terminals, since they keep Shift+Insert. Suggest also setting PRIMARY in omarchy-clipboard-paste-text / -paste-file (wl-copy --primary), so Shift+Insert pastes the chosen entry everywhere.
Earlier note correction: Shift+Return is copy-only, so "it works" there just meant pasting manually afterwards.
Reviewed by Claude Opus 5.5. No second opinion this time: the configured reviewer (Codex Medium) answered its health check but had used up today's review limit, so nothing below has been checked by a second model.
@TonyBostonTB, thanks, that is a concrete mechanism. I tested it on a fresh worker VM built from the Omarchy ISO, running current quattro (988f44ea1). Before each paste I set PRIMARY to a marker string with wl-copy --primary, so a paste from the selection would show up:
- foot: the paste helper pasted the chosen entry, not PRIMARY. So did the real picker (Super+Ctrl+V, Enter).
- Chromium 152, native Wayland: chosen text pasted, and an image arrived as a file paste.
- Ghostty 1.3.1 with Omarchy's config: chosen text pasted.
- Ghostty with its own default: Ghostty binds Shift+Insert to
paste_from_selectionout of the box (ghostty +show-config --default). Omarchy overrides that withkeybind = shift+insert=paste_from_clipboardinconfig/ghostty/config:26. With that line commented out, Shift+Insert pasted nothing at all here, not even the PRIMARY thatwl-copyheld.
Every terminal Omarchy configures maps Shift+Insert to the clipboard: config/ghostty/config:26, config/foot/foot.ini:19-20, config/alacritty/alacritty.toml:22, etc/xdg/kitty/kitty.conf:15. So on a stock install Shift+Insert does not paste PRIMARY in any of them. That makes me think something on your machine binds it differently. I could not test Brave Origin 154, so Brave pasting PRIMARY on Shift+Insert may be real and Brave-specific.
These would settle it:
- The output of
grep -n insert ~/.config/ghostty/config. If theshift+insert=paste_from_clipboardline is missing, that alone explains the Ghostty half. - In Brave, with nothing to do with the clipboard manager: select some text with the mouse, copy different text with Ctrl+C, click into a plain text field and press Shift+Insert. Which one appears?
- Does Chromium (not Brave) on your machine do the same?
The suggested fix, also setting PRIMARY in the paste helpers, changes what the helpers do to your selection. In the Ghostty test above it would not have helped either. Whether to do that, or to send Ctrl+V outside terminals as #8350 and #12377 do, is the maintainer's decision, so I have not opened a pull request. Waiting on the answers above and on the maintainer.
@omarchybot You were right. My ~/.config/ghostty/config is a custom one and was missing shift+insert=paste_from_clipboard / control+insert=copy_to_clipboard, so Ghostty fell back to its own paste_from_selection default. After adding both lines, the clipboard manager pastes the chosen entry in Ghostty.
Brave Origin 154 (native Wayland) also pastes the chosen entry, with a different text highlighted as PRIMARY. My earlier claim that Brave pastes PRIMARY was wrong.
So my case was a local config issue and unrelated to the original report here (image entry not pasted into Chromium at all). That one still needs verification from @andresreibel.
Reviewed by Claude Opus 5.5. No second opinion this time: the configured reviewer (Codex Medium) answered its health check but today's review limit is spent, so nothing below has been checked by a second model.
@TonyBostonTB, thanks for checking. With your Ghostty config restored and Brave pasting the chosen entry, the PRIMARY-selection report is settled as a local config difference, and nothing in it points at the paste helpers.
That leaves the original report: an image entry selected with Enter not pasting into Chromium. Nothing new on current quattro (988f44ea1) explains it. The picker still hands images to bin/omarchy-clipboard-paste-file, which copies with wl-copy, waits 0.15s and sends Shift+Insert, and that path pasted images into Chromium on every attempt on a stock install. #8350 and #12377 stay unlinked for the same reason as before: they change a step that has not been shown to fail.
@andresreibel, the five questions in the earlier comment are what would let this be reproduced; the first and fifth (whether it fails with Super and Ctrl fully released, and whether Ctrl+V and Shift+Insert paste the image by hand right after a failed paste) are the quickest. Waiting on those.