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 Fri 19 Sep 2014, 22:59
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
HOWTO change settings in Pwidgets
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [28 Posts]   Goto page: 1, 2 Next
Author Message
01micko


Joined: 11 Oct 2008
Posts: 7802
Location: qld

PostPosted: Sat 13 Dec 2008, 19:28    Post subject:  HOWTO change settings in Pwidgets
Subject description: Have fun changing the appearance of the clock, and other widgets
 

First of all, here are links to useful Pwidgets posts.

Pwidgets. Official download for latest Pwidgets.

Pwidgets- plugins and widget storage. Useful plugins, extra widgets.

wiki. Useful information and "Official" widget list included in latest version and list of recent plugins and other activity.

TV Channels Channels for Tv widget

Pwidgets Eyecandy Clockskins and sidebars, other Pwidget graphical stuff

Pwidgets now has a `Plugins´ tab that makes it easy to change your settings.

Covered are
    Themes
    Sidebar
    Cluster
    Calendar
    Clock_analog
    Downspeed
    Horoscope
    Pet
    RssFeed
    Slideshow
    Tv
    Weather
    WorldTime


zigbert has created a 'howto' for making widgets

Quote:
Creating a widget
A simple widget
Take a look at /root/.pwidgets/configs/ScrollText. Change the text at bottom of the file. Save new file with another name (keep it in /root/.pwidgets/configs/). Restart Pwidgets, and your new widget is available.

A more complex widget
1.) ENGINE
Pwidgets supports 4 widget engines, but 3 of them are hardcoded for a unique widget. Conky is what we have used to build most of our widgets.
- conky (base engine)
- xli (Slideshow)
- xwinwrap (Tv)
- xonclock (Analog-clock)

2.) CONFIG
A widget MUST have a config file in /root/.pwidgets/configs/ (See examples). Normally this is a ordinary conky config file. The config filename will be the widgets name. Content of this directory shows up in 'Available widgets' list in the main gui.

3.) SCRIPTS
If external code needs to be run to fetch new info for the widget, call up the widgets script in /root/.pwidgets/scripts/. The script should have the same name as the config file. It is also possible to run a specified script before reading config file. 'Downspeed' is an example of this. The script file has the same name as the config file with a -pre ending (Downspeed-pre), and is placed in /root/.pwidgets/scripts/.

4.) THEME
Your new widget will follow the global theme settings. If you want to override this you can hardcode colors in config files. Though, the best solution is to make a unique theme for your widget. Themes are placed in /root/.pwidgets/themes/THEME/main. The main file works for all widgets. If a unique theme is specified, this one overrides the main theme. The unique theme should have the same name as the config file (widget name).

5.) PLUGIN
If the new widget requires user configuration to works properly, a plugin may do the job. A plugin is a small gui that edits the widget config file. Plugins are stored in /root/.pwidgets/plugins/, and has the same name as the config file. It will show up automatically when user adds your widget from 'Available widgets' to 'Widget list'. After user input, let the plugin execute:
. /usr/local/pwidgets/locals/english
. /usr/local/pwidgets/func -apply
fixwidgets
This builds the chosen widget tree including the changed info from this plugin.


Have fun. Smile
mickey.jpg
 Description   
 Filesize   6.47 KB
 Viewed   9801 Time(s)

mickey.jpg


_________________
Woof Mailing List | keep the faith Cool |

Last edited by 01micko on Thu 24 Sep 2009, 04:36; edited 15 times in total
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7802
Location: qld

PostPosted: Fri 19 Dec 2008, 07:43    Post subject:  

IMPORTANT UPDATE
Pwidgets-1 is now released. The clock is now handled a little differently. The basic pinciple is the same but now the file Clock-analog.png is stored in a new directory called misc,
~/.pwidgets/misc .
Have fun!

_________________
Woof Mailing List | keep the faith Cool |

Last edited by 01micko on Thu 19 Feb 2009, 08:02; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7802
Location: qld

PostPosted: Sat 20 Dec 2008, 00:29    Post subject:  

Good suggestion here by CatDude
Quote:
As to the analog clock skins,
i used those that came in MU's gdesklets-0.36-i586-2gsb-MU-200clocks.pet
as posted here: gDesklets 0.36 beta (Only for Puppy-3)

Rename the .pet to .tgz and extract it somewhere,
you will get a directory called: gdesklets-0.36-i586-2gsb-MU-200clocks[/url]
you will find most of the clocks in: gdesklets-0.36-i586-2gsb-MU-200clocks/usr/lib/gdesklets/Displays/Clock/gfx/clocks

I renamed: /root/.pwidgets/misc/Clock-analog.png
then created a symlink to whatever took my fancy out of the 200 clocks.

I tested with these, and they worked OK


earth.png = 186x186
BallClockAqua.png = 128x128
arne49.png = 144x144
arne1.png = 170x170
Rainbow.png = 197x197



CatDude

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7802
Location: qld

PostPosted: Sun 25 Jan 2009, 01:09    Post subject:  

Here's a quick weather 'howto'

You have to edit a file. Ok, it can be done. Open the 'file' (rox or home) icon on the desktop. You will see a bunch of folders and a menu bar at the top of the window. There is a nice looking icon that resembles an eye, Left click it. A whole bunch more of folders and files will appear. Scroll down and find one that says '.pwidgets' (yes it has a 'dot' before it.) Click it once. A bunch more folders will appear, click(once) the 'Config' folder. Click the file (there are a bunch there) that is titled 'Weather'. It will open up in a program, which is what we call a text editor, something like 'Notepad', called 'Geany'. There you can read the contents. Peruse them. Try to understand what's going on. Go right down to a line that says 'TEXT'. Under that you will see the default listing of "EUR|NO|NO009|Val%E5moen". Replace this with your code. If you live in the US it is easy, just replace it with your zipcode, otherwise, do the following

goto "http://www.accuweather.com/us-city-list.asp"
goto 'enter an international location'
type your city (doesn't matter where you are, just type it in English if you can)
It will come up with some options, choose what suits you.
THEN in the browser bar (address bar I spose) there is a url, copy only the bit after "code=" and there will be something like 'OCN|AU|GOLD%20COAST' or 'EUR|UK|UK241|LONDON' or 'OCN|NZ|NZ000|AUCKLAND' or 'SAM|CL|CI011|SANTIAGO' or 'AFR|EG|EG011|CAIRO' (for Cairo, Egypt) or 'OCN|AU|NSW|Cairo' (for Cairo, NSW, Australia) or 'ASI|TH|TH017|BANGKOK'
FOR US, just do the zipcode, such as '90210' for Beverly Hills, California (yes, too much TV!)

Update: (Only if you have <puppy4.2Deepthought, keep the date of this post in mind) Pwidgets now has a new weather font. Download the font file 'pweather1.ttf.gz' from Pwidgets thread (you may have to scroll down a bit to find it) and unzip it. Install it in 'usr/share/fonts/default/TTF' Try it out in Abiword, It will appear as 'pweather'. Edit the file I mention in the 1st paragraph of this 'howto'. Another way to get to that file is open the Pwidgets gui, on the left highlight 'Weather', click the config button at the top and the file will open in the default text editor. At the beginning of the line where the weather code goes, 'line 51', you will see
Code:

${color0}${font weather:size=62}${execi 10

Change 'weather' to 'pweather', save the file, choose weather as a widget and enjoy!

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
jrb


Joined: 11 Dec 2007
Posts: 1036
Location: Smithers, BC, Canada

PostPosted: Sun 25 Jan 2009, 13:47    Post subject:  

Hi Micko,
Congratulations on a job fantastically done. I've got pwidjets running in puppy412 and it looks great and works great.

Thought I better mention however that for those of us living in Canada we can get the weather forcast by putting in our postal code, but it doesn't give us the code we need for pwidgets.

Instead I went to the International section and entered "Smithers, BC Canada" as per your instructions. This gave me "NAM|CA|BC|SMITHERS" which works.

Thanks for this, J

Currently -27C, a three puppy night
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7802
Location: qld

PostPosted: Fri 06 Feb 2009, 21:28    Post subject:  

To change the degrees C to degrees F in Pwidgets Weather you must edit another file. Goto /root/.pwidgets/scripts/WeatherIcon and open in your preferred text editor. Goto line 5 and you see 'METRIC=1', change to METRIC=0,. Save the file. Restart Pwidgets from the GUI, choose weather and you will see the temperature in degrees F. (You may not even need to restart Pwidgets)
Code:
!/bin/sh
#AccuWeather icon, using weather.ttf
#USAGE: WeatherIcon <locationcode>
#Sintot
METRIC=1 #Should be 0 or 1; 0 for F, 1 for C
LOCCOD="EUR|ES|SP013|Madrid"
if [ -z $1 ] && [ -x $LOCCOD ] ; then
   echo
        echo "USAGE: $0 [locationcode]"
        echo
        exit 0;
elif [ ! -z $1 ] ; then
        LOCCOD=$1
fi
curl -s "http://rss.accuweather.com/rss/liveweather_rss.asp?metric=&locCode=$LOCCOD">/tmp/Weather.tmp
SIMBOL=`cat /tmp/Weather.tmp|grep -A2 'description>Currently'|grep gif|sed 's/\// /g'|sed 's/_/ /g'|awk {'print $8'}`
case $SIMBOL in

Have fun. Smile

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7802
Location: qld

PostPosted: Wed 06 May 2009, 05:14    Post subject:  

Trio has a tutorial on how to show the correct space left in a pupsave on a usb pen-drive when using "puppyspace" widget
trio wrote:

Somebody asked this before, How to set puppyspace to show correct diskspace of pupsave file in usb install...the answer is (Mick, maybe yo could put this in the pwidgets howto, thanks):

REMEMBER MY PUPSAVE NAME IS: home/42Final/pup_save-421_off.2fs so, you have to change to yours accordingly

1. Alter puppyspace config file (/root/.pwidgets/configs/Puppyspace:

Code:

TEXT
${color2}${font Pdingobats:bold:size=20}:${font DejaVu:bold:size=13}$alignc${color0}Puppy Space
${font}${color1}${fs_size /mnt/+mnt+home+42Final+pup_save-421_off.2fs}${if_empty ${execi 4 /root/.pwidgets/scripts/Puppyspace}}${color6}${else}${color5}${endif}$alignr ${fs_free /mnt/+mnt+home+42Final+pup_save-421_off.2fs}
${fs_bar 10 /mnt/+mnt+home+42Final+pup_save-421_off.2fs}


2. Make an executable script named 0_mntpupsave so it will be executed before pwidgets starts. Put it in "/root/Startup" dir.

Code:

#!/bin/sh

[ ! "`ls /mnt | grep 42Final`" ] && filemnt /mnt/home/42Final/pup_save-421_off.2fs && rox --close=/mnt/+mnt+home+42Final+pup_save-421_off.2fs &


re-apply pwidgets and restart X

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
Tweenman


Joined: 27 Oct 2008
Posts: 19

PostPosted: Thu 25 Jun 2009, 11:02    Post subject: Where should I make my edits?  

Hello,

I just upgraded to 4.2, which file do I edit to lengthen the right column, to make room for one more pwidget. I'd also like to add a left column.

I tried "Cluster - run several profiles" It worked (default & system_left) the first few times I checked it but now it doesn't, instead it knocks out the right column.

Also when I max a window the weather pwidgets disappears, someitmes it comes back on its own, sometimes I have to click apply. How do I correct this blanking? Thanks in advance.
Back to top
View user's profile Send private message 
stiginge


Joined: 22 Mar 2007
Posts: 420
Location: Kerry, Ireland

PostPosted: Thu 16 Jul 2009, 00:43    Post subject: rss feed  

I've got the RSS Feed widget on my puppy 'desktop', but it just seems to throw up indonesian news headlines all the time, instead of rss feeds I'm actually interested in . However, I can't find how to change this anywhere?
_________________
Buy silver, crash JPMorgan
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7802
Location: qld

PostPosted: Fri 17 Jul 2009, 04:47    Post subject: Re: Where should I make my edits?  

Tweenman wrote:
Hello,

I just upgraded to 4.2, which file do I edit to lengthen the right column, to make room for one more pwidget. I'd also like to add a left column.

I tried "Cluster - run several profiles" It worked (default & system_left) the first few times I checked it but now it doesn't, instead it knocks out the right column.

Also when I max a window the weather pwidgets disappears, someitmes it comes back on its own, sometimes I have to click apply. How do I correct this blanking? Thanks in advance.


Sorry for the late reply. Smile .To make room for one more widget you can look at the /root/.pwidgets/config file of each widget you have in your list and edit the height of each one accordingly.

With the clusters, you need to edit the relevant configfile.

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7802
Location: qld

PostPosted: Fri 17 Jul 2009, 04:48    Post subject: Re: rss feed  

stiginge wrote:
I've got the RSS Feed widget on my puppy 'desktop', but it just seems to throw up indonesian news headlines all the time, instead of rss feeds I'm actually interested in . However, I can't find how to change this anywhere?


Copy the url of your rss feed to the relevant plugin of the rss widget.

It is easy!

_________________
Woof Mailing List | keep the faith Cool |

Last edited by 01micko on Fri 17 Jul 2009, 05:06; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
trio


Joined: 21 Dec 2008
Posts: 1788
Location: अनुमोदना

PostPosted: Fri 17 Jul 2009, 04:59    Post subject: Re: rss feed  

01micko wrote:
stiginge wrote:
I've got the RSS Feed widget on my puppy 'desktop', but it just seems to throw up indonesian news headlines all the time, instead of rss feeds I'm actually interested in . However, I can't find how to change this anywhere?


You need to edit the config file for the rss widget


I thought I made a plugin for this...please open menu - desktop - pwidgets - plugins - rss

_________________
PET Maker|WbarCC|My Website
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7802
Location: qld

PostPosted: Fri 17 Jul 2009, 05:09    Post subject: Re: rss feed  

trio wrote:
01micko wrote:
stiginge wrote:
I've got the RSS Feed widget on my puppy 'desktop', but it just seems to throw up indonesian news headlines all the time, instead of rss feeds I'm actually interested in . However, I can't find how to change this anywhere?


You need to edit the config file for the rss widget


I thought I made a plugin for this...please open menu - desktop - pwidgets - plugins - rss


Yes you did! I corrected my post. Been a while!

The cluster seems to have a bug. I have just been testing and the check boxes aren't showing... but I am using a slowish machine.... any ideas?

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
Sky Aisling


Joined: 27 Jun 2009
Posts: 907
Location: Port Townsend, WA. USA

PostPosted: Sat 22 Jan 2011, 14:13    Post subject: PWidgets Spacing between widgets  

Hello,

Thank you so much for PWidgets! I love 'em!

How do I increase the spacing between the widgets?

You write:
Quote:
To make room for one more widget you can look at the /root/.pwidgets/config file of each widget you have in your list and edit the height of each one accordingly.


I have the situation of one widget overlaying another. See screenshot where 'wireless' overlays 'weather'.

I tried changing the height of 'wireless' but didn't seem to make a difference.
PWidgets1.png
Description 
png

 Download 
Filename  PWidgets1.png 
Filesize  665.16 KB 
Downloaded  494 Time(s) 
Back to top
View user's profile Send private message 
steve_s


Joined: 26 May 2008
Posts: 1545
Location: Austin, TX, USA

PostPosted: Thu 17 Feb 2011, 14:02    Post subject:  

Bump for the last question.

I hope this thread is still being updated/viewed.

I just added pwidgets to Puppy 5.2 and it works great.

Main question: I just have the calendar and the save spaces/disk spaces as options, but I want them in the bottom right of the screen, not the top right of the screen.

How do I move them down from the top right to the bottom right? Wink I looked for the answer but didn't find that one listed.
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 2 [28 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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.1166s ][ Queries: 13 (0.0110s) ][ GZIP on ]