Puppy Theme Info (pti)

Themes, icons, wallpapers, etc.
Post Reply
Message
Author
stu90

Puppy Theme Info (pti)

#1 Post by stu90 »

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.

Image

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: Select all

[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
Attachments
pti.gz
pti v003
(1.1 KiB) Downloaded 631 times

User avatar
maik.murks
Posts: 327
Joined: Mon 28 Mar 2011, 06:19
Location: at home, at work or on holidays

#2 Post by maik.murks »

Hi stu90.

First of all, thank you for providing the link to your new thread :D

It‘s cool that you‘ve added some more informations to your script :D

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

So, thanks for the script :D

Cheers :wink:

Maik.Murks

stu90

#3 Post by stu90 »

maik.murks wrote:Hi stu90.

First of all, thank you for providing the link to your new thread :D

It‘s cool that you‘ve added some more informations to your script :D

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

So, thanks for the script :D

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: Select all

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/
Attachments
theme_switcher.gz
updated theme_switcher script
(1.85 KiB) Downloaded 611 times

User avatar
maik.murks
Posts: 327
Joined: Mon 28 Mar 2011, 06:19
Location: at home, at work or on holidays

#4 Post by maik.murks »

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
Attachments
pti1_pti-output.jpg
(29.71 KiB) Downloaded 1592 times
pti2_scrot-help.jpg
(118.77 KiB) Downloaded 1609 times

stu90

#5 Post by stu90 »

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: Select all

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

User avatar
maik.murks
Posts: 327
Joined: Mon 28 Mar 2011, 06:19
Location: at home, at work or on holidays

#6 Post by maik.murks »

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 :D

Cheers :wink:

Maik.Murks

Post Reply