https://ostechnix.com/how-to-use-pbcopy-and-pbpaste-commands-on-linux/
#xsel works great to “manipulate the X selection”. Last week I stepped up as proxied maintainer to help bring already merged improvements to #Gentoo users despite lack of new releases since 2008.
Thanks to support from soap during the past week, upstream has merged all ebuild patches, tagged 1.2.1, and Gentoo already ships the latest version — among the first distros, according to repology.
https://blog.ferki.it/2023/04/26/gentoo-has-xsel-1-2-1-among-the-firsts
Here's me fiddling with the clipboard again..
xsel | sed -e 's/youtube.com/invidio.us/g' | xsel -b
pipe contents of YT URL through sed to change to invidio.us and then back into xsel clipboard..
but..
how do I get this to run (in a terminal?) via a keyboard shortcut (Ctrl+\)?
bash script? attached to a shortcut?
*shrug*
I might be approaching this all wrong..
(on MXLinux18)