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: अनà¥￾मोदना

#346 Post by trio »

I was using fast laptop, so no need to put any sleep, but we have to accomodate slow ones, so pls do put sleep

I was using a clean desktop, so last time I wasn't aware that icons were gone, I fixed that...

And yes, it's almost "that's all folks"...

One thing, I"d rather put the puppy pin command with enough sleep,just after the xonclock command, so it will only be printed in pwidgets-exec file only when analog clock is chosen...

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

#347 Post by 01micko »

Ok, results of laptop test,

It has old SD ram, half the data rate of DDR so result not too good. Yes clock works, but I am limited to 3 widgets :cry: . Sleep was 7 seconds. Was in JWM. What can we do to improve this? A sleep of 5 is ok, but 7? Too much.

Remember, many people rely on puppy because it runs good on old hardware. Maybe they must put up with 'click on clock', either manual or automatic. Maybe for the retro version with the older kernel we can put this, and the later kernel we put the newer fix. There is always the chance for people to choose either whatever system they run. Sigmund? Trio? What do you think?
Puppy Linux Blog - contact me for access

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

#348 Post by trio »

Update:

No need to kill ROX-Filer...only needs to restart rox puppypin after xonclock is executed....

Fyi, I am using PIII-500 256M of RAM, so it's rather slow........

1. Use original fixwidgets
2. Set xonclock no-winredirect=false
3. func file:

just after:

echo "xonclock --position=$POS_XONCLOCK --offset-v=$OFFSET_Y --offset-h=$OFFSET_X --use-background --skin=$IMAGE &" >> $HOME/.pwidgets/tmp/pwidgets-exec

you put (I cannot put line number, already so many commented out (#) lines:
echo "sleep 3" >> $HOME/.pwidgets/tmp/pwidgets-exec
echo "/usr/sbin/fixPuppyPin /root/Choices/ROX-Filer/PuppyPin" >> $HOME/.pwidgets/tmp/pwidgets-exec
echo "rox -p /root/Choices/ROX-Filer/PuppyPin" >> $HOME/.pwidgets/tmp/pwidgets-exec

That will make the re-start of rox puppy only when analog-clock is used

Micko, I can even do it with no sleep/sleep 0 with this computer...you should try this with you slow lappy

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

#349 Post by zigbert »

trio

I can't get this to work. Would you please post your fixwidgets, func and xonclockrc. I have to deal with this tomorrow.

Impressive approach :)
Sigmund

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

#350 Post by trio »

Zigbert:

Here they are....., teacher

be aware, I don't put any sleep in my func..you might want to put sleep like my previous post

Thanx
Attachments
func_fixwidgets_xonclockrc.tar.gz
(3.88 KiB) Downloaded 227 times

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

#351 Post by 01micko »

Looks like :wink:
a good idea trio, I will try later, must go to work now!

Cheers
Puppy Linux Blog - contact me for access

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

#352 Post by trio »

Ok, been playing around with sleep value,

- On slower computer, definitely we have to put longer sleep
- On fast cumputer with frugal/usb install we still need enough sleep (I need only sleep 1)
- Full install puppy is very fast, no need sleep even with a rather/medium slow computer
- With my last hack(see previous post on this page), when rox puppypin only executed right after xonclock is created, should make the execution of other widgets no longer related to rox puppypin restart

echo "sleep 3" >> $HOME/.pwidgets/tmp/pwidgets-exec
echo "/usr/sbin/fixPuppyPin /root/Choices/ROX-Filer/PuppyPin" >> $HOME/.pwidgets/tmp/pwidgets-exec
echo "rox -p /root/Choices/ROX-Filer/PuppyPin" >> $HOME/.pwidgets/tmp/pwidgets-exec

I think 3 is quite safe for the sleep value.....

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

#353 Post by zigbert »

No joy

1.) I installed your .xonclock, func, and fixwidgets.
2.) Set sleep value to 3
3.) Run Pwidgets

The screenshot show my result.

I use Puppy 4.12 and jwm.

Is it just me or ..... :? :oops: :)
Sigmund

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

#354 Post by trio »

Zigbert,

silly question:

Did you run pwidgets from the GUI? since there will be printed no commands in pwidgets-exec if otherwise....

Simple thing to test is just copy and paste the three lines under xonclock command in pwidgets-exec..and run fixwidgets...:

xonclock --position=$POS_XONCLOCK --offset-v=$OFFSET_Y --offset-h=$OFFSET_X --use-background --skin=/root/.pwidgets/misc/Clock-analog.png &

sleep 3
/usr/sbin/fixPuppyPin /root/Choices/ROX-Filer/PuppyPin
rox -p /root/Choices/ROX-Filer/PuppyPin

