You are not logged in.

#51 2006-11-13 13:46:19

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,431
Website

Re: Screenshot info grabber - in development!

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

#52 2006-11-15 11:38:34

rab
Member
Registered: 2006-06-15
Posts: 185

Re: Screenshot info grabber - in development!

take TomE's, i'm just going to recode on when i get the time


rawr

Offline

#53 2006-11-16 10:27:21

tom.deb
Member
From: manchester/UK
Registered: 2005-06-20
Posts: 42
Website

Re: Screenshot info grabber - in development!

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

#54 2006-11-16 13:32:57

TomE
Member
Registered: 2005-08-06
Posts: 164

Re: Screenshot info grabber - in development!

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 tongue

tom.deb wrote:

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

#55 2006-11-16 18:40:43

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,431
Website

Re: Screenshot info grabber - in development!

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

#56 2006-11-16 23:56:21

johnisevil
Member
From: Hamilton, ON Canada
Registered: 2003-08-07
Posts: 221
Website

Re: Screenshot info grabber - in development!

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

#57 2006-11-17 11:47:39

reverie
Member
From: Denmark
Registered: 2006-03-02
Posts: 59
Website

Re: Screenshot info grabber - in development!

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

#58 2006-11-17 14:46:26

TomE
Member
Registered: 2005-08-06
Posts: 164

Re: Screenshot info grabber - in development!

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. sad

Pastebin

Offline

#59 2006-11-17 18:32:05

stingray
Member
From: Lima, Peru SA
Registered: 2006-03-24
Posts: 188

Re: Screenshot info grabber - in development!

TomE wrote:

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. sad

Pastebin

Hey, that one works for me.  Fixing KDE must have helped!

Thanks!

Offline

#60 2006-11-18 07:42:43

F
Member
Registered: 2006-10-09
Posts: 322

Re: Screenshot info grabber - in development!

A good idea is to add what applets are currently running on the desktop. You know, those funky eye-candy applets.

Offline

#61 2006-11-19 14:50:15

rab
Member
Registered: 2006-06-15
Posts: 185

Re: Screenshot info grabber - in development!

IMO it would be better to get more support for more WM/DEs first


rawr

Offline

#62 2006-11-20 20:11:46

TomE
Member
Registered: 2005-08-06
Posts: 164

Re: Screenshot info grabber - in development!

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

#63 2006-11-20 20:51:45

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,431
Website

Re: Screenshot info grabber - in development!

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 smile

Offline

#64 2006-12-10 17:46:26

Dylan103
Member
Registered: 2006-10-19
Posts: 23

Re: Screenshot info grabber - in development!

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

#65 2006-12-20 19:54:17

TomE
Member
Registered: 2005-08-06
Posts: 164

Re: Screenshot info grabber - in development!

dtw wrote:

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 smile

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

#66 2006-12-23 16:59:10

rab
Member
Registered: 2006-06-15
Posts: 185

Re: Screenshot info grabber - in development!

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.

http://pastebin.ca/raw/290274


rawr

Offline

#67 2006-12-28 21:33:14

daedalusman
Member
From: CO, USA
Registered: 2006-12-05
Posts: 258

Re: Screenshot info grabber - in development!

rab wrote:

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.

http://pastebin.ca/raw/290274

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

#68 2006-12-28 21:43:21

Crooksey
Member
From: UK ~
Registered: 2006-08-14
Posts: 415
Website

Re: Screenshot info grabber - in development!

Works fine for me, i like the art though =/


Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)

Offline

#69 2006-12-28 22:12:00

Crooksey
Member
From: UK ~
Registered: 2006-08-14
Posts: 415
Website

Re: Screenshot info grabber - in development!

Rab, can you share you .Xdefaults for your xterm?


Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)

Offline

#70 2006-12-28 22:34:27

lyrae
Member
From: Australia
Registered: 2006-08-03
Posts: 142

Re: Screenshot info grabber - in development!

rab wrote:

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.

http://pastebin.ca/raw/290274

rab, can u send it to pastebin.archlinux.org?  I can't get into the site. It keeps  timing out.

Offline

#71 2006-12-28 22:46:51

Crooksey
Member
From: UK ~
Registered: 2006-08-14
Posts: 415
Website

Re: Screenshot info grabber - in development!


Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)

Offline

#72 2006-12-29 04:06:54

rab
Member
Registered: 2006-06-15
Posts: 185

Re: Screenshot info grabber - in development!

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_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

#73 2006-12-29 05:38:51

daedalusman
Member
From: CO, USA
Registered: 2006-12-05
Posts: 258

Re: Screenshot info grabber - in development!

rab wrote:
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_name


Using 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

#74 2006-12-29 12:46:22

rab
Member
Registered: 2006-06-15
Posts: 185

Re: Screenshot info grabber - in development!

Oh, alright

rab wrote:

and the display is just a place holder for the logos package im trying to put together


rawr

Offline

#75 2007-01-01 11:33:27

Xilon
Member
Registered: 2007-01-01
Posts: 243

Re: Screenshot info grabber - in development!

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 smile

--- 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 wink )

20070101203210253x85scrzo2.png

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! smile

Offline

Board footer

Powered by FluxBB