WallRefresh-1.4

Window managers, icon programs, widgets, etc.
Message
Author
User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#21 Post by SFR »

Hi rhadon.

Good to see Wallrefresh still evolves. :)
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 :lol:
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!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#22 Post by pemasu »

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.

User avatar
rhadon
Posts: 1292
Joined: Thu 27 Mar 2008, 11:05
Location: Germany

#23 Post by rhadon »

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: Select all

/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 :D . Maybe you like this link? It's not what you want, but maybe still interesting.

Thanks for the infos about /usr/... :)

Have fun,
Rolf
Ich verwende "frugal", und das ist gut so. :wink:
Raspberry Pi without Puppy? No, thanks.

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#24 Post by SFR »

Thanks, the Pacific shots look great! :D

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!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
rhadon
Posts: 1292
Joined: Thu 27 Mar 2008, 11:05
Location: Germany

#25 Post by rhadon »

@SFR

Next version will have a Restore function for URL :wink: . Thanks.
Also I'm working on another nice feature 8)

~Rolf
Ich verwende "frugal", und das ist gut so. :wink:
Raspberry Pi without Puppy? No, thanks.

User avatar
rhadon
Posts: 1292
Joined: Thu 27 Mar 2008, 11:05
Location: Germany

#26 Post by rhadon »

New WallRefresh-1.3, see 1st post please.

- New preview fuction :D
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.

stu90

#27 Post by stu90 »

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 :)

i have attached changed set_bg script below, just delete the fake .gz from the file name.
Attachments
set_bg.gz
(1.11 KiB) Downloaded 455 times

User avatar
rhadon
Posts: 1292
Joined: Thu 27 Mar 2008, 11:05
Location: Germany

#28 Post by rhadon »

Sorry, I've forgotten to add scale2jpg :oops:
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
Attachments
scale2jpg.gz
please remove .gz and place it in /usr/local/bin/
(4.42 KiB) Downloaded 470 times
Ich verwende "frugal", und das ist gut so. :wink:
Raspberry Pi without Puppy? No, thanks.

stu90

#29 Post by stu90 »

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 8)
http://www.murga-linux.com/puppy/viewto ... h&id=53102

Code: Select all

#scale2jpg $img /usr/local/wallrefresh/thumb.jpg 256 173 85
picscale -i $img -o /usr/local/wallrefresh/thumb.jpg 256 173 85
cheers.

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#30 Post by SFR »

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!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
rhadon
Posts: 1292
Joined: Thu 27 Mar 2008, 11:05
Location: Germany

#31 Post by rhadon »

@stu90
Your suggestions are working like a charm. If I build a new version, this will go definitively in. Thanks. :D
SFR wrote:What I was thinking lately is to find a way to access a livestream and take a snapshot -> Wallrefresh.
I think it's a problem of different formats. I tried it with VLC, but also no go.

My dream/request would be using a livestream directly as a desktop background. Icons and widgets could be made visible by moving the cursor to a corner and click, similar to different layers in a graphic program. Easy to stop/start if you need more CPU/GPU power or internet bandwidth. But this is far beyond my knowledge :oops: . I see WallRefresh at the beginning of this way. :wink:

btw. your link is really great! Some webcams provide livestream which can be seen by VLC (I guess also by Mplayer).

Cheers
Rolf
Ich verwende "frugal", und das ist gut so. :wink:
Raspberry Pi without Puppy? No, thanks.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

WallRefresh-1.3

#32 Post by L18L »

rhadon wrote:...
Next on my ToDo list:
- internationalisation
...
Take this as a starter.
It is 1.3 gettexted

Have fun

Code: Select all

#!/bin/bash 

#------------------------------------------------------------------------------------------------------
# i18n L18L
# Encoding=UTF-8
. gettext.sh
TEXTDOMAIN=wprefresh-config
# that´s all i18n overhead
#
# create portable object template: xgettext --language=shell  -o wprefresh-config.pot  wprefresh-config
# create portable object file de.po: msginit
# edit de.po (fill some empty msgstr)
# create machine object file: msgfmt de.po -o - > /usr/share/locale/de/LC_MESSAGES/wprefresh-config.mo
# or use momanager (in recent racy/wary)
#------------------------------------------------------------------------------------------------------

 GTKD4="`which gtkdialog4`"
Attachments
wprefresh.png
(60.8 KiB) Downloaded 475 times
wprefresh-config.gz
remove fake .gz
make executable
(5.25 KiB) Downloaded 402 times

User avatar
rhadon
Posts: 1292
Joined: Thu 27 Mar 2008, 11:05
Location: Germany

#33 Post by rhadon »

@L18L
It was easy to follow your instructions.
Now i18n and german translation are ready. :D

What about t12s? I thought, you'd prefer this way. In spite of that, you saved me a lot of work.

Thank you very much. :D

Rolf
Ich verwende "frugal", und das ist gut so. :wink:
Raspberry Pi without Puppy? No, thanks.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

#34 Post by L18L »

rhadon wrote:...
Now i18n and german translation are ready. :D
...
patiently waiting.... :?

User avatar
rhadon
Posts: 1292
Joined: Thu 27 Mar 2008, 11:05
Location: Germany

#35 Post by rhadon »

Sorry L18L,

I wasn't aware, you are waiting :oops: .

I asked a friend for french translation, but no result for now :roll: .

Also I was thinking about help text and a new feature (slideshow) and not asking for translations every 5 minutes (OK, that's exorbitant).

Well, here it is, WallRefresh-1.4 (see first post please).

- Internationalized, only english and german by now .

- Added stu90's suggestions.

Corrections, translations and suggestions are always welcome. :wink:

If anybody wants de.po, it's below.


Have fun :D ,
Rolf
Attachments
de.po.gz
just remove .gz please
(1.98 KiB) Downloaded 418 times
Ich verwende "frugal", und das ist gut so. :wink:
Raspberry Pi without Puppy? No, thanks.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

WallRefresh-1.4

#36 Post by L18L »

no, I was not really waiting....

You have your script internationalized now.
The number of translations does not matter, that is localization !

I have installed and started the script, everything German.
Who should need de.po?

Stop. My fault.

change

Code: Select all

# i18n L18L
. gettext.sh
 Encoding=UTF-8
TEXTDOMAIN=wprefresh-config
# that´s all i18n overhead
to

Code: Select all

# i18n L18L
. gettext.sh
export TEXTDOMAIN=wprefresh-config
export OUTPUT_CHARSET=UTF-8
# that´s all i18n overhead
I don´t know what the encoding line is good for.
the OUTPUT_CHARSET line enables correct rendering if locale has no utf8
the export TEXTDOMAIN= enables working of momanager, see http://bkhome.org/blog/?viewDetailed=02676
:)

User avatar
rhadon
Posts: 1292
Joined: Thu 27 Mar 2008, 11:05
Location: Germany

#37 Post by rhadon »

L18L wrote:change Code:
...
to Code:
...
export TEXTDOMAIN=wprefresh-config
export OUTPUT_CHARSET=UTF-8
...
Done.
Thank you again :D
Rolf
Ich verwende "frugal", und das ist gut so. :wink:
Raspberry Pi without Puppy? No, thanks.

Post Reply