Page 1 of 1

scrotup

Posted: Mon May 25, 2015 7:47 pm
by dkeg
Just something I wrote messing around. I wrote it initially with no option, but stark asked if there was a choice to upload, so here is my implementation of that. It may or may not work for you. Or you will be required to make adjustments. Don't get me wrong, I completely understand this is totally elementary and simplistic, but it was still fun to write.

About: Take a scrot, preview it, choose to upload to imgur. Check out the webm

If your interested, you can find it here

Re: scrotup

Posted: Mon May 25, 2015 8:40 pm
by rhowaldt
looks cool drew! i see it needs popbatt script - could you post that as well for reference? i suppose it is basically a call to lemonbar, no?

Re: scrotup

Posted: Mon May 25, 2015 10:39 pm
by dkeg
Thanks rho, I edited the OP. Let me know if you want thing else.

Re: scrotup

Posted: Tue May 26, 2015 2:58 am
by dkeg
updated OP and script version. Added a check that usage was correct.

Re: scrotup

Posted: Tue May 26, 2015 7:32 am
by stark
This is WAY better than what I was trying to do, Thanks for sharing dkeg ! :)

Re: scrotup

Posted: Tue May 26, 2015 1:01 pm
by dkeg
Thanks! I'm going to update it later. On 'exit' option delete the scrot

Re: scrotup

Posted: Tue May 26, 2015 2:06 pm
by wuxmedia
sexy. nice scripts :)

Re: scrotup

Posted: Wed May 27, 2015 11:24 am
by dkeg
Made some improvements. Updated OP. Also although I would kick you out if no param valued, it would still take the scrot and name as YYYY-DD .... etc b/c I was using 'scrot'. I added a check to verify the param before taking the scrot.

Re: scrotup

Posted: Wed May 27, 2015 9:27 pm
by rhowaldt
tnxxx Drew!

Re: scrotup

Posted: Wed May 27, 2015 11:17 pm
by dkeg
Sure! I hope you can get some use out of it.

Re: scrotup

Posted: Sat May 30, 2015 9:31 pm
by dkeg
Added an update to OP. Added option to choose directory to save to with validation checks.

Re: scrotup

Posted: Sun May 31, 2015 11:58 pm
by dkeg
Another version. I'm bored and need to take my mind away. For kicks, this is how the project started

Code: Select all

scrot $1 && imgur upload $1 -t $1 
So fun.

Re: scrotup

Posted: Mon Jun 01, 2015 8:09 pm
by ChefIronBelly
me likes me use thanks

Re: scrotup

Posted: Tue Jun 02, 2015 1:49 am
by dkeg
Excellent. I'm glad it works for you.

Re: scrotup

Posted: Wed Jul 15, 2015 7:01 pm
by dkeg
updated. On selection of 'a' the script could no longer find the file to upload b/c it was moved. Doh! I fixed it. Yay!

Re: scrotup

Posted: Wed Jul 15, 2015 7:55 pm
by dkeg
Updated again. Improved the script to clean it up and moved it to github. Also added a webm to the OP