hpr4743 :: wl-copy

Copy and paste from the Terminal in Wayland

Hosted by Klaatu on Wednesday, 2026-10-07 is flagged as Clean and is released under a CC-BY-SA license.
Linux, terminal, command. 3.

Listen in ogg, opus, or mp3 format. Play now:

Duration: 00:14:20
Download the transcription and subtitles.

general.

wl-copy is a command in the wl-clipboard package, and allows you to copy and paste data from your Linux Terminal on a Wayland desktop.

Copy an arbitrary string to your clipboard using wl-copy:


$ wl-copy "hello world"

Paste it anywhere on your system as usual (with Ctrl+Shift+V or a right-click and Paste).

You can copy from output, too:


$ echo "hello wide world" | wl-copy

You can redirect to wl-copy:


$ echo "hello world" > example.txt

$ wl-copy < example.txt

You can use wl-paste to paste from your system clipboard:


$ wl-paste

"hello world"

Comments

Subscribe to the comments RSS feed.

Comment #1 posted on 2026-10-07 13:55:16 by candycanearter07

wayland varient

while i personally dislike wayland, its nice theyre slowly porting useful programs over. i use xclip a lot in my disperate scripts

Comment #2 posted on 2026-10-07 19:52:51 by xmanmonk

wl-copy package

Just a note to those on arch or derivatives, the wl-copy (and wl-paste) commands are available in a package called wl-clipboard.

Comment #3 posted on 2026-10-09 01:37:32 by Whiskeyjack

wl-copy and xclip

I found this episode to be very interesting.

In the first podcast that I posted for HPR, which was HPR4503 on onetime passwords using oathtool, candycanearter07 posted a comment mentioning the possibility of using xclip to automatically copy the OTP to the clipboard.

Now that I know about wl-copy I should really get around to implementing that in my OTP script.

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the letter P in HPR stand for?