dshoreman / nextshot

A simple tool for taking screenshots on Linux and sharing via Nextcloud
GNU General Public License v2.0
41 stars 3 forks source link

Copy image to clipboard #34

Closed dshoreman closed 5 years ago

dshoreman commented 5 years ago

Would be nice if - instead of just getting the link - you could avoid Nextcloud and copy the screenshot directly to clipboard instead.

Useful for pasting in chat apps like Telegram, Twitter etc or even sites like StackOverflow that have "paste to upload image" functionality.

All it takes is adding -t image/png to the copy command so that xclip knows it's an image, but we'll also need an extra runtime arg to toggle between copying the link or image.

dshoreman commented 5 years ago

image It works!

Ignore the greyness - that's the desktop background showing through :man_facepalming: