Skip to content

fix(install): add wl-clipboard for tmux copy-paste on Wayland#81

Merged
edge2992 merged 2 commits into
mainfrom
fix/tmux-clipboard-wayland
May 9, 2026
Merged

fix(install): add wl-clipboard for tmux copy-paste on Wayland#81
edge2992 merged 2 commits into
mainfrom
fix/tmux-clipboard-wayland

Conversation

@edge2992
Copy link
Copy Markdown
Owner

@edge2992 edge2992 commented May 9, 2026

Summary

  • Wayland セッションで tmux-yankwl-copy を優先的に呼び出すが、wl-clipboard が未インストールだとコピーが機能しない問題を修正
  • xclip のみだと XWayland 経由のクリップボードになり Wayland 側と同期しないため、run_once_install-linux-packages.sh.tmplwl-clipboard の自動インストールを追加

Test plan

  • sudo apt install -y wl-clipboard 実行後、tmux source-file ~/.tmux.conf
  • tmux コピーモード (prefix + [v 選択 → y) でシステムクリップボードへコピーできることを確認
  • マウス選択でのコピーが Wayland 側へ反映されることを確認
  • chezmoi applyrun_once_ スクリプトが再実行されることを確認 (ハッシュ変化により再実行)

edge2992 and others added 2 commits May 9, 2026 11:24
tmux-yank prioritizes wl-copy on Wayland sessions and silently fails
when it's missing. xclip alone goes through XWayland's separate
clipboard, so copies in tmux don't reach the Wayland clipboard.
@edge2992 edge2992 merged commit 25064ce into main May 9, 2026
5 checks passed
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