pWidgets 2.5.8
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...
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...
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
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
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!
![Very Happy :D](./images/smilies/icon_biggrin.gif)
BTW, my internet has been pathetically slow today, took 4 hours to get alpha3. Like dialup!
UPDATE!!!!! WWWOOOOOOOHHHHOOOOOO! IT WORKED!
![Very Happy :D](./images/smilies/icon_biggrin.gif)
![Very Happy :D](./images/smilies/icon_biggrin.gif)
![Very Happy :D](./images/smilies/icon_biggrin.gif)
Puppy Linux Blog - contact me for access
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
;;
Puppy Linux Blog - contact me for access
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!!!![Laughing :lol:](./images/smilies/icon_lol.gif)
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.
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!!!
![Laughing :lol:](./images/smilies/icon_lol.gif)
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
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...
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...
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
. 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?
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
![Crying or Very sad :cry:](./images/smilies/icon_cry.gif)
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
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
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
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
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 230 times
Looks like
a good idea trio, I will try later, must go to work now!
Cheers
![Wink :wink:](./images/smilies/icon_wink.gif)
a good idea trio, I will try later, must go to work now!
Cheers
Puppy Linux Blog - contact me for access
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.....
- 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.....
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
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
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 &
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 &
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 &
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 &
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 &
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 &