Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 25 Apr 2014, 01:57
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
WallRefresh-1.4
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 3 [37 Posts]   Goto page: Previous 1, 2, 3 Next
Author Message
RSH


Joined: 05 Sep 2011
Posts: 2036
Location: Germany

PostPosted: Sat 10 Mar 2012, 10:30    Post subject:  

Works fine in LazY Puppy now! Very Happy

Any suggestions how to automatically refresh "wbar" after wallpaper has changed? Crying or Very sad

This would be very nice and useful! Very Happy

Good work, so far. Very Happy

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2036
Location: Germany

PostPosted: Sat 10 Mar 2012, 11:25    Post subject: Wallrefresh & Wbar-Refresh
Subject description: Use this script to refresh wbar desk top dock
 

Hi, rhadon.

I have eamined the scripts of wbar and found a solution to get also wbar refreshed. Very Happy

Please use this script for your wallrefresh-script.
Code:
#!/bin/sh
#------------------------------------------------------------------------------
# refresh wbar desktop dock
# 2012-03-10 RSH (@ murga-forum)
#------------------------------------------------------------------------------
WBSTARTUP=$HOME/Startup/wstart
killall wbar 2&> /dev/null
if [ -e $WBSTARTUP ] ; then
   exec $HOME/Startup/wstart 2> /dev/null
fi
exit 0


Do not insert this into your script (killall wbar... will kill also wallrefresh). Make a script file and call it from inside wallrefresh - runs, doesn't kill wallrefresh and works while the last 11 minutes perfectly. Very Happy

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
rhadon


Joined: 27 Mar 2008
Posts: 1291
Location: Germany

PostPosted: Sat 10 Mar 2012, 13:12    Post subject:  

Thanks for feedback, RSH.

Well, telling you that it's a problem of wbar, isn't really helpful.

I installed it just now for the first time. Right klick on wbar refreshes the background, but that's not automatic. Also 'Reload' button from the GUI does it. Then I tried some options from command line, but get mostly an error about a missing font.

Please try wbar from commanline. If there is an option which works for you and refreshes the background, I could integrate a request in wallrefresh-config to be executed after every refresh.

Wbar looks very nice, but my first thought was, it's pity that there is no autohide function (or I've overseen it). I'll play a little bit more with it, maybe I can give you later a better answer.

~Rolf

_________________
Ich verwende "frugal", und das ist gut so. Wink
Raspberry Pi without Puppy? No, thanks.
Back to top
View user's profile Send private message 
pemasu


Joined: 08 Jul 2009
Posts: 5459
Location: Finland

PostPosted: Sun 11 Mar 2012, 06:59    Post subject:  

Wallrefresh works great and it has even finnish webcam url preconfigured Very Happy
Only one humble notification. Would it be better to locate wallrefresh folder to the /usr/local.....where all the other Puppy apps are located. /root could be better to be place for different kind configuration stuff and personal stuff inside preconfigured folders.
Back to top
View user's profile Send private message 
rhadon


Joined: 27 Mar 2008
Posts: 1291
Location: Germany

PostPosted: Sun 11 Mar 2012, 08:20    Post subject:  

Thanks for your kind feedback pemasu,

when I created this program, my intention was to have all scripts together in one folder. At this time it wasn't important for me where this was.

I think you are right, /usr/local or /usr/local/apps seems to be a better place. I'll do it.

btw., next version will have an additional entry where you can run a script after each refresh (e.g. if another application like wbar needs a separate refresh).

Greetings to suomi,
Rolf

Edit: I'm unsure, what do you think is best? /usr/local, /usr/local/apps/, /usr/share/ ? Everywhere are applications. I can't see any system.

_________________
Ich verwende "frugal", und das ist gut so. Wink
Raspberry Pi without Puppy? No, thanks.
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 882

PostPosted: Sun 11 Mar 2012, 12:54    Post subject:  

Hi rhadon.

Good to see Wallrefresh still evolves. Smile
rhadon wrote:
I'm unsure, what do you think is best? /usr/local, /usr/local/apps/, /usr/share/ ? Everywhere are applications. I can't see any system.

I can't see any specific pattern also Laughing
But personally I would choose /usr/local, as the /usr/local/apps seems to be more suitable for 'right-click' apps.

-----------------------------------------------------------------------

This site contains a lot of webcams (as 'still pictures'):
http://www.opentopia.com/hiddencam.php

