wl-copy

Wayland clipboard manipulation tool. See also: wl-paste. More information: <https://github.com/bugaevc/wl-clipboard>.

Install

All systems
curl cmd.cat/wl-copy.sh
Debian Debian
apt-get install wl-clipboard
Ubuntu
apt-get install wl-clipboard
Arch Arch Linux
pacman -S wl-clipboard
image/svg+xml Kali Linux
apt-get install wl-clipboard
Windows (WSL2)
sudo apt-get update sudo apt-get install wl-clipboard

Wayland clipboard manipulation tool. See also: wl-paste. More information: <https://github.com/bugaevc/wl-clipboard>.

  • Copy the text to the clipboard:
    wl-copy "text"
  • Pipe the command (`ls`) output to the clipboard:
    ls | wl-copy
  • 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

© tl;dr; authors and contributors