Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 22 Sep 2014, 16:30
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Eye Candy
Puppy Theme Info (pti)
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Thu 09 Jun 2011, 09:05    Post subject:  Puppy Theme Info (pti)
Subject description: script
 

Here is a script i made to display the current Puppy themes in use information then take a screen shot of its self with scrot.

Works with OpenBox and JWM windows managers.



Install:
Make sure the script is executable and move to /root/my-applications/bin/

Things to know:
You might need to tweek the Distro name section line #25 and #27 to get correct alignment for the puppy version you are running.
Colours can be changed on line #9 - #12
If you don't have scrot installed it will just display a readout with out taking a screen shot.

To Run:
Open a terminal and type the command pti

Or if you wanted to you could make a .desktop file and run it from that.
.desktop file example (change background colour and/or geometry for your terminal text size) :
Code:
[Desktop Entry]
Encoding=UTF-8
Name=pti-screenshot
Icon=mini-ray.xpm
Comment=
Exec=urxvt +sb -bg "#424242" -fg white -geometry 36x17+1005+10 -hold -e pti
Type=Application
Categories=Graphics
pti.gz
Description  pti v003
gz

 Download 
Filename  pti.gz 
Filesize  1.1 KB 
Downloaded  331 Time(s) 
Back to top
View user's profile Send private message 
maik.murks


Joined: 28 Mar 2011
Posts: 331
Location: at home, at work or on holidays

PostPosted: Thu 09 Jun 2011, 14:31    Post subject:  

Hi stu90.

First of all, thank you for providing the link to your new thread Very Happy

It‘s cool that you‘ve added some more informations to your script Very Happy

I‘ll download your script now and I‘ll give it a try somewhere during the next weekend.

So, thanks for the script Very Happy

Cheers Wink

Maik.Murks
Back to top
View user's profile Send private message 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Sat 11 Jun 2011, 08:16    Post subject:  

maik.murks wrote:
Hi stu90.

First of all, thank you for providing the link to your new thread Very Happy

It‘s cool that you‘ve added some more informations to your script Very Happy

I‘ll download your script now and I‘ll give it a try somewhere during the next weekend.

So, thanks for the script Very Happy

Cheers Wink

Maik.Murks


Hi maik.murks,

I clear out forgot to mention in my first post - to obtain the current JWM theme a small edit is needed of the script /usr/local/jwmconfig2/theme_switcher

Around line #49 (just above the if statement) add the following:
Code:
echo "${NEWTHEME}" > /root/.jwm/currentjwmtheme


As there is no convenient way to obtain the current JWM theme this will output to the file /root/.jwm/currentjwmtheme the JWM theme name when a theme is changed with the GUI.

I will attach the relevant theme_switcher script with the change applied - make sure it is executable and move to /usr/local/jwmconfig2/
theme_switcher.gz
Description  updated theme_switcher script
gz

 Download 
Filename  theme_switcher.gz 
Filesize  1.85 KB 
Downloaded  308 Time(s) 
Back to top
View user's profile Send private message 
maik.murks


Joined: 28 Mar 2011
Posts: 331
Location: at home, at work or on holidays

PostPosted: Tue 14 Jun 2011, 06:53    Post subject:  

Hi stu90.

I‘ve tried your script and in the end I have a full screenshot inclusive the terminal window where pti was started. But unfortunately it seems to be that I do something wrong. Would you please take a look to the attached pti1.jpg? Moreover, I don‘t know what the -u option is when pti calls scrot. Unfortunately my scrot don‘t know the -u option either. Would you please take a look to the attached pti2.jpg? Thank you.

Cheers Wink

Maik.Murks
pti1_pti-output.jpg
 Description   
 Filesize   29.71 KB
 Viewed   682 Time(s)

pti1_pti-output.jpg

pti2_scrot-help.jpg
 Description   
 Filesize   118.77 KB
 Viewed   657 Time(s)

pti2_scrot-help.jpg

Back to top
View user's profile Send private message 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Tue 14 Jun 2011, 07:50    Post subject:  

Hello maik.murks,

From your screen shot it looks like you need to alter your theme_switcher script as described in my post above - if you have already done this try changing the JWM theme with the GUI > JWM configuration > Choose a JWM theme, then check to see if the file /root/.jwm/currentjwmtheme has been created with the theme name in it.

It looks like the version of scrot you are using is missing some options - the -u option is to take a screen shot of only the current focused window.
You can see the options in the scrot i am using in this image:
http://i.imgur.com/LqNMB.jpg

For a better alignment try using something like:
Code:
rxvt +sb -bg "#424242" -fg white -geometry 36x17+1005+10 -hold -e pti


edit.
I noticed in your screen shot you have several other parts of the theme information missing as well - i have never used puppy 214 so i am unsure if it has the same files as Lucid puppy to obtain the theme information from?

/etc/windowmanager
/root/.gtkrc-2.0
/root/Choices/ROX-Filer/PuppyPin
/etc/desktop_icon_theme
Back to top
View user's profile Send private message 
maik.murks


Joined: 28 Mar 2011
Posts: 331
Location: at home, at work or on holidays

PostPosted: Tue 14 Jun 2011, 09:49    Post subject:  

Hi stu90.

Thank you very much for your informations given. It seemed to be that I‘m using a quite different version of scrot and that this version haven‘t got anything like making a direct screenshot of the current focused window. Well, perhaps it would be a good idea to take a closer look to scrot as it seemed to be a very nice and tiny tool. But I need some time.

WM theme is OK now, after editing the theme_switcher script as you mentioned above. Thank you very much. For the other informations being left so far, I have to take a closer look to where ever this Puppy is hiding these informations. When I have some more time.

So, thank you very much again for your effort Very Happy

Cheers Wink

Maik.Murks
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Eye Candy
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0644s ][ Queries: 13 (0.0044s) ][ GZIP on ]