pWidgets 2.5.8

Window managers, icon programs, widgets, etc.
Message
Author
User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#46 Post by 01micko »

ttuuxxx wrote
Also since your using icewm, I think you are, Smile Just edit
/root/.icewm/startup (hidden folder)
and follow the examples in it
No need, I don't think, works fine with just the symlink to /root/Startup in icewm :wink:

EDIT: BTW, works just fine in JWM also :wink:
Puppy Linux Blog - contact me for access

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

#47 Post by 01micko »

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,

Code: Select all

/root/wakeclock.sh
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 :cry:

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" &
and

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

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

#48 Post by zigbert »

This sounds great!


Sigmund

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

#49 Post by zigbert »

Works perfect!!!!
Added to Pwidgets 0.2


Thanks for great work!
Sigmund

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

#50 Post by 01micko »

zigbert wrote:Works perfect!!!!
Added to Pwidgets 0.2


Thanks for great work!
Sigmund
Thankyou Zigbert! :D Made me get the 'grey matter' working.
Puppy Linux Blog - contact me for access

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

#51 Post by 01micko »

Still buggy though. I'll reupload the 'wakeclock.sh' file with increased distance on the cursor movement parameter because if you use Pwidgets GUI and leave the cursor on 'Apply' the deviation is not enough to find the desktop, which seems to be necessary. Still other bugs too, a little instability, may need to end the process somehow, (I don't know how). I thought being just a short movement and a single click that the process would die a natural death. See how we go :?

EDIT: Changed the sleep value from 5 to 3 and delayed the click by 1 second, things seem more stable, BTW,most of the instability is in Icewm, Jwm has been playing nice, :)
Puppy Linux Blog - contact me for access

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#52 Post by ttuuxxx »

Ok guys I finally downloaded Pwidgets and had a play for a few minutes, Does anyone know how to get the grayish dark background removed from the docklet? I just want it to be transparent . Also when I use the analog clock I have to click on the space where it should be, to start it/show it, shouldn't it be automatic once Its set?
Thanks for your help
ttuuxxx
Attachments
iceWM+conky+Pwidgets.png
(145.74 KiB) Downloaded 2206 times
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#53 Post by ttuuxxx »

I didn't touch anything it took about 15Mins and now its transparent on its own, strange. :shock:
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

big_bass
Posts: 1740
Joined: Mon 13 Aug 2007, 12:21

#54 Post by big_bass »

ttuuxxx wrote:I didn't touch anything it took about 15Mins and now its transparent on its own, strange. :shock:
ttuuxxx

there is a voice activated function built in :D

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#55 Post by ttuuxxx »

:idea: Ya I think it came on when I was using "The Clapper"
"Clap-on, Clap-off, The Clapper" :wink:
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

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

#56 Post by zigbert »

ttuuxxx
I have not tested it in icewm. It seems that icewm renders desktop slower than jwm. This prevent widgets to use the correct background when making itself a fake transparent background. Since conky updates the widgets after a given time, they go transparent at next update.
Please try to increase the sleep value in /usr/sbin/fixwidgets.

The analog clock issue is almost fixed (by 01micko), and will be in the next release.


Sigmund

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

#57 Post by 01micko »

big_bass wrote:
ttuuxxx wrote:I didn't touch anything it took about 15Mins and now its transparent on its own, strange. :shock:
ttuuxxx

there is a voice activated function built in :D
@big_bass... LMAO!

ttuuxxx: read my script, that is what the clock thingy was all about with the click problem.

Rendering of the analog clock in Icewm may (or may not) be due to time settings of your tray apps. I have it working beautifully in Icewm (one of your themes ttuuxxx). Perhaps it is the size is as to your settings of desktop size. Zigbert mentioned about this in the original post, and also that his testing is in jwm. I have been testing, (and working hard at it) in Icewm and jwm with the Analog-clock. Hope this helps

EDIT: ttuuxxx, Zigbert has not included my fix for the analog-clock yet in the main post because it is still at Pwidgets-0.1. Try my fix further back in this thread. Give me feedback please. :wink:
Puppy Linux Blog - contact me for access

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

#58 Post by 01micko »

