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

#341 Post by trio »

I do it another way, but the same logic

fixwidgets:

TMP="`cat /root/.config/wallpaper/bg_img`"
cp "$TMP" /root/Choices/ROX-background.jpg
xli -fillscreen -onroot /root/Choices/ROX-background.jpg
killall ROX-Filer

hack func file on the bottom:

echo "/usr/sbin/fixPuppyPin /root/Choices/ROX-Filer/PuppyPin

rox -p /root/Choices/ROX-Filer/PuppyPin" >>/root/.pwidgets/pwidgets-exec"

to create (also at the bottom) of pwidgets-exec file:

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

That means we kill the the icons (I thought it was the background that covers xonclock, but looks like the desktop icons do it), then we start xonclock, conky and everything, after that we set the icons again...

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

#342 Post by trio »

Guys,

Yup, this is it:

func file:
put these in line 123 & 124
echo "/usr/sbin/fixPuppyPin /root/Choices/ROX-Filer/PuppyPin" >> ~/.pwidgets/tmp/pwidgets-exec
echo "rox -p /root/Choices/ROX-Filer/PuppyPin" >> ~/.pwidgets/tmp/pwidgets-exec

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

so pwidgets-exec file will be like this:
xonclock --position=TOP-RIGHT --offset-v=40 --offset-h=-40 --use-background --skin=/root/.pwidgets/misc/Clock-analog.png &
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 &
conky -a top_right -x 40 -y 520 --config=/root/.pwidgets/configs/CPU-Ram-bar &
conky -a top_right -x 40 -y 580 --config=/root/.pwidgets/configs/Battery_acpiforce &
/usr/sbin/fixPuppyPin /root/Choices/ROX-Filer/PuppyPin
rox -p /root/Choices/ROX-Filer/PuppyPin

don't forget to set the no-winredirect=false

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

#343 Post by 01micko »

Ok, not quite, clock hidden state. Maybe a sleep for the that part to allow xonclock to load up. I'll try sleep 5. Oh, yes, printed as you said in pwidgets-exec. I'll try again.

BTW, my internet has been pathetically slow today, took 4 hours to get alpha3. Like dialup!


UPDATE!!!!! WWWOOOOOOOHHHHOOOOOO! IT WORKED! :D :D :D
Puppy Linux Blog - contact me for access

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

#344 Post by 01micko »

Code: Select all

*)
				echo "conky -a $POS_CONKY -x $OFFSET_X -y $OFFSET_Y --config=$HOME/.pwidgets/configs/$TREE_WIDGET &" >> $HOME/.pwidgets/tmp/pwidgets-exec
				echo "sleep 5 ; /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
				;;
This shows where I put it, it works, do you think it is ok?
Puppy Linux Blog - contact me for access

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

#345 Post by 01micko »

Trio,

It worked for me in JWM with the sleep. No work without it.

Sigmund

It worked after an X restart. All my options are in ,xonclockrc, except --position of course!

You are a little genius trio, and now, that might nearly be all folks!!! :lol:

I did a reboot and the best I can get the sleep down to is 3, I even tried 2.5 and it was almost there, just a flicker. Now I will go test on my Lappy, it is slower, but still fast by puppy standards, 1066celeron, 512 ram.

BTW, in alhpa3 here, so I will boot that on the laptop too.
Puppy Linux Blog - contact me for access

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 229 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

Post Reply