![Forrest logo](/images/logo.png)
wl-copy
wl-copy is a command line tool commonly available in Wayland environments. It is used to copy data to the clipboard from the command line, allowing users to easily manipulate text or transfer data between applications. The tool takes content from standard input or file and places it on the primary selection clipboard. It supports various input formats, such as plain text, HTML, and image files, making it versatile for different use cases. Furthermore, wl-copy can also be used to copy data from one Wayland client to another using its compatibility with the wl-clipboard utility. It provides a straightforward and efficient way for users to copy and paste data without requiring a graphical user interface. Overall, wl-copy proves to be a valuable tool in Wayland environments for managing clipboard content through the command line.
List of commands for wl-copy:
-
wl-copy:tldr:22e19 wl-copy: Copy for only one paste and then clear it.$ wl-copy --paste-once "${text}"try on your machineexplain this command
-
wl-copy:tldr:4e120 wl-copy: Clear the clipboard.$ wl-copy --cleartry on your machineexplain this command
-
wl-copy:tldr:b9580 wl-copy: Copy the text to the clipboard.$ wl-copy "${text}"try on your machineexplain this command