pWidgets 2.5.8

Window managers, icon programs, widgets, etc.
Message
Author
User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#1501 Post by tasmod »

OK here's what's happening.

Clock skin is compressed png at 90%

Ring is totally uncompressed.

Compare sizes and it correlates.
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#1502 Post by tasmod »

Need to apply compression in clock-skin chooser. How?

Or fixed in 1.9.10
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

User avatar
WhoDo
Posts: 4428
Joined: Wed 12 Jul 2006, 01:58
Location: Lake Macquarie NSW Australia

#1503 Post by WhoDo »

tasmod wrote:OK here's what's happening.

Clock skin is compressed png at 90%

Ring is totally uncompressed.

Compare sizes and it correlates.
Great catch, Rob! 8)
[i]Actions speak louder than words ... and they usually work when words don't![/i]
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com

User avatar
WhoDo
Posts: 4428
Joined: Wed 12 Jul 2006, 01:58
Location: Lake Macquarie NSW Australia

#1504 Post by WhoDo »

tasmod wrote:Need to apply compression in clock-skin chooser. How?

Or fixed in 1.9.10
Well, 1.9.10 doesn't use Ring.png as the default any more. It uses Clock-analog.png which resides in /root/.pwidgets/misc directory. Haven't checked to see if Clock-analog.png is inordinately large yet.

EDIT: Just checked and Sigmund has Clock-analog.png as a symlink not a copy of the skin, so 1.9.10 is just repointing the link and not copying. Problem should be solved UNLESS you actually copy something. I'll still look at lzma as a potential source for the problem, too.

Thanks.
Last edited by WhoDo on Thu 12 Mar 2009, 12:13, edited 1 time in total.
[i]Actions speak louder than words ... and they usually work when words don't![/i]
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#1505 Post by 01micko »

@davesurrey

Can you try the latest Pwidgets-1..9-10 (available from main post) with your current config and give a report? Please delete "~/.pwidgets" dir before installing.

Thankyou.
Puppy Linux Blog - contact me for access

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#1506 Post by trio »

Dave
Thank to you too for using pwidgets and glad you like it

Whodo
You're welcome to "hijack" anytime..right guys

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#1507 Post by 01micko »

WhoDo is not the hijacker... I did it last year :twisted:
Puppy Linux Blog - contact me for access

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#1508 Post by tasmod »

Been unable to post, server throwing debug errors at me.

I've updated this pc with 1.9.10 and so far so good, compared to 1.9.9 which somehow my machines did not like.
I think Z quietly improves pw without saying too much.

Moon phase oddity, web feed has moved to its 4th gif associated with full moon. Throws my guesswork out.

I found and lost an rss feed for local time around 100 locations complete with DST applied. Just need to find it again.

R 8)
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

davesurrey
Posts: 1198
Joined: Tue 05 Aug 2008, 18:12
Location: UK

#1509 Post by davesurrey »

Ok I deleted my .pwidgets directory.

Installed pwidgets 1.9.10 pet and the rebooted x server.

Results:
in ~/.pwidgets/clock_skins I have six clocks-skins:
JQ8yell is 77kB
Ring is 6701B
all others are less than 2kB

Confirmed that selecting another clock-skin doesn't change this.

WhoDo suggested to look at clock-analog-png in ~/.pwidgets/misc
It was 77kB.

HTH

Sorry if I have inadvertently put this in the wrong thread.

Again, thanks gang for a really classy project.

Dave

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#1510 Post by trio »

Guys

This forum starting to drive me crazy! On off on off on off ...

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#1511 Post by tasmod »

Looks like resize png needs -quality (value) to add compression, otherwise no compression but expansion to original quality size.

i.e. resize png (somethings) -quality 90%

Rob
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#1512 Post by trio »

rob

Exactly what I meant above, the process of resizing clock skin should try:

resizepng bla.png Clock_analog.png 140 140 80 (something like this)

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#1513 Post by tasmod »

