You are not logged in.
I have created a google code repo to host all my Arch related scripts and I'd like to add this script in now: which is the latest version? TomE and rab?
Offline
take TomE's, i'm just going to recode on when i get the time
rawr
Offline
here is what i get :
/home/thomas.gtkrc-2.0 -> No such file or directory...
__
_=(SDGJT=_
_GTDJHGGFCVS) OS: Arch Linux 0.7.2 (Gimmick)
,GTDJGGDTDFBGX0 Kernel: 2.6.17-beyond
JDJDIJHRORVFSBSVL-=+=,_ DE: None
IJFDUFHJNXIXCDXDSV, "DEBL WM: Unknown
|LKDSDJTDU=OUSCSBFLD. '?ZWX, WM Theme:
LMDSDSWH' `?DCBOSI DRDS], Theme:
SDDFDFH' `0YEWD, )HDROD Icons:
!KMDOCG &GSU|_GFHRGO' Font:
HKLSGP' __TKM0GHRBV)'
JSNRVW' __+MNAECIOI,BN'
HELK[' __,=OFFXCBGHCFD)
JKGHEH_-#DASDFSLSV=' 'EF
!EHTI !H
`0F' '!
It doesn't seem like FVWM // FVWM-crystal are detected.
t o m d e b
_______________________________________
"the urge to destroy is a creative urge."
Mikhail Bakunin.
Offline
I've had a go at adding kde based on Mikos posted config files,
don't know if it work as I dot have kde installed.
Archlinux pastebin
here is what i get :
/home/thomas.gtkrc-2.0 -> No such file or directory... __ _=(SDGJT=_ _GTDJHGGFCVS) OS: Arch Linux 0.7.2 (Gimmick) ,GTDJGGDTDFBGX0 Kernel: 2.6.17-beyond JDJDIJHRORVFSBSVL-=+=,_ DE: None IJFDUFHJNXIXCDXDSV, "DEBL WM: Unknown |LKDSDJTDU=OUSCSBFLD. '?ZWX, WM Theme: LMDSDSWH' `?DCBOSI DRDS], Theme: SDDFDFH' `0YEWD, )HDROD Icons: !KMDOCG &GSU|_GFHRGO' Font: HKLSGP' __TKM0GHRBV)' JSNRVW' __+MNAECIOI,BN' HELK[' __,=OFFXCBGHCFD) JKGHEH_-#DASDFSLSV=' 'EF !EHTI !H `0F' '!
It doesn't seem like FVWM // FVWM-crystal are detected.
I think it would be hard to add fvwm as the configs are all different files.
If fvwm has a consistent files and option names it should be easy to add it.
Offline
I use fvwm and I'd say it's impossible to do it. Maybe FVWM-Crystal you might be able too...
OK, I have added ssinfo to my svn repo at http://code.google.com/p/zangetsu/ - if you have/create a google account please PM me and I'll add you to the project so you can check code in and out.
Offline
I have a small script I wrote a while ago like this. I guess I could make it detect window manager/DE stuff but the basic idea of it is something I saw in a screenshot on gnome-look.org. Here's the basic output of it:
[john@metatron ~]$ ./info.py --info
----------------------------------------------------------------------
Kernel: 2.6.18-ck
Distro: Arch Linux 0.7.2 (Gimmick)
----------------------------------------------------------------------
CPU: AMD Athlon(tm) 64 Processor 3000+
Speed: 1000.000 mhz
Bogomips: 2004.06
----------------------------------------------------------------------
Memory total: 1011 mb
Memory used: 217 mb (21%)
Memory free: 793 mb (78%)
----------------------------------------------------------------------
NVIDIA version: 1.0-8776
NVIDIA card model: GeForce FX 5200
NVIDIA card type: AGP
----------------------------------------------------------------------
GTK theme: MurrinaFancyCandy
Metacity theme: MurrinaGilouche
So one day I may fancy it up a bit.
Offline
Well, e17 exports DESKTOP if running:
$ set|grep Enlightenment
DESKTOP=Enlightenment-0.17.0
$ enlightenment_remote -default-bg-get
REPLY <- BEGIN
REPLY: "/home/reverie/.e/e/backgrounds/EverafterGreendragons.edj"
REPLY <- END
$ enlightenment_remote -theme-get theme
REPLY <- BEGIN
REPLY: DEFAULT CATEGORY="theme" FILE="/home/reverie/.e/e/themes/milky_1.0_beta2.edj"
REPLY <- END
Themes and backgrounds always end in .edj.
Hope that helps.
Edit, made it easy for ya:
enlightenment_remote -theme-get theme|grep -o s/.*.edj|sed s/.edj//|sed s/s\///
enlightenment_remote -default-bg-get|grep -o s/.*.edj|sed s/.edj//|sed s/s\///
Btw, anyone know how to "extract" expressions with sed? In perl I'd just do:
print `enlightenment_remote -theme-get theme` =~ /s/(.*).edj/;
print `enlightenment_remote -default-bg-get` =~ /s/(.*).edj/;
Offline
Updated it a bit:
Fixed KDE :oops: there were some typos, I've only tested on a live slax cd so could someone try it on arch and see if works. It displays the WM Theme, Theme, Icons, and Font. But not the color scheme does anyone want that added?
Added fvwm it will display fvwm as the DE and WM but I can't add any theme detection.
Offline
Updated it a bit:
Fixed KDE :oops: there were some typos, I've only tested on a live slax cd so could someone try it on arch and see if works. It displays the WM Theme, Theme, Icons, and Font. But not the color scheme does anyone want that added?
Added fvwm it will display fvwm as the DE and WM but I can't add any theme detection.
Hey, that one works for me. Fixing KDE must have helped!
Thanks!
Offline
A good idea is to add what applets are currently running on the desktop. You know, those funky eye-candy applets.
Offline
IMO it would be better to get more support for more WM/DEs first
rawr
Offline
Added WM and theme detection for Enlightenment 17 and IceWM.
and WM detection for Window Maker (could not find anyway to find a theme if it has any)
Change the way themes are picked up if no DE is used. It will now look in ~/.gtkrc.mime and pick up themes in /usr/share/themes.
Added a way to take a screen shot
and some other stuff.
pastebin
Can people post configs for other WMs like Beryl, compiz, wmii, ion, twm or anything else people want including.
Offline
Erm, TomE, I have put the script in SVN on google code - if you want write access to the repo just pm your google username and I'll add you. Seems easier than the pastebin business, I think. Maybe you don't like that though
Offline
I know its an old post but,
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_COLLATE = "C",
LANG = "en_US.utf8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
No enviroment selected, going by defaults..
.gtkrc-2.0 not found...
Feh file not found...
No such file or directory
Failed to open "~/.xinitrc" for reading...
Offline
Erm, TomE, I have put the script in SVN on google code - if you want write access to the repo just pm your google username and I'll add you. Seems easier than the pastebin business, I think. Maybe you don't like that though
Dibble I've sent you a PM
Dylan103:You need to set you locale the wiki got instructions.
But thats the not reson the scripts failing the script can't find some files.
I've got a new version thats fixed that error it just need uploading.
Offline
Complete rewrite of code, some parts are untested and the display is just a place holder for the logos package im trying to put together.
rawr
Offline
Complete rewrite of code, some parts are untested and the display is just a place holder for the logos package im trying to put together.
I just wanted to let you know that your script doesn't pick up my gtk settings. I use gnome-settings-daemon to set the gtk-theme,icon,fonts settings and the script seems to only look on the .gtkrc-mine file for these things. I looked into it and the gnome-settings-daemon info can be found in the file "/home/username/.gconf/desktop/gnome/interface/%gconf.xm". I thought you'd might like to know inorder to better this great script. Thanks, and I hope this help.
Offline
Works fine for me, i like the art though =/
Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)
Offline
Rab, can you share you .Xdefaults for your xterm?
Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)
Offline
Complete rewrite of code, some parts are untested and the display is just a place holder for the logos package im trying to put together.
rab, can u send it to pastebin.archlinux.org? I can't get into the site. It keeps timing out.
Offline
For speed:
Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)
Offline
I just wanted to let you know that your script doesn't pick up my gtk settings. I use gnome-settings-daemon to set the gtk-theme,icon,fonts settings and the script seems to only look on the .gtkrc-mine file for these things. I looked into it and the gnome-settings-daemon info can be found in the file "/home/username/.gconf/desktop/gnome/interface/%gconf.xm". I thought you'd might like to know inorder to better this great script. Thanks, and I hope this help.
It checks .gtkrc-2.0 and .gtkrc.mine if a desktop environment wasn't found. If you were running gnome the process name, correct me if i am wrong, is gnome-session. If it finds that it int he process list it will run 3 commands
gconftool-2 -g /desktop/gnome/interface/gtk_theme
gconftool-2 -g /desktop/gnome/interface/icon_theme
gconftool-2 -g /desktop/gnome/interface/font_name
Using gconftool-2 is the same as opening "/home/username/.gconf/desktop/gnome/interface/%gconf.xm" and searching for
<entry name="gtk_theme" mtime="1164385280" type="string">
<stringvalue>Rezlooks-Snow</stringvalue>
</entry>
rawr
Offline
daedalusman wrote:I just wanted to let you know that your script doesn't pick up my gtk settings. I use gnome-settings-daemon to set the gtk-theme,icon,fonts settings and the script seems to only look on the .gtkrc-mine file for these things. I looked into it and the gnome-settings-daemon info can be found in the file "/home/username/.gconf/desktop/gnome/interface/%gconf.xm". I thought you'd might like to know inorder to better this great script. Thanks, and I hope this help.
It checks .gtkrc-2.0 and .gtkrc.mine if a desktop environment wasn't found. If you were running gnome the process name, correct me if i am wrong, is gnome-session. If it finds that it int he process list it will run 3 commands
gconftool-2 -g /desktop/gnome/interface/gtk_theme
gconftool-2 -g /desktop/gnome/interface/icon_theme
gconftool-2 -g /desktop/gnome/interface/font_nameUsing gconftool-2 is the same as opening "/home/username/.gconf/desktop/gnome/interface/%gconf.xm" and searching for
<entry> <stringvalue>Rezlooks-Snow</stringvalue> </entry>
Alright well I'm using gnome-settings-daemon with fluxbox so that is why its not checking the gconftool-2 settings. Maybe it should search and see if gnome-settings-daemon is running alrong with the gnome-session check, for the people like me. Also is there suppose to be a graphic displayed? I ask cause of the screenshots showing an arch logo in asci and I'm not getting that either, Thanks.
Offline
Oh, alright
and the display is just a place holder for the logos package im trying to put together
rawr
Offline
I doubt this is going to be much of a contribution, but I thought a bit of colour and tabs would be a lot nicer. Of course this is just a quick-hack and improvements should be made. Just a suggestion
--- kopia 585.pl 2007-01-01 20:17:51.000000000 +0900
+++ 585.pl 2007-01-01 20:21:04.229053834 +0900
@@ -24,7 +24,7 @@
OS => {
f => 1,
- i => `cat /etc/arch-release`
+ i => `cat /etc/debian_version`
},
wm => {
@@ -81,6 +81,15 @@
}
);
+if ($sh{OS}{i} == "4.0") {
+ $sh{OS}{i} = "Etch";
+}
+if ($sh{OS}{i} == "3.0") {
+ $sh{OS}{i} = "Etch";
+}
+
+$sh{OS}{i} = "Debian GNU/Linux $sh{OS}{i}";
+
%de = ( Gnome => "gnome-session",
Xfce4 => "xfdesktop",
Kde => "kdesktop" );
@@ -115,34 +124,36 @@
sub printlogo {
my @temp;
+ my $color1 = "33[0;32m";
+ my $color2 = "33[0;36m";
- push @temp, "OS: $sh{OS}{i}"
+ push @temp, "${color1}OStt: ${color2}$sh{OS}{i}"
unless !$sh{OS}{f};
- push @temp, "Kernel: $sh{kernel}{i}"
+ push @temp, "${color1}Kerneltt: ${color2}$sh{kernel}{i}"
unless !$sh{kernel}{f};
if( $sh{de}{is} && $sh{de}{f} ) {
- push @temp, "DE: $sh{de}{name}";
- push @temp, "$sh{de}{name} Theme: $sh{de}{theme}"
+ push @temp, "${color1}DEtt: ${color2}$sh{de}{name}";
+ push @temp, "${color1}$sh{de}{name} Themett: ${color2}$sh{de}{theme}"
unless !defined $sh{de}{theme};
- push @temp, "$sh{de}{name} Icons: $sh{de}{icon}"
+ push @temp, "${color1}$sh{de}{name} Iconstt: ${color2}$sh{de}{icon}"
unless !defined $sh{de}{icon};
- push @temp, "$sh{de}{name} Font: $sh{de}{font}"
+ push @temp, "${color1}$sh{de}{name} Fonttt: ${color2}$sh{de}{font}"
unless !defined $sh{de}{font};
} elsif( $sh{$tk}{f} ) {
- push @temp, "$tk Theme: ".$sh{$tk}{"${tk}theme"}
+ push @temp, "${color1}$tk Themet: ${color2}".$sh{$tk}{"${tk}theme"}
unless !defined $sh{$tk}{"${tk}theme"};
- push @temp, "$tk Icons: ".$sh{$tk}{"${tk}icon"}
+ push @temp, "${color1}$tk Iconst: ${color2}".$sh{$tk}{"${tk}icon"}
unless !defined $sh{$tk}{"${tk}icon"};
- push @temp, "$tk Font: ".$sh{$tk}{"${tk}font"}
+ push @temp, "${color1}$tk Fontt: ${color2}".$sh{$tk}{"${tk}font"}
unless !defined $sh{$tk}{"${tk}font"};
}
- push @temp, "WM: $sh{wm}{wmname}"
+ push @temp, "${color1}WMtt: ${color2}$sh{wm}{wmname}"
unless (!defined $sh{wm}{wmname} || !$sh{wm}{f});
- push @temp, "$sh{wm}{wmname} Theme: $sh{wm}{wmtheme}"
+ push @temp, "${color1}$sh{wm}{wmname} Themet: ${color2}$sh{wm}{wmtheme}"
unless (!defined $sh{wm}{wmtheme} || !$sh{wm}{f});
- for( $x = 0; $x < @temp; $x++) { print $temp[$x]."n"; }
+ for( $x = 0; $x < @temp; $x++) { print $temp[$x]."33[0;mn"; }
}
sub parsePS {
Note that I have also made the script work with Debian instead of Arch (would be great if it was cross-distro )
Edit: I forgot to mention that I just love this script, I saw a screenshot of Arch and this script and thought to myself "What a great idea!", I didn't know it was an automated script (though I was hoping it was) and only recently found this thread. Thanks a lot, and gj!
Offline