OPINIONATED OMARCHY
TROUBLESHOOTING CORPUS
790
RECORDS
790
AUDITED
0
UNCHECKED
2388
SOURCES
LIVE
wayland-compat medium very-common DISPUTE

Keep the clipboard after closing the app you copied from

omarchyarchendeavouroscachyosmanjarohyprlandwayland
CORRECTED An auditor found the fix wrong or incomplete and rewrote it.
AUDIT NOTE

The Wayland clipboard-ownership explanation is correct, wl-clip-persist is genuinely in extra (0.5.0), --clipboard regular is a real flag, and cliphist + wl-clipboard are both in extra. Two errors. First, the Omarchy 4.x note is factually wrong in a way that matters: default/hypr/bindings/clipboard.lua binds SUPER+V to 'Universal paste' (it synthesises Ctrl+V / Shift+Insert), and the clipboard manager is SUPER+CTRL+V (omarchy-shell shell toggle omarchy.clipboard). A user told to press SUPER+V to check for an existing history manager will see a paste happen and draw the wrong conclusion. Second, the cliphist section gives only hyprlang exec-once lines with no 0.55+/Lua equivalent, even though the rest of the record is dual-syntax. It binds SUPER+V, colliding head-on with Omarchy's universal paste. fuzzel is also not installed on Omarchy.

The cause above was not rewritten and may still contain the error described. The fix below is the corrected version.
RISK

wl-clip-persist --clipboard primary is documented as not recommended, because persisting the primary selection has unintended side-effects in some GTK applications. Use --clipboard regular unless you specifically need middle-click paste to persist.

Symptom

You copy text from a terminal or editor, close that window, then paste, and nothing comes out, or you get the previous clipboard entry. Copying an image from a screenshot tool and closing it loses the image entirely.

Cause

By Wayland's design the clipboard is not a system buffer: the copied data lives in the memory of the source client and is only transferred when a paste actually happens. When the source client exits, the offer is withdrawn and the data is gone. This is normal Wayland behaviour, not a Hyprland bug.

Fix

Run a persistence daemon that takes ownership of the clipboard the moment something is copied.

Simplest is wl-clip-persist (in extra):


sudo pacman -S --needed wl-clip-persist

Hyprland 0.55+ / Omarchy 4.x (~/.config/hypr/autostart.lua):


hl.on("hyprland.start", function()
  hl.exec_cmd("wl-clip-persist --clipboard regular")
end)

Hyprland <=0.54 / Omarchy 3.x (~/.config/hypr/hyprland.conf):


exec-once = wl-clip-persist --clipboard regular

For history as well as persistence, add cliphist:


sudo pacman -S --needed cliphist wl-clipboard fuzzel

Hyprland <=0.54 / Omarchy 3.x:


exec-once = wl-paste --type text --watch cliphist store
exec-once = wl-paste --type image --watch cliphist store
bind = SUPER SHIFT, V, exec, cliphist list | fuzzel --dmenu --with-nth 2 | cliphist decode | wl-copy

Hyprland 0.55+ / Omarchy 4.x:


hl.on("hyprland.start", function()
  hl.exec_cmd("wl-paste --type text --watch cliphist store")
  hl.exec_cmd("wl-paste --type image --watch cliphist store")
end)

hl.bind("SUPER + SHIFT + V", hl.dsp.exec_cmd("cliphist list | fuzzel --dmenu --with-nth 2 | cliphist decode | wl-copy"))

Check Omarchy's own clipboard first before adding cliphist, so you do not end up with two managers fighting over the same clipboard. On Omarchy 4.x the paste history lives in the Quickshell shell on **SUPER+CTRL+V**. SUPER+V is 'Universal paste' (it injects Ctrl+V / Shift+Insert) and is NOT the history manager, so do not bind your own manager to SUPER+V or you will break pasting.

Verify


wl-copy "persistence test" </dev/null

Open a terminal, copy some text, close the terminal, then run wl-paste in another terminal. The text must still come back.

Sources

clipboard-lost-when-source-app-closes