Background Script Changer
Here is a little script to change your desktop background.
Features :
1. The sample is for E17 but you can use it for other, providing you change the E17setroot to other program that suitable for your desktop manager.
2. Random Wallpaper selection
3. You can set the interval of each desktop change.
#!/bin/bash
IMGDIR=PATH_TO_IMAGE
SLEEPTIME=3600 # in seconds
while [ 1=1 ] ;
do
getrandomimg()
{
ls $IMGDIR | perl -e '@f=<>; print $f[int(rand($#f+1))]'
}
IMG1=`getrandomimg`
e17setroot -s $IMGDIR/$IMG1
Esetroot -s $IMGDIR/$IMG1
sleep $SLEEPTIME
done
fi
exit 0
-=end transmission=-


















Reader Comments