You are not logged in.
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)
//github/
Offline
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
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
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
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
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
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
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.
ARCH64 | XMonad | Configs | myAURpkgs | ArchWiki Contribs | Screenies
Offline
actually I was wondering if anyone knew a regex that would work. I'm not very good with regexes.
Offline
Oh yeah, and how did you all get the newer Arch logo?
Offline
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
)
I hope you like it ![]()
Last edited by karabaja4 (2009-01-13 20:20:11)
pie!
Offline
very nice, thank you ![]()
Offline
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
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.
ARCH64 | XMonad | Configs | myAURpkgs | ArchWiki Contribs | Screenies
Offline
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. ![]()
ARCH64 | XMonad | Configs | myAURpkgs | ArchWiki Contribs | Screenies
Offline
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
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.
ARCH64 | XMonad | Configs | myAURpkgs | ArchWiki Contribs | Screenies
Offline
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
How about just "\(.*?)\" as the regex
ARCH64 | XMonad | Configs | myAURpkgs | ArchWiki Contribs | Screenies
Offline
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
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
ARCH64 | XMonad | Configs | myAURpkgs | ArchWiki Contribs | Screenies
Offline
Mh, it works now, but there is your so called new line garbage, hehe. =/
Any ideas, how to fix that?
Regards, Andi ![]()
Offline
Hrm, I still didn't figure out a working regexp, with which I don't get the ")" in the next line. =/
Regards.
Offline
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
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
ARCH64 | XMonad | Configs | myAURpkgs | ArchWiki Contribs | Screenies
Offline