Francesco149 / sharenix

A ShareX clone for Linux and FreeBSD.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

thakyZ opened this issue · comments

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.

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

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

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

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

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

Ok cool thank you