Francesco149 / sharenix

A ShareX clone for Linux and FreeBSD.
GNU General Public License v3.0
588 stars 35 forks source link

Copy image to clipboard and upload only when parameter is passed. #28

Closed thakyZ closed 6 years ago

thakyZ commented 6 years ago

I am a fairly new Linux user, and I use ShareX whenever I use windows. But when I usually use ShareX I have no need to use the file uploaders all the time since I usually can paste the image in from clipboard. I was wondering if there was already a way that I can take an image and have it copied to clipboard then upload it with a command if I need it to be, or if you can add such feature to this code. I am a programmer myself and I sadly don't know Go, so I wouldn't be able to make it work myself.

thakyZ commented 6 years ago

I guess my question is if you could make it so that you can upload from clipboard. Since it's much more tedious to upload via file url after many images were taken

Francesco149 commented 6 years ago

you can do this without sharenix, for example with gnome-screenshot: gnome-screenshot -a -c

Francesco149 commented 6 years ago

ah, you mean uploading something that's already in the clipboard!

run sharenix -n -c -m="c"

Francesco149 commented 6 years ago

so basically gnome-screenshot -a -c stores the screenshot in your clipboard (bind this to some key), then when you want to actually upload you hit another hotkey that would be bound to sharenix -n -c -m="c" . by the way, -m="c" also works for copying files/images from a file manager or from your browser

thakyZ commented 6 years ago

Ok cool thank you