You can use the xclip command in Linux to manipulate the X11 clipboard, handling copy and paste in the command prompt and scripts. See xclip and xsel examples:
-> Copy command output to clipboard https://www.cyberciti.biz/faq/xclip-linux-insert-files-command-output-intoclipboard/
-> Copy a file to the clipboard https://www.cyberciti.biz/faq/how-do-i-copy-a-file-to-the-clipboard-in-linux/
Conversation
Notices
-
nixCraft 🐧 (nixcraft@mastodon.social)'s status on Tuesday, 22-Aug-2023 03:46:06 JST nixCraft 🐧 -
Ondřej Kolín (ondrejkolin@mastodon.social)'s status on Tuesday, 22-Aug-2023 04:03:55 JST Ondřej Kolín @nixCraft I use gpaste-client command and I am so happy about that one 🤗
-
nixCraft 🐧 (nixcraft@mastodon.social)'s status on Tuesday, 22-Aug-2023 04:14:07 JST nixCraft 🐧 @fuchsiii that is for wayland, isn't it?
-
Fuchsiii~~~ (fuchsiii@oxytodon.com)'s status on Tuesday, 22-Aug-2023 04:14:16 JST Fuchsiii~~~ @nixCraft *Deprecated in favor of wl-clipboard
-
nixCraft 🐧 (nixcraft@mastodon.social)'s status on Tuesday, 22-Aug-2023 04:14:53 JST nixCraft 🐧 @ondrejkolin thanks, I will look into the gpaste
-
Ondřej Kolín (ondrejkolin@mastodon.social)'s status on Tuesday, 22-Aug-2023 05:14:31 JST Ondřej Kolín @nixCraft glad to be of help to you, considering how much I've read from you
-