[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-multimedia
Subject:    Re: How to set BG image from a shell script?
From:       Peter Clark <pc451 () yahoo ! com>
Date:       2001-12-13 3:18:30
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 12 December 2001 20:31, Chris Watson wrote:
> I have a shell script below that I would like to get working with KDE but
> xv doesnt seem to work anymore. It worked fine in WM  I'm not sure why it
> wont set the root BG in KDE. What app can I use inplace of xv to set the
> root bg in the script below:
>
> while .
> do
>         rm -f /tmp/"$USER"_earth.jpg
>         fetch -p -q -h rsd.gsfc.nasa.gov -c /pub/Weather/GMS-5/jpg/vis/4km/
> -f 0
> latest.jpg -o /tmp/"$USER"_earth.jpg
>         xv +noresetroot -rmode 5 -quit /tmp/"$USER"_earth.jpg
>         sleep 3600
> done
>
> I'd really like to keep using it :-) But I need something kde friendly to
> replace xv since xv doesnt seem to be able to set the root BG window.
> I appreciate any help.

	Not difficult at all. I have a background that basically shows the earth 
from the vantage point of the moon which is updated by a cron script every 
five minutes. Here's one way you can do it:
1. Rewrite your script so that it writes a jpeg file to somewhere convinient, 
like ~/pics/chris_earth.jpg
2. Stick the script in a cron tab, updating however often you like.
3. Go to the Control Center -> Look & Feel -> Backgrounds
4. Select the "Wallpaper" note tab
5. Choose "Multiple Wallpapers" and then press the "Setup Multiple..." button.
6. A window titled "Configure Wallpapers" will pop up. Press the "Add..." 
button.
7. Go to wherever your picture is saved and select the picture (it helps to 
have something there in advance, first)
8. Change the interval period to however often your cron script runs. In my 
case, I have the interval set at 5 minutes.
9. Click all the necessary "Ok" and "Apply" buttons.
10. Enjoy!
	:Peter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8GB4SevbW9GDdlVARArxoAJ98LFo6l1H9OupSaEVrlOdLo15cxQCgv2X7
CjSpToYs6UjWpBXNCMZSTnc=
=utuL
-----END PGP SIGNATURE-----
_______________________________________________
kde-multimedia mailing list
kde-multimedia@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-multimedia
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic