pWidgets 2.5.8
Thanks for the reply Zigbert.
I have increased it a little but it doesn't help the speed of transparency.
My system is reasonably fast amd3000+.
Good news however! I booted into macpup and pwidgets worked perfectly and with instant transparency. Even if you are not supporting other systems, its good to know it works
I have increased it a little but it doesn't help the speed of transparency.
My system is reasonably fast amd3000+.
Good news however! I booted into macpup and pwidgets worked perfectly and with instant transparency. Even if you are not supporting other systems, its good to know it works
Download a better Computer :)
[url=http://uk.youtube.com/watch?v=rDTLJYDHX3g]Puppy Linux Song[/url]
[url=http://www.letterbyletter.co.uk]www.letterbyletter.co.uk[/url]
[url=http://uk.youtube.com/watch?v=rDTLJYDHX3g]Puppy Linux Song[/url]
[url=http://www.letterbyletter.co.uk]www.letterbyletter.co.uk[/url]
Hi:
Here are the scripts for the weather widget.
WeatherIcon:
Weather:
.conkyrc:
The font is in http://img.dafont.com/dl/?f=weather
The only thing you have to do is put your location in conkyrc.
Cheers
Here are the scripts for the weather widget.
WeatherIcon:
Code: Select all
#!/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=1&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
01 )
echo "a"
;;
02 )
echo "b"
;;
03 )
echo "c"
;;
04 )
echo "c"
;;
05 )
echo "b"
;;
06 )
echo "c"
;;
07 )
echo "d"
;;
08 )
echo "e"
;;
11 )
echo "v"
;;
12 )
echo "g"
;;
13 )
echo "g"
;;
14 )
echo "g"
;;
15 )
echo "f"
;;
16 )
echo "f"
;;
17 )
echo "f"
;;
18 )
echo "h"
;;
19 )
echo "k"
;;
20 )
echo "k"
;;
21 )
echo "k"
;;
22 )
echo "j"
;;
23 )
echo "k"
;;
24 )
echo "x"
;;
25 )
echo "k"
;;
26 )
echo "k"
;;
30 )
echo "z"
;;
31 )
echo "x"
;;
32 )
echo "w"
;;
33 )
echo "O"
;;
34 )
echo "l"
;;
35 )
echo "m"
;;
36 )
echo "n"
;;
37 )
echo "m"
;;
38 )
echo "n"
;;
39 )
echo "q"
;;
40 )
echo "r"
;;
41 )
echo "p"
;;
42 )
echo "p"
;;
43 )
echo "u"
;;
44 )
echo "u"
;;
esac
Code: Select all
#!/bin/sh
cat /tmp/Weather.tmp| perl -ne 'if (/Currently/) {chomp;/\<title\>Currently: (.*)?\<\/title\>/; print "$1"; }'|sed 's/C$/ºC/'
Code: Select all
TEXT
$alignc${color #9C8F5B}Weather
${color #777777}${font weather:size=42}${execi 10 /root/.pwidgets/scripts/WeatherIcon "EUR|ES|SP017|BILBAO"}${font}${voffset -10} ${color #777777}${execi 10 /root/.pwidgets/scripts/Weather}
The only thing you have to do is put your location in conkyrc.
Cheers
Thanks, Sigmund. Sorry it took so long to acknowledge your post - I've been away in another city on business.zigbert wrote:Warren
The config button opens geany with the widgets config file(s). Maybe it would be better to rename button to 'Edit config file'.
There is no configs for the analog clock. But you can change the clock by setting another skin. The file is /root/.pwidgets/configs/Clock-analog.png
Boy, the enthusiasm for Pwidgets is great! By the time it is launched on the rest of the Linux world in Puppy 4.2 we should have an awesome, functional front end with minimal resources! Well done, mate!
Cheers,
[i]Actions speak louder than words ... and they usually work when words don't![/i]
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com
@Zigbert
I am having lots of fun hacking up (lol, I'm no hacker) your software!
@all other onlookers
lots of clock skins at this site http://www.clocx.net/index.php
It'swindow$ software but you can install it in windows if you like and get to the .png images or download them separately.
EDIT: Howto skin the analog clock
I am having lots of fun hacking up (lol, I'm no hacker) your software!
@all other onlookers
lots of clock skins at this site http://www.clocx.net/index.php
It'swindow$ software but you can install it in windows if you like and get to the .png images or download them separately.
EDIT: Howto skin the analog clock
- Attachments
-
- clock.png
- (21.81 KiB) Downloaded 4828 times
Last edited by 01micko on Fri 19 Dec 2008, 00:00, edited 1 time in total.
Puppy Linux Blog - contact me for access
sintot
THANK YOU !!!
A great explanation! The weather widget is now integrated into Pwidgets, but there are 2 issues:
1.) The weather font is not freeware. Is there any other font we could use?
2.) How can I know the code for my location? "EUR|ES|SP017|BILBAO" works great for some, but not for most. I looked at accuweather, but couldn't find info about the codes. The conkyrc file should contain MANY examples of big cities around the world.
I checked my location, but the closest is Trondheim, 500 km away.
I guess I have to look out my window to check the weather.
Thank you again
Sigmund
THANK YOU !!!
A great explanation! The weather widget is now integrated into Pwidgets, but there are 2 issues:
1.) The weather font is not freeware. Is there any other font we could use?
2.) How can I know the code for my location? "EUR|ES|SP017|BILBAO" works great for some, but not for most. I looked at accuweather, but couldn't find info about the codes. The conkyrc file should contain MANY examples of big cities around the world.
I checked my location, but the closest is Trondheim, 500 km away.
I guess I have to look out my window to check the weather.
Thank you again
Sigmund
@Sigmund - how can we make Pwidgets persistant i.e. survive a reboot? Conky survives but I have to restart Pwidgets to get back my lovely configuration. Is it something to do with fixwidgets?
[i]Actions speak louder than words ... and they usually work when words don't![/i]
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com
Zigbert
You can search your code in http://www.accuweather.com/us-city-list.asp (in the "Enter an international location" section). For example, you enter "Valamoen, Norway", and it takes you to a page: http://www.accuweather.com/world-index- ... 5moen|&u=1
Here, you can see your code: EUR|NO|NO009|Val%E5moen (Oh, it's cold there!)
We could use the font from http://simplythebest.net/fonts/fonts/whethers.html , but the decode between accuweather and this font must be redone.
You can search your code in http://www.accuweather.com/us-city-list.asp (in the "Enter an international location" section). For example, you enter "Valamoen, Norway", and it takes you to a page: http://www.accuweather.com/world-index- ... 5moen|&u=1
Here, you can see your code: EUR|NO|NO009|Val%E5moen (Oh, it's cold there!)
We could use the font from http://simplythebest.net/fonts/fonts/whethers.html , but the decode between accuweather and this font must be redone.
Thanks, Sigmund. I must have just missed it because I did run the two font install commands from a console. That "old-timer's disease" is getting pretty savage I guess.zigbert wrote:Complete set of notes in the main post.
[i]Actions speak louder than words ... and they usually work when words don't![/i]
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com
Been playing around with pwidgets on project ripple, and I'm having issues with transparency. Firstly, looking in the code for pwidgets, it's trying to match the false transparancy to my desktop background. No harm there The problem is that it's looking for my background picture in the wrong place... according to fixwidgets, my background should be in /root/Choices/ROX-background.jpg
Well, this might be true for JWM, but using only Rox for the background setter, my settings are in Rox under /root/Choices/ROX-filer/PuppyPin.
Oddly enough, after about 5 minutes Pwidgets does notice my background, and creates a false transparency around it. Any thoughts on how to acheive this on starting Pwidgets?
Also, using compiz-fusion, or cairo-dock, it is possible to hide the widget layer. What would be involved in hiding pwidgets? In compiz-fusion it's technically possible to hide any window if you give it the right name... ie
What name would pwidgets be? I have tried Pwidgets, pwidgets, conky, Conky, etc, with no luck. Would be gret to have this feature. Cheers.
~dinky
Well, this might be true for JWM, but using only Rox for the background setter, my settings are in Rox under /root/Choices/ROX-filer/PuppyPin.
Oddly enough, after about 5 minutes Pwidgets does notice my background, and creates a false transparency around it. Any thoughts on how to acheive this on starting Pwidgets?
Also, using compiz-fusion, or cairo-dock, it is possible to hide the widget layer. What would be involved in hiding pwidgets? In compiz-fusion it's technically possible to hide any window if you give it the right name... ie
Code: Select all
name=xcalc | name=terminal | name=asapm
~dinky
Good point dinky. I've just checked and my wallpaper setting is in
rot/.config/tmp/bg_img (puppy 4)
so i've changed the code to reflect it (in fixwidgets) and got instant transparency.
rot/.config/tmp/bg_img (puppy 4)
so i've changed the code to reflect it (in fixwidgets) and got instant transparency.
Download a better Computer :)
[url=http://uk.youtube.com/watch?v=rDTLJYDHX3g]Puppy Linux Song[/url]
[url=http://www.letterbyletter.co.uk]www.letterbyletter.co.uk[/url]
[url=http://uk.youtube.com/watch?v=rDTLJYDHX3g]Puppy Linux Song[/url]
[url=http://www.letterbyletter.co.uk]www.letterbyletter.co.uk[/url]
I have got new ideas, and need some knowledge.
Please read my post
sintot
GREAT!
Whats next? rss?
dinky
I have no idea about your hide trouble, sorry.
headfound
Do you know why your wallpaper setting is in
/root/.config/tmp/bg_img
and not
/root/.config/wallpaper/bg_img
Please read my post
sintot
GREAT!
Whats next? rss?
dinky
I have no idea about your hide trouble, sorry.
headfound
Do you know why your wallpaper setting is in
/root/.config/tmp/bg_img
and not
/root/.config/wallpaper/bg_img
I have been trying hard to get the Pwidgets analog clock to show up at boot without clicking or banging or anything, and.. SUCCESS!
I installed 'xevents' http://www.isv.uu.se/~ziemann/xevent/ and that is a small program to generate a keystroke or mouse click or cursor movement.
What I did was write a script (WOW! my first script! Please point out to me what I could have done better, but it works ) that sleeps for 5 seconds to allow the window manager to load then moves the cursor a few pixels and left clicks the mouse. I edited /usr/sbin/fixwidgets to point it to the script and viola!
Please give feedback, thanks in anticipation.
Update: 'wakeclock.sh' reuploaded, 14/12/08, newer version
Important update: 20th December, '08: There is no need to download this fix because it is now included in Pwidgets-0.2. I will leave it here for perusal/criticism/feedback. The small program 'xevent' may be useful for other purposes.
Micko
I installed 'xevents' http://www.isv.uu.se/~ziemann/xevent/ and that is a small program to generate a keystroke or mouse click or cursor movement.
What I did was write a script (WOW! my first script! Please point out to me what I could have done better, but it works ) that sleeps for 5 seconds to allow the window manager to load then moves the cursor a few pixels and left clicks the mouse. I edited /usr/sbin/fixwidgets to point it to the script and viola!
Please give feedback, thanks in anticipation.
Update: 'wakeclock.sh' reuploaded, 14/12/08, newer version
Important update: 20th December, '08: There is no need to download this fix because it is now included in Pwidgets-0.2. I will leave it here for perusal/criticism/feedback. The small program 'xevent' may be useful for other purposes.
Micko
- Attachments
-
- wakeclock.sh.gz
- (274 Bytes) Downloaded 1749 times
-
- xevent-0.1-i486.pet
- (2.55 KiB) Downloaded 1963 times
Last edited by 01micko on Sat 20 Dec 2008, 03:39, edited 6 times in total.
Puppy Linux Blog - contact me for access
- ttuuxxx
- Posts: 11171
- Joined: Sat 05 May 2007, 10:00
- Location: Ontario Canada,Sydney Australia
- Contact:
Hi micko puppy has a folder located01micko wrote:I have been trying hard to get the Pwidgets analog clock to show up at boot without clicking or banging or anything, and.. SUCCESS!
/root/Startup
if you system link any file inside it, It will start up automatically after everything is booted. Kind of easy that way.
Also since your using icewm, I think you are, Just edit
/root/.icewm/startup (hidden folder)
and follow the examples in it
ttuuxxx
Ps Nice script
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)
ttuuxxx wrote
EDIT: BTW, works just fine in JWM also
No need, I don't think, works fine with just the symlink to /root/Startup in icewmAlso since your using icewm, I think you are, Smile Just edit
/root/.icewm/startup (hidden folder)
and follow the examples in it
EDIT: BTW, works just fine in JWM also
Puppy Linux Blog - contact me for access
Ok, getting a bit too excited here. There is a problem with my fix if you place it in /root/Startup. The clock will not start automatically if you reconfigure Pwidgets from the Pwidgets GUI. Grrrrrrrrr!
So, I edited /usr/sbin/fixwidgets by adding the following line at the end of the script directing it to my script,
Works great in JWM but now I have some conflict in Icewm with the tray, could be due to an app I use called 'tray_mixer'. Will investigate
EDIT: In Icewm I fixed the problem, just gave the tray apps some more time to load, (Hmmmmmm,is that a fix?) Anyway, works ok, edited /root/.icewm/startup
and
So, I edited /usr/sbin/fixwidgets by adding the following line at the end of the script directing it to my script,
Code: Select all
/root/wakeclock.sh
EDIT: In Icewm I fixed the problem, just gave the tray apps some more time to load, (Hmmmmmm,is that a fix?) Anyway, works ok, edited /root/.icewm/startup
Code: Select all
sleep 5 && /root/my-applications/blinky-0.8-icewm/src/blinky -bg "#000000" &
Code: Select all
sleep 6 && /root/my-applications/freememapplet_tray_puppy215ce/freememapplet-tray &
Last edited by 01micko on Sat 29 Nov 2008, 10:40, edited 1 time in total.
Puppy Linux Blog - contact me for access
Thankyou Zigbert! Made me get the 'grey matter' working.zigbert wrote:Works perfect!!!!
Added to Pwidgets 0.2
Thanks for great work!
Sigmund
Puppy Linux Blog - contact me for access