Skip to content

Commit c32337c

Browse files
abrenkdocwhat
authored andcommitted
Support wl-copy from the Wayland clipboard utilities
1 parent 44fc7cc commit c32337c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ $ sudo port install tmux-pasteboard
118118

119119
### Linux
120120

121-
- `xsel` (recommended) or `xclip`.
121+
- `xsel` (recommended) or `xclip` (for X).
122+
- `wl-copy` from [wl-clipboard](https://github.com/bugaevc/wl-clipboard) (for Wayland)
122123

123124
If you have `tmux` 1.5 or newer and are using `xterm`, the <kbd>y</kbd> in
124125
`copy-mode` and mouse selection will work without `tmux-yank`. See the

scripts/helpers.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ clipboard_copy_command() {
148148
fi
149149
elif command_exists "clip.exe"; then # WSL clipboard command
150150
echo "clip.exe"
151+
elif command_exists "wl-copy"; then # wl-clipboard: Wayland clipboard utilities
152+
echo "wl-copy"
151153
elif command_exists "xsel"; then
152154
local xsel_selection
153155
if [[ $mouse == "true" ]]; then

0 commit comments

Comments
 (0)