pWidgets 2.5.8

Window managers, icon programs, widgets, etc.
Message
Author
User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#256 Post by trio »

Micko

No prob. I am glad to help out. And I started from zero. Imagine! Now I am able to hack other's codes...even make one or two! How wonderful linux is. One input, please rename MONOFONT.TTF to monofont.ttf, some computers, like mine, cannot read the font. Also, I may have a solution of the clock moves to the left when clicked. Will try later...

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#257 Post by MU »

concerning the widescreen issue:
scale2png scales pictures in a fixed ratio, because it was made as utility to create thumbnails for websites.
So the width of the preview might change, depending on the aspect ration of the picture.
If you force it to use always "100" as height, the width may vary, it may be 200 or 240, depending on the original.
If you give a width of 200, the height might vary, in the deskicons this had the effect, that parts were not visible in the screenshot widget.
Solution:
use instead "resizepng".
Here you may give arguments, that will be taken exactly.
If you say:
resizepng test.jpg out.png 200 100 80, then the result always will be 200x100 pixel.

It is part of my deskicons, I attach binary+source.
Compiled in Puppy 4.12; to compile a new binay for other systems, simply run "make".
Mark
Attachments
resizepng.tar.gz
(2.78 KiB) Downloaded 324 times
Last edited by MU on Fri 23 Jan 2009, 03:11, edited 1 time in total.
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

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

#258 Post by 01micko »

So Mark and trio I am thinking we can easily force the rezise of the clock if somone inadvertently chooses the wrong size? That might be a winner. Is resizepng included in Scale2pics Mark? If so, we already have it because our slide show uses Scale2pics, we have the full thing installed as part of Pwidgets-0.4 package. Anyway if not we have it now!

Trio, does it give you some ideas???? :wink:

Mick
Puppy Linux Blog - contact me for access

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

#259 Post by trio »

Micko,

1. The thing that I tried to fix the clock not to move to the left when clicked failed.

2. It is doable to force the size of the clock, but for what? If you use "clickonclock" fix rather then the "movewindow" fix......no need for that..

That's my opinion, you :?:

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

#260 Post by 01micko »

trio

The most stable fix for now is the 'clickonclock'. I have always been of the opinion that this is just a workaround and not a fix. You have proven it is posiible to show clock correctly without the click. This, in the end, will be the better solution.

Like I said, "a developers job is never finished"!

What do you think?

Mick
Puppy Linux Blog - contact me for access

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

#261 Post by 01micko »

Mark

I keep getting 'segmentation fault'. Syntax?

I typed, (with terminal open in current dir)

Code: Select all

resizepng 000_024.JPG new.png 200 150
and various other things and got that error.

Mick
Puppy Linux Blog - contact me for access

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

#262 Post by trio »

Micko,

Maybe I can do something about the clock skin but the easiest and more logical way is to put a warning text message in /root/.pwidgtes/misc/ , for ex. warning.txt, that will consist of warnings such as:

- Clock skin has to be the size of 140x140 pixels
- frame has to be the size of .....x..... pixels
- bla bla

Because not only the clock skin that will have a problem with sizes, also the slideshow frame, maybe the weatherbg, etc (if more widgets with background to be included)

Again, that's my opinion

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#263 Post by MU »

01micko wrote:Mark

I keep getting 'segmentation fault'. Syntax?

I typed, (with terminal open in current dir)

Code: Select all

resizepng 000_024.JPG new.png 200 150
and various other things and got that error.

Mick
oh sorry, you must add the quality, too:
resizepng 000_024.JPG new.png 200 150 80

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

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

#264 Post by 01micko »

trio

Entirely up to you mate. I love your work but maybe you need a rest! You have been very busy trying to fix this and have succeeded.

I may try to resize the clock automatically from a different perspective through a separate script or config. I'll look into it.

Sometimes it is nice do do something completely different. I have many side projects, which at times, makes focus on one difficult.

Like they say, 'Rome wasn't built in a day'! :lol:

Regards,

Mick
Puppy Linux Blog - contact me for access

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

#265 Post by trio »

