Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). Version

## [Unreleased]

### Fixed

- Clipboard now uses `wl-copy` on Wayland instead of `xclip`, which doesn't work there.

## [0.14.0] — 2026-06-13

### Added
Expand Down
4 changes: 2 additions & 2 deletions src/clipboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function writeClipboard(text: string): void {
function clipboardCmd(): [string, string[]] {
if (process.platform === "darwin") return ["pbcopy", []];
if (process.platform === "win32") return ["clip.exe", []];
// Linux: xclip is the most common. xsel and wl-copy also exist
// but async fallback chains add complexity for marginal gain.
if (process.env.WAYLAND_DISPLAY) return ["wl-copy", []];
// X11 fallback
return ["xclip", ["-selection", "clipboard"]];
}
Loading