chewearn
May 15th, 2008, 12:06 PM
I run my desktop with compiz fusion cube set at 100% transparency. I put a nice picture as the skydome, which serve as the wallpaper in this set-up.
However, I got tired of looking at the same old desktop background all the time, and I'm too lazy to change it, so I wrote a bash script that update the skydome hourly.
Tweak the first part of the script to match your pictures and files location.
#!/bin/bash
# -------- Set the following variables to your own config ----------------
# Note: filenames must be 00, 01, ..., 12; 00 is midnight, 12 is noon
FILEEXT=.jpg
FILEPATH=$HOME/arts/skydome/
# ------------------------------------------------------------------------
GCONFPATH=/apps/compiz/plugins/cube/screen0/options/skydome_image
sleep 30
while [ 1 ]; do
HOUR=`date +"%H"`
# convert 24 hours time to "hours to/from noon"
if [ $HOUR -gt '12' ]; then
HOUR1=$[24-$HOUR]
if [ $HOUR1 -lt '10' ]; then
HOUR1=0$HOUR1
fi
else
HOUR1=$HOUR
fi
gconftool-2 -s -t string $GCONFPATH $FILEPATH$HOUR1$FILEEXT
# sleep until next hour
while [ 1 ]; do
MIN=$[60-$[`date +"%M"`]]m
HOUR1=`date +"%H"`
if [ $HOUR -ne $HOUR1 ]; then
break;
fi
sleep $MIN
done
done
Here is a set of pictures:
http://chew4097.googlepages.com/home
Note:
The original pictures are png, but googlepages converted it to jpg. :(
It's not ground breaking, but I'm not an artist either. :mrgreen:
If you find bug please tell me.
If you created your own set of pictures, I would love to download them. :mrgreen:
.
However, I got tired of looking at the same old desktop background all the time, and I'm too lazy to change it, so I wrote a bash script that update the skydome hourly.
Tweak the first part of the script to match your pictures and files location.
#!/bin/bash
# -------- Set the following variables to your own config ----------------
# Note: filenames must be 00, 01, ..., 12; 00 is midnight, 12 is noon
FILEEXT=.jpg
FILEPATH=$HOME/arts/skydome/
# ------------------------------------------------------------------------
GCONFPATH=/apps/compiz/plugins/cube/screen0/options/skydome_image
sleep 30
while [ 1 ]; do
HOUR=`date +"%H"`
# convert 24 hours time to "hours to/from noon"
if [ $HOUR -gt '12' ]; then
HOUR1=$[24-$HOUR]
if [ $HOUR1 -lt '10' ]; then
HOUR1=0$HOUR1
fi
else
HOUR1=$HOUR
fi
gconftool-2 -s -t string $GCONFPATH $FILEPATH$HOUR1$FILEEXT
# sleep until next hour
while [ 1 ]; do
MIN=$[60-$[`date +"%M"`]]m
HOUR1=`date +"%H"`
if [ $HOUR -ne $HOUR1 ]; then
break;
fi
sleep $MIN
done
done
Here is a set of pictures:
http://chew4097.googlepages.com/home
Note:
The original pictures are png, but googlepages converted it to jpg. :(
It's not ground breaking, but I'm not an artist either. :mrgreen:
If you find bug please tell me.
If you created your own set of pictures, I would love to download them. :mrgreen:
.