[PLUG] GNOME2 Background
Sean Whitney
sean at fork.com
Sun Feb 23 17:24:01 UTC 2003
This script seems to have made a lot of my MAC and Windows user friends
envious of linux.
#!/bin/sh
rm /tmp/xplanet-*.jpg;
FNAME=xplanet-`date +%s`.jpg &&
find ~/.xplanet -name clouds_2000.jpg -cmin +180 -exec rm {} \;
cd ~/.xplanet
if ! [ -f clouds_2000.jpg ]; then
wget -t0 -c -np -nd http://xplanet.lightbearer.com/clouds_2000.jpg
xplanet -image earth.jpg -cloud_image clouds_2000.jpg -shade 100
-output day-clouds.jpg -geometry 1600x1200
xplanet -image night.jpg -cloud_image clouds_2000.jpg -cloud_shade
30 -output night-clouds.jpg -geometry 1600x1200
fi
nice -n19 xplanet -mapdir ~/.xplanet/ -image day-clouds.jpg -night_image
night-clouds.jpg -blend -output /tmp/$FNAME -geometry 1600x1200 -proj
rectangular &&
gconftool-2 -t string -s /desktop/gnome/background/picture_filename
/tmp/$FNAME
Combine this script with
*/5 * * * * /home/sean/bin/xplanetbg-gnome >
/dev/null 2>&1
Works great. I'm sure this script could be cleaned up a little.
Sean
More information about the PLUG
mailing list