On 29/09/26 at 15:24, [email protected] wrote:
On Tue, Sep 29, 2026 at 03:07:38PM +0200, Franco Martelli wrote:
Hello,
I'd like to write the content of a .txt file to the X11+KDE clipboard, in
order to do that I defined an "alias":
Xclip is your friend:
xclip < youefile
(Yes, yes, you can also "cat yourfile | xclip", but, although
a common idiom, it comes from the department of redundancy
department [1]).
Note that there are three selections to choose from (primary,
secondary and clipboard: applications are sometime confused
which one is "the right one") -- see the xclip man page for
details.
Cheers
[1] https://porkmail.org/era/unix/award
Yes I know about "xclip" but I would be liked to use the Dbus channel so
I save another package on the system: xclip or xsel.
In addiction using Dbus may work also with Wayland (I suppose) when I'll
migrate to it next year with Forky.
Kind regards,
--
Franco Martelli