You are not logged in.

#176 2008-08-26 13:16:48

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: Screenshot info grabber - in development!

not sure if these scripts are on this thread yet but i stumbled on them on digg today, haven't tried it yet, but i've seen it in use on the monthly screenie's threads here.

http://binarycodes.blogspot.com/2008/08 … ystem.html

Last edited by brisbin33 (2008-08-26 13:17:57)

Offline

#177 2008-09-25 21:32:49

And1
Member
From: Germany
Registered: 2008-05-03
Posts: 13

Re: Screenshot info grabber - in development!

Hey guys,

could you please add xmonad, awesome, wmii and ion to the wm-list... I know how to add it myself, but why shouldn't it be added so it works for everyone out of the box... =)

I could upload a nice debian logo, if anyone (maybe one of the developers) is interested, would be nice if you could download a logos.pl file with several distributions and logos...

Maybe someone could explain, how to configure, which logo from the logos.pl file the scripts should use?

Regards, Andi

Last edited by And1 (2008-09-25 22:08:56)

Offline

#178 2008-10-20 08:42:08

chris_ak
Member
Registered: 2008-03-25
Posts: 64

Re: Screenshot info grabber - in development!

I cannot for the life of me find out what kind of code sets the colors in the info script.  I've been able to experiment a little bit to get green or blue... but I'd like more options.  For example, could anyone point me to where I can find out what "\e[38;5;47" means?  Thanks in advance.

Offline

#179 2008-10-25 07:21:09

creslin
Member
Registered: 2008-10-04
Posts: 241

Re: Screenshot info grabber - in development!

chris_ak wrote:

For example, could anyone point me to where I can find out what "\e[38;5;47" means?

