I couldn't seem to find any info on adding the countdown image to my desktop, but i eventually figured this out:
EDIT: Ubuntu 10.04 release: April 29, 2010. countdown image links for lucid are not available yet, should be available April 1st
#!/bin/bash
#
#
#
# Karmic release October 29th 2009
# Lucid release April 29th 2010
target=`date +%s --date="Apr 29 2010"`
source=`date +%s` # today
diff=`expr $target - $source` # difference between dates in seconds
days=`expr $diff / 86400` # convert seconds to days
((days++)) # round up
#echo $days
if [ "$days" -lt "0" ] ;then days=0 ;fi
if [ "$days" -lt "29" ] ;then
if [ ! -d $HOME/.countdown ] ;then
mkdir $HOME/.countdown
#else
# echo ".countdown exists"
fi
cd $HOME/.countdown
if [ "$days" -lt "10" ] ;then
echo $days
#wget http://www.ubuntu.com/files/countdown/910/countdown-9.10-2/0$days.png
#cp $HOME/.countdown/0$days.png $HOME/.countdown/count.png
else
echo $days
#wget http://www.ubuntu.com/files/countdown/910/countdown-9.10-2/$days.png
#cp $HOME/.countdown/$days.png $HOME/.countdown/count.png
fi
else
echo "$days days until the Ubuntu 10.04 release"
fi
#alternate image: http://www.ubuntu.com/files/countdown/910/countdown-9.10-1
you can make ~/.countdown and save the script there as day.sh, and add it to cron by:
chmod +x ~/.countdown/day.sh
crontab -e
and add the line: 01 1 * * * root ~/.countdown/day.sh
when its less than 30 days until release just open the image ~/.countdown/count.png with the picframe screenlet or conky.
image from 9.04 release: [[IMG]http://img99.imageshack.us/img99/6700/screenshot4l.th.png[/IMG]](http://img99.imageshack.us/i/screenshot4l.png/)