ttuuxxx wrote::idea: Ya I think it came on when I was using "The Clapper"
"Clap-on, Clap-off, The Clapper" :wink:
ttuuxxx
Homer: *clap, clap* (nothing happens), *clap, clap* (still nothing happens)
Marge: "We don't have a clapper."
Homer: *lamp goes sailing through window*

It is not recommended to throw your PC out the window (UNLESS it has windows, lol) if the clapping does not work!
Puppy Linux Blog - contact me for access

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#59 Post by ttuuxxx »

Hi guys here's a update for the wallpaper setter. once you set the wallpaper click the "Close" button. when the close button is pressed it will restart Pwidgets :) If you don't click the "Close" button, nothing will happen.
ttuuxxx
Attachments
Wallpaper-Setter.pet
(1.74 KiB) Downloaded 802 times
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#60 Post by ttuuxxx »

This is another Version that doesn't restart Pwidgets on exit, to use this it has a button in the wallpapper setter called Pwidgets Restart"
ttuuxxx

Heres a picture of the menu only, I didn't want to give away the whole theme, I'm customising :wink:
Attachments
menu-only.png
(10.7 KiB) Downloaded 2090 times
Wallpaper-Setter-v2.pet
(1.77 KiB) Downloaded 849 times
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

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

#61 Post by zigbert »

I have already made the fix for the wallpaper setter, but I made the 'apply' button re-render the widgets. To me it feels more logical to 'apply' the changes rather than 'close' the window.
I'll make a note in the main post.

code start from line 238 in /usr/local/apps/wallpaper/AppRun. I have added the 2 lines in the middle.

Code: Select all

     <button>
      <label>$LOC_APPLY</label>
      <input file stock=\"gtk-apply\"></input>
      <action>$APPDIR/slideshow -stop</action>
      <action>$APPDIR/set_bg \"\$IMAGE\"</action>
      <action>echo \"\$IMAGE\" > \$HOME/.config/wallpaper/bg_img</action>

<action>fixwidgets</action>
<action>cat /root/.config/tmp/bg_img</action>

      <action type=\"refresh\">TEXT</action>
     </button>

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#62 Post by ttuuxxx »

If you look back at my post, I made 2 versions
version 1 you click the "close" button and it restarts Pwidgets.
Version I added a button "Pwidgets Restart", you click that button and it restarts Pwidgets, Basically I think its the same way you did it :)
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

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

#63 Post by 01micko »

Zigbert
01micko wrote
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 Rolling Eyes ) 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!
Yes, clock appears like magic.....
Hmmmmm, this fix is buggy if you move the cursor directly after hitting 'apply'. Problem is that if the fake mouse click happens over the open window near the edge next time you move the cursor the window resizes! :( Or, the cursor may end up over an icon and initiate that process! :evil:
Ok, what I need to do is find a vacant piece of real estate on the desktop and make sure the mouse click is generated there and nowhere else.
I cand send the cursor to an extreme edge or corner (I'm thinking top left) and make the click there. To make it look professional though I should send the cursor back to the centre of the screen. Will work on this and reupload a new script.
After I get this fix right I'll take a closer look at xonclock to find the bug and make a permanent fix.
Puppy Linux Blog - contact me for access

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

#64 Post by zigbert »

I will (when sparetime comes my way) rework the Pwidgets infrastructure to be more flexible to user-created mods and created widgets. Your fix is VERY welcome.

There is no hurry! If we could make a Pwidgets upgrade during Christmas it would be great.

Sigmund

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

#65 Post by 01micko »

zigbert wrote:I will (when sparetime comes my way) rework the Pwidgets infrastructure to be more flexible to user-created mods and created widgets. Your fix is VERY welcome.

There is no hurry! If we could make a Pwidgets upgrade during Christmas it would be great.

Sigmund
No worries, I'll try to fine tune my fix, no pressure is good! I have plenty of time over Christmas and may even find time for a slide show widget. That would be cool, but I fear it will be too large to include as default. That is where the work you are doing on the infrastructure comes in.
Looking forward to it! :wink:
Puppy Linux Blog - contact me for access

Post Reply