I have once known how to do this, but totally forgot about it.
So I use scrot, i.e 'scrot '%d/%m-scrot.jpg'. I know I can pass an
-e argument to execute a program, but that's where I got stuck.
I want to use
scrot with the Imgur uploader bash script from https://gist.github.com/vivien/9768953 and upload the image to Imgur. I can't figure out how to do both in one command, though.
What I want to do is take a scrot, upload it to imgur and send the stdout from imgur.sh to xclip so the imgur url is added to my clipboard.
I have a faint memory of it looking something like this:
scrot '%d/%m-lulzol.jpg' -e imgur $f and then some
xargs. It does not recognize
$f now though.
I'm not sure how I can use the previous
scrot command's output as a variable for the Imgur command. Is there some kind of general variable used for stdout from a previous command in Bash? As you can tell, I am not not very familiar with Bash's inner workings or syntax regarding files.