I already did this several times, with several puppies on several computers...they all work

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

#355 Post by trio »

Zigbert,

My pwidgets-exec looks like this:

xonclock --position=TOP-RIGHT --offset-v=40 --offset-h=-40 --use-background --skin=/root/.pwidgets/misc/Clock-analog.png &
sleep 3
/usr/sbin/fixPuppyPin /root/Choices/ROX-Filer/PuppyPin
rox -p /root/Choices/ROX-Filer/PuppyPin
conky -a top_right -x 40 -y 195 --config=/root/.pwidgets/configs/Puppyspace &
conky -a top_right -x 20 -y 255 --config=/root/.pwidgets/configs/Calender &
xli -geometry +1100+395 /root/.pwidgets/misc/frame.jpg &
sleep 1 ; xli -geometry +1107+402 -delay 5 -goto /root/.pwidgets/misc/scaledimages/000_000.jpg /root/.pwidgets/misc/scaledimages/*.jpg &

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

#356 Post by zigbert »

Sorry, I forgot to attach the screenshot

It would be great to see this work.

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

#357 Post by trio »

Zigbert:

The screenshot explains it!
I know why it didn't work...because I have xonclock on top of the list, you don't...so I have tested the previous way..that is to kill ROX-Filer and it works...pwidgets-exec looks like this:

conky -a top_right -x 40 -y 40 --config=/root/.pwidgets/configs/Puppylinux &
xonclock --position=TOP-RIGHT --offset-v=90 --offset-h=-40 --use-background --skin=/root/.pwidgets/misc/Clock-analog.png &
killall ROX-Filer
sleep 1
/usr/sbin/fixPuppyPin /root/Choices/ROX-Filer/PuppyPin
rox -p /root/Choices/ROX-Filer/PuppyPin
conky -a top_right -x 40 -y 245 --config=/root/.pwidgets/configs/Puppyspace &
conky -a top_right -x 20 -y 305 --config=/root/.pwidgets/configs/Calender &
xli -geometry +1100+445 /root/.pwidgets/misc/frame.jpg &
sleep 1 ; xli -geometry +1107+452 -delay 5 -goto /root/.pwidgets/misc/scaledimages/000_000.jpg /root/.pwidgets/misc/scaledimages/*.jpg &

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

#358 Post by trio »

Zigbert:

Indeed we have to killall ROX-Filer before conky is executed,especially when xonclock is number 3 or more on the list, you may add the killall in the func:

#build exec-file
echo -e "\c" > $HOME/.pwidgets/tmp/pwidgets-exec
echo "killall ROX-Filer" >> $HOME/.pwidgets/tmp/pwidgets-exec
while read TREE_WIDGET; do

HEIGHT="`grep HEIGHT= $HOME/.pwidgets/configs/$TREE_WIDGET | cut -d '=' -f 2`"
case "$TREE_WIDGET" in
"Clock-analog")
OFFSET_X=`grep OFFSET_X= $HOME/.pwidgets/configs/$TREE_WIDGET | cut -d '=' -f 2`
IMAGE="`grep IMAGE= $HOME/.pwidgets/configs/$TREE_WIDGET | cut -d '=' -f 2`"
echo "xonclock --position=$POS_XONCLOCK --offset-v=$OFFSET_Y --offset-h=$OFFSET_X --use-background --skin=$IMAGE &" >> $HOME/.pwidgets/tmp/pwidgets-exec
echo "sleep 3" >> $HOME/.pwidgets/tmp/pwidgets-exec
echo "/usr/sbin/fixPuppyPin /root/Choices/ROX-Filer/PuppyPin" >> $HOME/.pwidgets/tmp/pwidgets-exec
echo "rox -p /root/Choices/ROX-Filer/PuppyPin" >> $HOME/.pwidgets/tmp/pwidgets-exec

so the pwidgets-exec will be like this:

killall ROX-Filer
conky -a top_right -x 40 -y 40 --config=/root/.pwidgets/configs/Puppylinux &
conky -a top_right -x 40 -y 90 --config=/root/.pwidgets/configs/Puppyspace &
conky -a top_right -x 20 -y 150 --config=/root/.pwidgets/configs/Clock-digital &
xonclock --position=TOP-RIGHT --offset-v=230 --offset-h=-40 --use-background --skin=/root/.pwidgets/misc/Clock-analog.png &
sleep 3
/usr/sbin/fixPuppyPin /root/Choices/ROX-Filer/PuppyPin
rox -p /root/Choices/ROX-Filer/PuppyPin
conky -a top_right -x 20 -y 385 --config=/root/.pwidgets/configs/Calender &
xli -geometry +1100+525 /root/.pwidgets/misc/frame.jpg &
sleep 1 ; xli -geometry +1107+532 -delay 5 -goto /root/.pwidgets/misc/scaledimages/000_000.jpg /root/.pwidgets/misc/scaledimages/*.jpg &

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

#359 Post by trio »

analog clock at the very bottom
Attachments
clock-fix.jpg
(85.37 KiB) Downloaded 257 times

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

#360 Post by zigbert »

Thank you trio, that helped, but not enough :)

Have you tested it in JWM?


Sigmund

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

#361 Post by trio »

Hmm,

I don't have any standard puppy right now, but I don't think it's wm related. Micko did try with JWM, and it worked (he has the xonclock on top of list, I supposed)...

I think I will try to put the killall ROX-Filer in the fixwidgets before the xli command, and delete that line from func/pwidgets-exec

I'll try and let you know, and maybe you can try there also Sigmund...

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

#362 Post by trio »

Sigmund,

I was right, not WM related, I tried in JWM (see the screenshot below)

but you may try in fixwidgets:
TMP="`cat /root/.config/wallpaper/bg_img`"
cp "$TMP" /root/Choices/ROX-background.jpg
killall ROX-Filer
xli -fillscreen -onroot /root/Choices/ROX-background.jpg

and pwidgets-exec/func:
conky -a top_right -x 30 -y 35 --config=/root/.pwidgets/configs/Puppyspace &
conky -a top_right -x 20 -y 115 --config=/root/.pwidgets/configs/Calender &
conky -a top_right -x 40 -y 265 --config=/root/.pwidgets/configs/CPU-Ram-bar &
xonclock --position=TOP-RIGHT --offset-v=335 --offset-h=-40 --use-background --skin=/root/.pwidgets/misc/Clock-analog.png &
sleep 3
/usr/sbin/fixPuppyPin /root/Choices/ROX-Filer/PuppyPin
rox -p /root/Choices/ROX-Filer/PuppyPin
conky -a top_right -x 20 -y 490 --config=/root/.pwidgets/configs/Downloadspeed &

So we killall ROX in fixwidgets, not in pwidgets exec, anyway both ways works for me in JWM and Icewm
Attachments
still_works_JWM.jpg
(154.9 KiB) Downloaded 367 times

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

#363 Post by trio »

and maybe put more sleep, I don't know your computer specs Zigbert.......

And also I am thinking that you maybe put sleep value in .xonclockrc higher than the sleep value before the rox puppypin restart ? better put zero in the .xonclockrc....

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

#364 Post by trio »

Zigbert:

Ok, made a new progress:
It's all about layers, better I tell in details

1. Doesn't really matter if you killall ROX-Filer or not, you may put in fixwidgets, or func/pwidgets-exec or not
2. Two Most important things:
a. Sleep value in xonclockrc must be lower than sleep value (3 or more) before restart of rox puppypin
b. set all of the widgets config: own_window_type desktop
3. func/ to make pwidgets-exec:

conky -a top_right -x 30 -y 35 --config=/root/.pwidgets/configs/Puppyspace &
conky -a top_right -x 20 -y 115 --config=/root/.pwidgets/configs/Calender &
xonclock --position=TOP-RIGHT --offset-v=265 --offset-h=-40 --use-background --skin=/root/.pwidgets/misc/Clock-analog.png &
sleep 3
/usr/sbin/fixPuppyPin /root/Choices/ROX-Filer/PuppyPin
rox -p /root/Choices/ROX-Filer/PuppyPin
conky -a top_right -x 40 -y 420 --config=/root/.pwidgets/configs/CPU-Ram-bar &
conky -a top_right -x 20 -y 490 --config=/root/.pwidgets/configs/Downloadspeed &
conky -a top_right -x 20 -y 610 --config=/root/.pwidgets/configs/Calender &

4. xonclockrc no-winredirect=false

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

#365 Post by zigbert »

I tried it in the 4.2 alpha, and it works ...... Hurray

I have no idea why it doesn't work on my main system. We get more testers at next release, so we'll see if it's only me that has got a weird system because of too much hacking, or ..... But now the only thing happening is that clock doesn't show up, and that's not a big deal in a alpha.

I also tried xvesa instead of xorg, - same result.

Why is 'own_window_type desktop' better than 'own_window_type override'?

if we can skip killall ROX-filer trio can give us a 100% solution. With killall, someone will complain about the filebrowser get closed.

NOW, let's focus on the Pwidgets 0.5.
- The Pweather font will be included, but no background. Trio, if you are satisfied with your weather widget, please make a pet of it and I will either use yours, or uploaded it as an alternative in the main post.
- Let's hope Mick succeed with a logo widget.
- If someone feels for it, rss widget should be doable.


Sigmund

Post Reply