Pastelo - A script to leverage various pastebin and file sharing services

Supports more than a dozen hosts.

While EndeavourOS comes with eos-sendlog to automatically generate a set of information and send it to one of three pastebins .. there are still many situations in which we may want to quickly share a file or some output.

There are numerous solutions for this and they can be interacted with according to their various APIs. A short list of examples can be found here: https://cscs.tech/docs/pastebin-services

But pastelo makes this easier by curating a selection of hosts, or even allowing a custom selection, with familiar syntax;

<command> | pastelo
pastelo <file>

As always feedback is welcome.

(And especially extra information about or suggestions for hosts/instances!)

5 Likes

Very nicely done and very useful, thank you!

Love the clipboard feature. Is there a surefire easy way to detect if we’re running on X11 or Wayland?

Thanks!

Ah, you mean the commented out section?

I dont know about sure-fire, but I have a snippet that should work (even including cases where there is no Display Manager) though I have not been able to thoroughly test it.

This snippet will be included in the next update along with a slightly revised configuration file - which will now include a CopyToClipboard option alongside HostInstance.

No longer hidden in the script - you can now set the CopyToClipboard option to ‘True’ and the clipboard will automatically be filled with the pastelo output url. Currently relies on xclip or wl-clipboard respectively.

Do note that because of the changes any ‘old’ configuration file (which would only contain a host url) will be replaced on first run. Meaning you may need to set your preferred host once more.

~ New version posted at the gitlab ~

1 Like

Sure. I tend to read unknown scripts before invoking them the first time. :wink: And I love source comments of course. Thanks for the update, will test later.

Good things you make, one can learn from these.

1 Like