Skip to content

Keep clipboard contents alive when applications close - #9436

Open
KOUSTAV2409 wants to merge 1 commit into
omacom:quattrofrom
KOUSTAV2409:fix/clipboard-persist-retention
Open

Keep clipboard contents alive when applications close#9436
KOUSTAV2409 wants to merge 1 commit into
omacom:quattrofrom
KOUSTAV2409:fix/clipboard-persist-retention

Conversation

@KOUSTAV2409

Copy link
Copy Markdown

Problem

When copying text or content in XWayland applications (e.g. ONLYOFFICE DesktopEditors, GIMP, Inkscape, Wine) or certain Wayland clients, closing the source window immediately destroys the active Wayland selection offer. While Omarchy records the entry into history (~/.local/state/omarchy/clipboard-history.json), the active system clipboard buffer becomes blank until the user manually triggers Super + Ctrl + V to re-select it.

Fix

Add wl-clip-persist to install/omarchy-base.packages and launch wl-clip-persist --clipboard regular as part of the default session autostart in default/hypr/autostart.lua. This transparently preserves the regular clipboard selection across application closures without altering existing history capture behavior or keybindings.

Verification

  • ./test/cli (All suites passed)
  • bash test/shell.d/clipboard-test.sh (All 68 assertions passed)
  • bash test/shell.d/hyprland-default-config-test.sh (All assertions passed)
  • Tested with ONLYOFFICE and terminal pasting across window closures.

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.

1 participant