←back to thread

79 points timeoperator | 1 comments | | HN request time: 0s | source
Show context
jdmg94 ◴[] No.44986928[source]
Great work! does the CLI support clipboard operations like MacOS' `pbcopy` and `pbpaste` ? I've added it to my stars to keep and eye on the project, GTK4 and wayland support makes it rather futureproof IMO
replies(3): >>44987178 #>>44987886 #>>44988618 #
k_roy ◴[] No.44987178[source]
For Wayland I just use this:

        alias pbcopy='xsel --clipboard --input'
        alias pbpaste='xsel --clipboard --output'

I used to do the same thing on Xorg with xclip I think

Switching between macOS for job and linux for everything else, I’ve honestly never realized any difference.

replies(1): >>44991982 #
yjftsjthsd-h ◴[] No.44991982[source]
I'm confused; xsel, as you might imagine from the name, is very specifically a program for manipulating the X11 selection and clipboard. So it does work on Xorg, but I'm very confused that it would work in any meaningful capacity on Wayland. Are you somehow using Xwayland?
replies(1): >>44992921 #
1. k_roy ◴[] No.44992921[source]
I run KDE usually so I imagine it's xwayland.