omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Emoji picker does not insert selected emoji

Open AnoopLamba opened this issue 2 months ago • 3 comments

System details

  • Omarchy: 4.0.2-1
  • Hyprland: 0.56.2
  • Kernel: 7.1.9-arch1-2
  • Session: Wayland / Hyprland
  • GPU: Intel Kaby Lake-R GT2 (UHD Graphics 620)
  • wl-clipboard: 2.3.0
  • wtype: 0.4
  • fcitx5: 5.1.21 (running)

What's wrong?

The built-in Omarchy emoji picker opens normally, but selecting an emoji does not insert anything into the focused text field. The picker closes after selection, but no emoji appears.

Steps to reproduce

  1. Focus any text input.
  2. Open the Omarchy emoji picker with Super+Ctrl+E.
  3. Click any emoji.
  4. Observe that the picker closes but the emoji is not inserted.

Expected behavior

The selected emoji should be inserted into the previously focused text input.

Investigation

The picker invokes omarchy-menu-emoji-insert, which currently does the following:

  • Copies the emoji with wl-copy --type text/plain ..., targeting the regular Wayland CLIPBOARD selection.
  • Sends Shift+Insert via wtype.

On Wayland/Linux, Shift+Insert uses the PRIMARY selection in common applications, not CLIPBOARD. This leaves the paste operation reading a different selection, so nothing is inserted. In the affected session, the regular clipboard and primary selection were also observed to contain different values.

The likely fix is either to copy with wl-copy --primary when using Shift+Insert, or to keep using the regular clipboard and send the equivalent regular-clipboard paste shortcut where appropriate.

This appears to be a reproducible issue in the packaged Omarchy implementation rather than a local configuration, font, or Fcitx issue.

AnoopLamba avatar Sep 04 '26 15:09 AnoopLamba

I tested this on a worker built from the Omarchy ISO, with current quattro (10f1cbf7c), Hyprland 0.56.2 and fcitx5 running, and with the primary selection deliberately holding different text from the clipboard, as you saw on your machine.

The picker failed in Firefox and worked elsewhere:

  • Firefox 155 (native Wayland): nothing was inserted. Firefox does not act on the synthetic Shift+Insert that bin/omarchy-menu-emoji-insert sends at line 17 at all. It still inserted nothing with the emoji put on the primary selection as well, so copying with wl-copy --primary would not fix it. A synthetic Ctrl+V did paste.
  • Chromium and foot: the emoji was inserted. In both, Shift+Insert pasted the clipboard, not the primary selection. Every terminal Omarchy configures binds Shift+Insert to the clipboard: config/foot/foot.ini line 20, config/ghostty/config line 26, config/alacritty/alacritty.toml line 22 and etc/xdg/kitty/kitty.conf line 15. So the primary selection doesn't explain the failure in those apps.

If you were typing into Firefox or a Firefox-based browser (Zen, LibreWolf), #6892 fixes this. It sends Ctrl+Shift+V to windows tagged as terminals and Ctrl+V everywhere else, the same choice SUPER + V makes. On the same worker, #6892's helper inserted the emoji in Firefox, Chromium and foot. It is waiting on the maintainer. I haven't linked it as closing this issue, because your report doesn't say which application failed.

There is a second known cause that fits a mouse click. The picker closes before it pastes, and Omarchy sets follow_mouse = 1. If the emoji you click sits over a different window, that window gets focus and the paste goes there (#7350, #7379). #8573 addresses that.

To tell which one you hit, could you say:

  1. Which application, or applications, you tried it in.
  2. Whether choosing the emoji with the arrow keys and Enter, instead of clicking, inserts it.
  3. Whether another window was under the picker where you clicked.

Codex Medium gave a second opinion. It agreed that the primary-selection explanation doesn't hold for the stock terminal configs or Chromium, and that the app has to be known before #6892 can be said to fix this. It pointed to default/hypr/input.lua line 47 for the focus setting. Its independence is not guaranteed, because it saw my findings. This is waiting on your answer.

omarchybot avatar Oct 11 '26 05:10 omarchybot

Not the reporter, but here's a data point. On my machine (Omarchy, Hyprland, Wayland) I ran the helper directly with a text field focused. The current one, Shift+Insert via wtype, pasted nothing in Floorp 12.21.2, but worked in Brave 1.99.57. The helper from #6892 (8bfc9ac6) pasted in both. So it fits the Firefox case from the bot's test. I ran the helper from a terminal, not through the picker, so this says nothing about the click and focus problem from #7350. More details in #12376.

Somnius avatar Nov 14 '26 07:11 Somnius

@Somnius, your direct-helper test adds a Floorp result for #6892 at 8bfc9ac61464c68b45ac6aa13d483b087511e87a: you report that it pastes where the installed helper fails, and that both helpers work in a fresh Brave text field. That matches the Firefox case tested earlier. #6892 remains open, and the installed helper’s source is unchanged on current quattro (419a5a709).

Running the helper directly leaves the picker’s mouse-focus behavior untested. @AnoopLamba, your application name, the result with arrow keys and Enter, and whether another window was underneath the clicked emoji are still needed to distinguish the causes in your original report. I am leaving this waiting on your answer, without marking #6892 as closing this issue.

GPT-6 High in Codex reviewed this follow-up by reading the new comments, current code and related pull requests. No new worker tests or second opinion were run for this follow-up; the earlier worker results and Codex Medium review are recorded above.

omarchybot avatar Nov 18 '26 03:11 omarchybot