The 38 doesn't really make much sense since it's not even a defined color code.. 30-37 for foregrounds and 40-47 for the respective backgrounds.  Semicolons are used within the \e[ and m escape indicators if you use multiple codes of colors and/or modifiers.

That sequence is missing the escape termination, but the codes would be 38 foreground (doesn't exist, guessing it would default to 37), 47 background and whatever the 5 modifier is.  The only mods I remember are 0 for normal and 1 for bold.  You can easily google or test all the codes.


ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.

Offline

#180 2008-10-27 08:52:52

chris_ak
Member
Registered: 2008-03-25
Posts: 64

Re: Screenshot info grabber - in development!

creslin wrote:
chris_ak wrote:

For example, could anyone point me to where I can find out what "\e[38;5;47" means?

The 38 doesn't really make much sense since it's not even a defined color code.. 30-37 for foregrounds and 40-47 for the respective backgrounds.  Semicolons are used within the \e[ and m escape indicators if you use multiple codes of colors and/or modifiers.

That sequence is missing the escape termination, but the codes would be 38 foreground (doesn't exist, guessing it would default to 37), 47 background and whatever the 5 modifier is.  The only mods I remember are 0 for normal and 1 for bold.  You can easily google or test all the codes.

Yeah, I've been looking googling like crazy to figure it out, but I'm finding that trial and error has been easier.  thanks for you help though, you definitely gave me some new information.

Offline

#181 2008-10-27 12:41:17

dav7
Member
From: Australia
Registered: 2008-02-08
Posts: 674

Re: Screenshot info grabber - in development!

man console_codes is also helpful.

-dav7


Windows was made for looking at success from a distance through a wall of oversimplicity. Linux removes the wall, so you can just walk up to success and make it your own.
--
Reinventing the wheel is fun. You get to redefine pi.

Offline

#182 2008-11-08 08:51:42

binarymutant
Member
Registered: 2008-11-08
Posts: 9

Re: Screenshot info grabber - in development!

very nice script, just found it today. Anyone know a way to fgrep for an awesome theme in rc.lua? Or any other cool tricks with this script?

Offline

#183 2008-11-08 14:39:41

ST.x
Member
From: Sydney, Australia
Registered: 2008-01-25
Posts: 363
Website

Re: Screenshot info grabber - in development!

binarymutant wrote:

very nice script, just found it today. Anyone know a way to fgrep for an awesome theme in rc.lua? Or any other cool tricks with this script?

mm you could do a perl file open and grep out the specific line.. then regex match the specific name part.

Offline

#184 2008-11-08 15:19:21

binarymutant
Member
Registered: 2008-11-08
Posts: 9

Re: Screenshot info grabber - in development!

actually I was wondering if anyone knew a regex that would work. I'm not very good with regexes.

Offline

#185 2008-11-09 09:44:02

binarymutant
Member
Registered: 2008-11-08
Posts: 9

Re: Screenshot info grabber - in development!

Oh yeah, and how did you all get the newer Arch logo?

Offline

#186 2008-11-10 00:45:50

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 844

Re: Screenshot info grabber - in development!

I made a new Arch ascii logo (tbh I didn't made it myself, used an ascii art tool).

Full script: http://karabaja.pondi.hr/scripts/info.pl
(I edited the scripts from DARKGuy's links, thanks wink)

I hope you like it big_smile

Last edited by karabaja4 (2009-01-13 20:20:11)


pie!

Offline

#187 2008-11-10 01:35:31

binarymutant
Member
Registered: 2008-11-08
Posts: 9

Re: Screenshot info grabber - in development!

very nice, thank you smile

Offline

#188 2008-11-14 00:23:17

binarymutant
Member
Registered: 2008-11-08
Posts: 9

Re: Screenshot info grabber - in development!

Can anyone help with this? I'm trying to get the basename for the Awesome 3 theme but can only get the entire line. Here's a pic of what I mean http://tinypic.com/view.php?pic=1op1qd&s=4

Offline

#189 2008-11-14 03:36:09

ST.x
Member
From: Sydney, Australia
Registered: 2008-01-25
Posts: 363
Website

Re: Screenshot info grabber - in development!

binarymutant wrote:

Can anyone help with this? I'm trying to get the basename for the Awesome 3 theme but can only get the entire line. Here's a pic of what I mean http://tinypic.com/view.php?pic=1op1qd&s=4

Hmm try "theme_path\ =\ \".*(\w+).theme\"" otherwise maybe split $theme by "/" into an array then grab last element then split by "." lol.

Offline

#190 2008-11-21 20:21:53

ST.x
Member
From: Sydney, Australia
Registered: 2008-01-25
Posts: 363
Website

Re: Screenshot info grabber - in development!

binarymutant wrote:

Can anyone help with this? I'm trying to get the basename for the Awesome 3 theme but can only get the entire line. Here's a pic of what I mean http://tinypic.com/view.php?pic=1op1qd&s=4

By the way, can you please post the final script if you ended up implementing anything new. smile

Offline

#191 2008-12-04 14:14:44

And1
Member
From: Germany
Registered: 2008-05-03
Posts: 13

Re: Screenshot info grabber - in development!

Hey guys,

what exactly does this do: "push @distros, ["Debian", "/etc/debian_version", "Debian \\((.*?)\\)"];"

It's in the logo-file...

What I want it to do, print "Debian ($content of the given file)"... now it prints only "Debian ()"...

The content of /etc/debian_version is "lenny/sid"... anyone any ideas how to do this?

Regards, Andi

Offline

#192 2008-12-04 14:24:54

ST.x
Member
From: Sydney, Australia
Registered: 2008-01-25
Posts: 363
Website

Re: Screenshot info grabber - in development!

Try "push @distros, ["Debian", "/etc/debian_version", "\(.*?)\"];"
That line just uses regex to get the release name from debian_version as well as pushing that stuff into the distros array.

Offline

#193 2008-12-04 15:54:58

And1
Member
From: Germany
Registered: 2008-05-03
Posts: 13

Re: Screenshot info grabber - in development!

Heya,

this one "push @distros, ["Debian", "/etc/debian_version", "\\(.*?)\\"];" prints:

Unmatched ) in regex; marked by <-- HERE in m/\(.*?) <-- HERE \/ at ./scripts/info.pl line 265.

And this "push @distros, ["Debian", "/etc/debian_version", "\(.*?)\\"];":

Trailing \ in regex m/(.*?)\/ at ./scripts/info.pl line 265.

Hmm.

Offline

#194 2008-12-04 16:34:55

ST.x
Member
From: Sydney, Australia
Registered: 2008-01-25
Posts: 363
Website

Re: Screenshot info grabber - in development!

How about just "\(.*?)\" as the regex

Offline

#195 2008-12-04 16:47:51

And1
Member
From: Germany
Registered: 2008-05-03
Posts: 13

Re: Screenshot info grabber - in development!

That doesn't work at all... even my vim syntax highlighting is wrong then:

and1@fubox ~ >> ./scripts/info.pl
Scalar found where operator expected at /home/and1/scripts/logos.pl line 15, near "$colors"
  (Might be a runaway multi-line "" string starting on line 13)
    (Missing semicolon on previous line?)
Scalar found where operator expected at /home/and1/scripts/logos.pl line 16, near "$colors"
    (Missing semicolon on previous line?)
Bareword found where operator expected at /home/and1/scripts/logos.pl line 16, near "]           __"
    (Missing operator before __?)
Bareword found where operator expected at /home/and1/scripts/logos.pl line 16, near "]_"
    (Missing operator before _?)
Bareword found where operator expected at /home/and1/scripts/logos.pl line 17, near "]      ____"
    (Missing operator before ____?)
Backslash found where operator expected at /home/and1/scripts/logos.pl line 18, near "_ \"
  (Might be a runaway multi-line // string starting on line 17)
    (Do you need to predeclare _?)
Backslash found where operator expected at /home/and1/scripts/logos.pl line 18, near "__ \"
    (Do you need to predeclare __?)
Backslash found where operator expected at /home/and1/scripts/logos.pl line 20, near "]    \"
    (Missing operator before     \?)
Scalar found where operator expected at /home/and1/scripts/logos.pl line 22, near "$colors"
    (Missing semicolon on previous line?)
Scalar found where operator expected at /home/and1/scripts/logos.pl line 23, near "$colors"
    (Missing semicolon on previous line?)
Scalar found where operator expected at /home/and1/scripts/logos.pl line 23, near "]      $colors"
    (Missing operator before       $colors?)
Substitution pattern not terminated at /home/and1/scripts/logos.pl line 23.
Compilation failed in require at ./scripts/info.pl line 37.

Regards, Andi

Offline

#196 2008-12-04 17:59:10

ST.x
Member
From: Sydney, Australia
Registered: 2008-01-25
Posts: 363
Website

Re: Screenshot info grabber - in development!

Okay changing the regex to just "(.*)" prints the correct name except that there is some new line garbage somewhere thats pulling a ")" to the next line. It looks like the chomps have been done but it's coming from something else

Offline

#197 2008-12-04 18:35:19

And1
Member
From: Germany
Registered: 2008-05-03
Posts: 13

Re: Screenshot info grabber - in development!

Mh, it works now, but there is your so called new line garbage, hehe. =/

Any ideas, how to fix that?

Regards, Andi smile

Offline

#198 2008-12-09 06:20:27

And1
Member
From: Germany
Registered: 2008-05-03
Posts: 13

Re: Screenshot info grabber - in development!

Hrm, I still didn't figure out a working regexp, with which I don't get the ")" in the next line. =/

Regards.

Offline

#199 2008-12-20 03:08:29

theringmaster
Member
From: Air Force
Registered: 2007-07-16
Posts: 581
Website

Re: Screenshot info grabber - in development!

semperfiguy wrote:

Here is the complete changed script: http://pastebin.archlinux.org/24300

I modified it a little to move the screen shot to a directory so you will have to change the $ssdir variable at the beginning of the script.

Could you repost your script please, it seems like it expired.


Check me out on twitter!!! twitter.com/The_Ringmaster

Offline

#200 2008-12-20 07:05:57

ST.x
Member
From: Sydney, Australia
Registered: 2008-01-25
Posts: 363
Website

Re: Screenshot info grabber - in development!

theringmaster wrote:
semperfiguy wrote:

Here is the complete changed script: http://pastebin.archlinux.org/24300

I modified it a little to move the screen shot to a directory so you will have to change the $ssdir variable at the beginning of the script.

Could you repost your script please, it seems like it expired.

The one I have here does that

Offline

Board footer

Powered by FluxBB