Topic: Info grabber for screenshots

First of all, I didn't make this script.  All I did was add some crunchiness.  The script allows for color, but I think black/white fits better with the #! theme.

Alright, so download the tar.gz file from here, open a terminal, and run this:

tar -xvf info.pl.tar.gz

By default it takes a screenshot 5 seconds after executing.  To change that, open info.pl with the editor of your choice, and change 'my $shot' to 1 as seen below.

## Takes a screen shot if set to 0 ##
my $shot = 1;
## Command to run to take screen shot ##
my $command = "scrot -d 5"; 

To run it, open up a terminal and type this to run it:

perl info.pl

To change which ASCII art you see, change this line to whatever you like from the list bellow (and if you make your own, be sure to share it here and I'll update it. smile)

my $distro = "hanna";

hanna
http://pastebin.com/faded468

dannytatom
http://pastebin.com/m6bd36adc

sandycheeks (from hanna)
http://pastebin.com/f70a735bb


Screenshot:
http://www.picamatic.com/show/2009/01/15/12/53/1752047_bigthumb.png

Last edited by dannytatom (2009-01-17 06:15:59)

.files
dnyy in IRC & Urban Terror

Re: Info grabber for screenshots

This is a cool app, I've seen it before smile

Maybe this should be the default screengrabber in #! Crunchbang ??

Hopefully, this would be placed in the new board for apps when it shows up big_smile

/Niels
Registered Linux user #133791 > Get counted at http://counter.li.org
-----------------------------------------------------------------------
So Many Things To Do, And No Time For Nuts !

Re: Info grabber for screenshots

dnyy; tried to get script and got "500 Internal Server Error".

My web activities: Twitter | Identi.ca | Facebook | Blog

Re: Info grabber for screenshots

Like the idea of this script!
The original is the arch script right?

Wrapped in just a blanket I was sent here from far far away to protect the people of this world! *NOT*
Last.fm

Re: Info grabber for screenshots

As everyone can see, my ascii skills are limited.  If anyone makes a better looking logo, feel free to post or send me the file and I'll update the original post.

kestrel wrote:

dnyy; tried to get script and got "500 Internal Server Error".

Yeah, no clue why that's happening, but I e-mailed my host about it. hmm

Edit: This is fixed now.  The file name having .pl in it was messing it up, the server was trying to execute it as a perl script.

DUDE wrote:

Like the idea of this script!
The original is the arch script right?

Yupyup, I've always liked seeing it in arch screenshots. tongue

Last edited by dannytatom (2009-01-15 22:44:08)

.files
dnyy in IRC & Urban Terror

Re: Info grabber for screenshots

dannytatom, nice work! I love these types of scripts, I am going to have a play around with it later tonight. Thank you for sharing! smile

Re: Info grabber for screenshots

Thank ya. smile

Last edited by dannytatom (2009-01-16 06:40:02)

.files
dnyy in IRC & Urban Terror

Re: Info grabber for screenshots

Hi is their anyway this can be re uploaded somewhere or a new one made? Your links are dead.

Re: Info grabber for screenshots

Nevermind I found one on the Ubuntu Forums, It doesn't have the #! but if someone wants I guess they could edit it.

chmod +x info.pl

info.pl

Last edited by patrickstein (2009-08-21 18:21:18)

Re: Info grabber for screenshots

http://jinnfire.info/cbinfo.png

I've updated the script to show Crunchbang’s theme info including the Openbox theme, GTK and icon theme names, the ASCII art isn't pretty and was borrowed from the original paste bin. Download it here.

Of course you will need to

chmod +x cbinfo.pl

Last edited by jinnstar (2009-08-22 22:30:55)

Re: Info grabber for screenshots

@Jinnstar: When I try to download it, I get site not found?

Re: Info grabber for screenshots

patrickstein wrote:

@Jinnstar: When I try to download it, I get site not found?

Fixed!! Sorry about that!

Re: Info grabber for screenshots

jinnstar wrote:
patrickstein wrote:

@Jinnstar: When I try to download it, I get site not found?

Fixed!! Sorry about that!

Thanks for editing for use who have no scripting skills hardly.

Re: Info grabber for screenshots

I've updated the script to show the GTK theme as well as the Openbox theme.

Re: Info grabber for screenshots

jinnstar wrote:

I've updated the script to show the GTK theme as well as the Openbox theme.

For me it just is showing the Openbox theme now?

Re: Info grabber for screenshots

Script has been updated again, this time providing all of the proper info.

Re: Info grabber for screenshots

jinnstar wrote:

Script has been updated again, this time providing all of the proper info.

Works Great, Thanks Jinnstar.

Re: Info grabber for screenshots

Script has been updated again, this time I've fixed the screenshot feature. When you run the script it will take a screenshot after a 5 second delay.

Re: Info grabber for screenshots

if you want to change the ascii art here is a good page http://www.network-science.de/ascii/

I say never be complete, I say stop being perfect, I say lets evolve, let the chips fall where they may.

Re: Info grabber for screenshots

iggykoopa wrote:

if you want to change the ascii art here is a good page http://www.network-science.de/ascii/

Thanks iggykoopa.

I've updated it again, this time having it place the screenshot into the users home directory vs in the working directory of the script itself.  Still playing with the art though smile

Re: Info grabber for screenshots

Added what is now called CBInfo to GitHub.
http://github.com/jinnstar/CBInfo

Re: Info grabber for screenshots

Is it possible to have this script automatically open a terminal, then run? Just so one could put it in the menu, and it would work automatically.

Re: Info grabber for screenshots

terminator --command="cbinfo" will actually execute the script, however the terminal window does not stay open for more than a second before closing. There may be another way I'm not sure.

Re: Info grabber for screenshots

jinnstar wrote:

terminator --command="cbinfo" will actually execute the script, however the terminal window does not stay open for more than a second before closing. There may be another way I'm not sure.

Something like below might do the trick:

terminator --command="cbinfo && echo 'Press enter to exit>' && read"

Re: Info grabber for screenshots

corenominal wrote:

Something like below might do the trick:

terminator --command="cbinfo && echo 'Press enter to exit>' && read"

Unfortunately the window still disappears. Thanks though! smile