BTW, I cannot find any kind of real 'space view' (eg. view from Hubble's) or at least an oceanarium view.
All that I've found are views of telescopes (not from them) or livestreams that cannot be imported to Wallrefresh.
Has anyone had better luck?

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
pemasu


Joined: 08 Jul 2009
Posts: 5459
Location: Finland

PostPosted: Sun 11 Mar 2012, 13:11    Post subject:  

Yes.../usr/local is quite used location for Puppy applications. /usr/local/apps is Rox location for creating Rox Right clicks and it also has Rox-Filer with needed stuff. It wouldnt be good idea to put Puppy app there.
Back to top
View user's profile Send private message 
rhadon


Joined: 27 Mar 2008
Posts: 1291
Location: Germany

PostPosted: Sun 11 Mar 2012, 16:33    Post subject:  

New Wallrefresh-1.2, see 1st post please.

- I've added an additional entry which will be executed after each refresh.
If another running application needs to be refreshed separately, here is the place.
For an example, I've added a small script for refreshing wbar (thanks to RSH). The corresponding entry would be "/usr/local/wallrefresh/wbar-refresh" (without quotes).

- Also the path has changed from /root/ to /usr/local. The pictures are now in an separate folder.

Next on my ToDo list:
- internationalisation
- maybe something like downloading more often (if new picture is available) and saving each picture, but refreshing not so often. So e.g. a slideshow could be build (idea from RSH).

If no new faults (fingers crossed), I'm open for suggestions.

Btw., if you are using Pwidgets and find the Pwidget messages about Syncing annoying, you can comment out the line
Code:
/usr/local/pwidgets/box_splash &
in /usr/sbin/fixwidgets. For me it's line #39, maybe it varies with different versions.

@SFR, your link for Webcams is great Very Happy . Maybe you like this link? It's not what you want, but maybe still interesting.

Thanks for the infos about /usr/... Smile

Have fun,
Rolf

_________________
Ich verwende "frugal", und das ist gut so. Wink
Raspberry Pi without Puppy? No, thanks.
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 882

PostPosted: Sun 11 Mar 2012, 17:33    Post subject:  

Thanks, the Pacific shots look great! Very Happy

As for suggestion:
Wouldn't be more convenient to place the URL file in, eg. /root (as hidden file, to not be distracting) and do not overwrite (during upgrading) if it already exists?
This would prevent the loss of custom links.
But, in case when a user will spoil something, there could be "Restore default URL list" button instead. Wink

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
rhadon


Joined: 27 Mar 2008
Posts: 1291
Location: Germany

PostPosted: Mon 12 Mar 2012, 03:31    Post subject:  

@SFR

Next version will have a Restore function for URL Wink . Thanks.
Also I'm working on another nice feature Cool

~Rolf

_________________
Ich verwende "frugal", und das ist gut so. Wink
Raspberry Pi without Puppy? No, thanks.
Back to top
View user's profile Send private message 
rhadon


Joined: 27 Mar 2008
Posts: 1291
Location: Germany

PostPosted: Wed 14 Mar 2012, 12:00    Post subject:  

New WallRefresh-1.3, see 1st post please.

- New preview fuction Very Happy
OK, there's a delay now between selecting a url and the actual preview, but I think it's worth (and more save).

- A simple Backup function.
Currently no restore funktion (sorry, SFR), but I think it's not a big deal to copy /usr/local/wallrefresh/URL.bkp back to /usr/local/wallrefresh/URL, if needed.

- I changed the refresh rate from minutes to seconds. Although I think that minutes are more userfriendly, maybe one wants to refresh faster.

- Also I changed 'gtkdialog' to 'gtkdialog4'.

Important: If you select a picture which is not available, then the program crashes. In this case you need to select a 'normal' wallpaper first. E.g. right click any icon on the desktop, select 'Backdrop', select 'Stretch' and any picture.

Have fun,
Rolf

_________________
Ich verwende "frugal", und das ist gut so. Wink
Raspberry Pi without Puppy? No, thanks.
Back to top
View user's profile Send private message 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Wed 14 Mar 2012, 13:00    Post subject:  

Hi rhadon,
Testing on latest exprimo - i get error regarding scale2jpg not being found, is this available on the forum somewhere?

Regarding unavailable picture - Maybe apply a file check to see if an image is available locally before applying new background ? ( see script below)

I also noticed you have 'newscale' and 'currentscale' lines commented out - this will cause a sed error as it doesn't know what to change from and to.
If you want the scale to stay the same just comment out all the wallpaper scale bit.

Hope this helps Smile

i have attached changed set_bg script below, just delete the fake .gz from the file name.
set_bg.gz
Description 
gz

 Download 
Filename  set_bg.gz 
Filesize  1.11 KB 
Downloaded  231 Time(s) 
Back to top
View user's profile Send private message 
rhadon


Joined: 27 Mar 2008
Posts: 1291
Location: Germany

PostPosted: Wed 14 Mar 2012, 13:30    Post subject:  

Sorry, I've forgotten to add scale2jpg Embarassed
I'll add it immediately to the pet, also here.
btw. it's an older program provided by Mark (MU).

@stu90
Thanks for help, and sorry for the annoyance. I'll take a look just after correcting the pet.

Regards,
Rolf
scale2jpg.gz
Description  please remove .gz and place it in /usr/local/bin/
gz

 Download 
Filename  scale2jpg.gz 
Filesize  4.42 KB 
Downloaded  240 Time(s) 

_________________
Ich verwende "frugal", und das ist gut so. Wink
Raspberry Pi without Puppy? No, thanks.
Back to top
View user's profile Send private message 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Wed 14 Mar 2012, 13:49    Post subject:  

No problem rhadon - its all part of the fun in testing new software.

As i had vovchik picscale already installed i used that for the preview Cool
http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=53102
Code:
#scale2jpg $img /usr/local/wallrefresh/thumb.jpg 256 173 85
picscale -i $img -o /usr/local/wallrefresh/thumb.jpg 256 173 85


cheers.
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 882

PostPosted: Wed 14 Mar 2012, 20:14    Post subject:  

rhadon wrote:
- A simple Backup function.
Currently no restore funktion (sorry, SFR), but I think it's not a big deal to copy /usr/local/wallrefresh/URL.bkp back to /usr/local/wallrefresh/URL, if needed.

Don't be sorry, there's no problem at all.
I always had to do backup of my URL before upgrading and then restore it.
Now the half of the work is automated Wink

What I was thinking lately is to find a way to access a livestream and take a snapshot -> Wallrefresh.
I suppose it'd be possible with mplayer, but can't figure out how to access, eg. this particular livestream via mplayer.
http://www.livestream.com/undermicroscope
Has anyone have any idea?

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 3 [37 Posts]   Goto page: Previous 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0766s ][ Queries: 13 (0.0057s) ][ GZIP on ]