Forum needs a reboot :shock:

Zigbert,

Hope you don't mind. I've created a script executed by a desktop icon that will turn on and off pwidgets plus return background to default, then to pwidgets-background when on.

Needs trial outside of my machine.

Will pet it, hopefully. Not sure about creating icon on desktop?

Rob
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#1514 Post by tasmod »

Here is the pet, not sure how to make it a desktop exec plus icon.

I dragged it out to desktop and assigned usr/share/midi-icons/shutdown48.png
Attachments
WidgetOnOff-0.1.pet
(634 Bytes) Downloaded 222 times
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#1515 Post by zigbert »

The 77kb clock issue
The 77kb is not inside the Pwidgets package and hopefully not inside the Puppy iso. It is built at first run. Whatever clock is chosen is rescaled to 140x140 pixels by 'resizepng'. As some of you pointed out, we can reduce the size by decreasing the quality. I don't see any difference using 100% or 50% or 1% (do you ?). At 50% the size has reached its minimum at 23kb. The other way to do it is to skip resizing, and only make a symlink in /root/.pwidgets/misc/Analog-clock. If keeping the same clock-skins as in the original package we need to resize all the clocks to 140x140. Some skins are scaled down in the pwidgets package, so these must be resized. I don't know exactly what size we would end up with.....

Worse is the fact that /usr/share/background/pwidgets-background is stored without compression because I couldn't figure out that 'blendpics' has such an option. The use of /usr/share/background/pwidgets-background was introduced with Sidebars. Melting wallpaper and sidebar needs (?) to be done in actual size. As a positive side-effect, Wallpaper is always scaled correct (or not scaled), so both rox and conky shows an equal background. This gives us perfect transparency for conky widgets (which was an issue for Pwidgets in earlier days.) But again, - /usr/share/background/pwidgets-background is not a part of Pwidgets package, and shouldn't be inside the Puppy 4.2 iso either.


Sigmund

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#1516 Post by tasmod »

There's a slight problem with making all skins 140 140.

I tried this early days when I first downloaded them, it's centering.

You have to be careful when creating them first time, that the clock arms are central, else they look very odd.


Are you OK with the On-Off pet ?
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#1517 Post by zigbert »

Mr. Lane
I have used some of your code in my Stop/Start function. Hope you not feel offended. :? :D


Sigmund

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#1518 Post by zigbert »

Rob

I have 'improved' (in my opinion :) ) the code a bit. Take a look:
if [ you want to start pwidgets ]; then
mv /usr/sbin/fixwidgets /usr/sbin/fixwidgets.bak
for I in `ps -eo pid,command | grep -wE "conky|xonclock|xli|http://rss.accuweather.com" | awk '{print $1}'`; do kill -9 $I; done
for I in `ps -eo pid,command | grep "mplayer -wid " | awk '{print $1}'`; do kill -9 $I; done
rm /usr/share/backgrounds/Pwidgets_background
TMP="`cat $HOME/.config/wallpaper/bg_img`"
/usr/local/apps/Wallpaper/set_bg "$TMP"
fi
if [ you want to stop Pwidgets ]; then
mv /usr/sbin/fixwidgets.bak /usr/sbin/fixwidgets
fixwidgets -wallpaper_setter
fi
This should remove all traces and processes (I hope).


Sigmund

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#1519 Post by tasmod »

oooo too formal. :D

I 'm flattered, but seeing as part of it is hacked from your fixwidgets, I suppose it's only fair 8)

Do perl scripts actually work with pwidgets(conky). I've tried two now with no results.

I've borrowed someone else's xml parsing perl script, but cannot get anything.

It's a beaut as well. Does football league tables of choice from around world. Includes individual top scorers in league as well.
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#1520 Post by zigbert »

Pearl is only partly supported by Puppy. Barry made a minor pearl package with only the modules that he needed.

football league tables - that's a great idea.
Why not do that in bash ? - Come on, you can do it. 8)


Sigmund

Post Reply