tmux <-> Wayland Clipboard Integration

tmux 3.2 and above provide the copy-command option to set a command to pipe text to copy. You will also need the wl-copy command from the wl-clipboard package. Add the following line to your ~/.tmux.conf:

set -s copy-command 'wl-copy'

As of writing this post, tmux 3.2 is only available in experimental, so you’ll need to install it from there:

$ sudo apt install -t experimental tmux

3 thoughts on “tmux <-> Wayland Clipboard Integration”

  1. I came across tmux-yank as well. I liked that in tmux 3.2 you no longer need a plugin or a multitude of config options. Just one line.

Leave a Reply

Your email address will not be published. Required fields are marked *