I am thinking of that maybe we can use this thread, besides a forum for fixing and updating the pwidgets, but also as a forum to accomodate more people to create widgets in .pet, more like the yahoo widgets or google gadgets thing.....so, on the first page, Zigbert can always update "new widgets" in a "additional widgets" list .........when already tested by him that is.......

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

#266 Post by 01micko »

trio wrote:I am thinking of that maybe we can use this thread, besides a forum for fixing and updating the pwidgets, but also as a forum to accomodate more people to create widgets in .pet, more like the yahoo widgets or google gadgets thing.....so, on the first page, Zigbert can always update "new widgets" in a "additional widgets" list .........when already tested by him that is.......
I think that is a cool idea. There is a host of different widgets that could be adapted. Afterall Pwidgets is really a way to manage the widgets using conky as the engine.
Puppy Linux Blog - contact me for access

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

#267 Post by trio »

Hi All,

I just modified the weather background to have transparency...yes..transparency...

Below is the pet package, as noted before, you"ll need to change the weather location code again, as the pet will make your local to be Jakarta :D
Attachments
weatherbg_transparent.jpg
(18.13 KiB) Downloaded 809 times
weatherbg_trn.pet
(4.17 KiB) Downloaded 324 times

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

#268 Post by trio »

weather_bg transparent on a red wallpaper

Edit, made a new pet package....smaller in size
Attachments
weatherbg_trn_new.pet
(2.06 KiB) Downloaded 318 times
weatherbgtransred.jpg
(18.36 KiB) Downloaded 823 times

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

#269 Post by trio »

Hi, sorry, all the weatherbg.pet on page 17 and 18 are for those of you who uses "movewindow clock fix" for those of you who uses the click on clock fix, please edit usr/sbin/fixwidgets and remove the # on repected lines....I'll upload the pet for click on clock later....

edit: the pet below...warning, do not use the func file with windowmove xonclock fix, use the func file with slide fix only
Attachments
weatherbg_trn_clickclock.pet
(2.15 KiB) Downloaded 290 times

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

#270 Post by 01micko »

Trio

I have thoroughly tested your fixes for 'clickonclock' and 'slide'

It is done now and all I did was increase sleep times for slower systems for the clock.

I had an issue where the slideshow would not appear. It was running, but behind the frame!
I added

Code: Select all

 echo  "sleep 1" >> $HOME/.pwidgets/tmp/pwidgets-exec
immediately before the slideshow and it worked! This is a reasonably fast system for puppy, athlon 2100+. 512ram but it needed that sleep. I also changed the dummy file in scaled images to '000_000.jpg' to try and avoid any conflict with digital camera naming of files.
I will pet it up tonight and pack it off to Whodo.

Again, many thanks for your help, 'teacher' will surely reward you!

Mick
Puppy Linux Blog - contact me for access

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

#271 Post by trio »

Micko,

Yes, I never mentioned it to you, but I had the same problem and put sleep value just as you did...I thought that it was only my slow computer...but actually it will happen to all slow computer...better put the sleep then Mick...

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

#272 Post by 01micko »

disaster!
Last edited by 01micko on Sat 24 Jan 2009, 16:13, edited 1 time in total.
Puppy Linux Blog - contact me for access

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

#273 Post by trio »

One of the most wonderful thing about puppy is we can utilize old laptops...so for those of us who has to type acpi=force in the grub menu.lst ...cannot use the standard pwidgets battery status..so I modified one for you who wants it
Attachments
battery_acpi_force.pet
(1.33 KiB) Downloaded 392 times
batteryacpiforce.jpg
(17.16 KiB) Downloaded 867 times

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

#274 Post by 01micko »

Grrrrrrrrrrrrr

The .pet I uploaded is buggy! I was testing cups and made some wrong settings and couldn't get rid of them so I did 4.2alpha as a "pfix=ram" boot. Ok saved everything elsewhere, no probs, installed pwidgets-fixes and the slideshow doesn't work! It is not building the images in /scaledimages. It was before, must be something trivial.
Puppy Linux Blog - contact me for access

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

#275 Post by trio »

If I may Micko..try this pet
Attachments
pwidgets-fixes.pet
(3.19 KiB) Downloaded 343 times

Post Reply