Skip to content

feat: enable Wayland clipboard support#79

Open
calendar0917 wants to merge 1 commit into
hanebox:releasefrom
calendar0917:wayland-clipboard
Open

feat: enable Wayland clipboard support#79
calendar0917 wants to merge 1 commit into
hanebox:releasefrom
calendar0917:wayland-clipboard

Conversation

@calendar0917
Copy link
Copy Markdown
Contributor

Enable the wayland feature on clipboard-rs so ekphos can interact with the system clipboard on Wayland compositors (niri, sway, Hyprland, etc.).

Problem

On Wayland-only sessions, ekphos cannot read from or write to the system clipboard. The internal vim-register clipboard still works, but "+y / "+p are broken.

Root cause

clipboard-rs has Wayland support via an optional wl-clipboard-rs backend, hidden behind the wayland feature flag. ekphos's Cargo.toml uses clipboard-rs = "0.3" without enabling this feature, so the binary is compiled with only X11 clipboard support.

Fix

  • Cargo.toml: clipboard-rs = "0.3"clipboard-rs = { version = "0.3", features = ["wayland"] }
  • Cargo.lock: auto-updated by cargo update -p clipboard-rs (bumps 0.3.1→0.3.4, pulls in wl-clipboard-rs and wayland dependency chain)

No Rust source code changes required — ClipboardContext::new() already tries Wayland first and falls back to X11 automatically.

Testing

Tested on NixOS with niri (Wayland-only compositor). Copy/paste between ekphos and system clipboard works correctly.

Enable the  feature on  so ekphos can
interact with the system clipboard on Wayland compositors (niri,
sway, Hyprland, etc.).  already supports Wayland
through an optional  backend — this just turns
it on at compile time. No Rust code changes needed.

On Linux,  tries Wayland first and
falls back to X11 automatically.
@voidpointer0
Copy link
Copy Markdown

voidpointer0 commented May 30, 2026

This worked for me (re: this). Thanks!

What I did:
git clone https://github.com/hanebox/ekphos.git
git fetch origin pull/79/head:pr-79
cargo build

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.

2 participants