Re: Wallpaper changer app?



On Mon, 3 Dec 2001, Dennis J. Tuchler wrote:

> Is there an application for Gnome's desktop that displays a graphic on the background 
> and changes it for another graphic (e.g. in a particular directory) each n minutes?
> 
> There is such a utility included with KDE, but I'd rather use Gnome.

	All you need is on you *nix box already:


$ crontab -e
5 * * * * bash -c xsetroot -display :0 ~/pix/$RANDOM.xpm >/dev/null 2>&1
:wq

$

	That way you instruct the cron daemon to call bash every five
minutes. Bash will call xsetroot and tell it to draw a random picture on
your background (the $RANDOM variable contains a random number generated
by bash). The output redirections are required since i doubt that you want
to get mail each time cron tries to run this command and X11 isn't up/not
owned by you.


	Well. Looks a but old-school-unix-hackish. But a) Damnit, UNIX 
rocks! b) Someone might write a little GNOME-GUI to maintain this crontab
entry. (Guess the crontab entry should point on 
/usr/lib-exec/my-wallpaper.sh then).


	Disclamer: Don't know if this works when nautilus 0wnz the desktop
background.


Ciao,
Mathias
-- 
WWW:           http://www.informatik.hu-berlin.de/~hasselma/
PGP/GnuPG:     1024-Bit DSA: ID 55E572F3, 1024-Bit RSA: ID EAAF7CF1




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]