commands.sh

wl-copy

linux

Clear and copy to Wayland clipboard. See also: `wl-paste`, `xclip`.

More info →

Examples (5)

Copy the text to the clipboard

wl-copy "text"

Pipe the command (`ls`) output to the clipboard

Copy for only one paste and then clear it

wl-copy --paste-once "text"

Copy an image

wl-copy < path/to/image

Clear the clipboard

wl-copy --clear
made by @shridhargupta | data from tldr-pages