On Wed, May 24, 2006 at 04:26:35PM +0200, jdd wrote:
> Azerion wrote:
> >Hmmmm, I was used to change the wallpaper cause I have some point it 
> >should be like. But the default one is now allready a few weeks on my 
> >desktop and that is VERY long for a standard.
> >Maybe it is a good idea to start a competition and let some guys from this 
> >mailinglist vote and some Joe Avarage's....
> 
> I use my own photographs, for example from here:
> 
> http://dodin.org/galerie_photo_web/expo/index.html

I switch backgrounds on my two 1600x1200 every 2 minutes with crontab. The
reason is the abount of backgrounds I have.
[EMAIL PROTECTED] : find ~/wallpaper/ -name "*.jpg"|wc -l
27124
[EMAIL PROTECTED] : du -sh ~/wallpaper/  
3.3G    /home/houghi/wallpaper/

I use the following (selfmade and ugly) script:
#!/bin/bash
# 
DIR=/home/houghi/wallpaper
for COUNT in `seq 0 1`
do
        LINES=$((`wc -l < $DIR/wallpapers.txt`))
        if [ $LINES -eq "0" ]
        then
                find $DIR|grep jpg > $DIR/wallpapers.txt
                LINES=$((`wc -l < $DIR/wallpapers.txt`))
                rm $DIR/latest.txt
                touch $DIR/latest.txt
        fi
        FILE=`head -$((($RANDOM * 32678 +$RANDOM) % $LINES + 1)) \
$DIR/wallpapers.txt|tail -1`
        grep $FILE -v $DIR/wallpapers.txt > $DIR/wallpapers.txt.bak
        mv $DIR/wallpapers.txt.bak $DIR/wallpapers.txt
        FILE=`echo $FILE|awk -F: '{print $NF}'`
        DISPLAY=:0.${COUNT} /usr/X11R6/bin/wmsetbg -a $FILE
        echo "${COUNT} $FILE" >> $DIR/latest.txt
done

I then also have a `tail -f ~/wallpaper/latest.txt` running in a
semitransparent window, so I can see what the last 4 (2 for each screen)
wterm -g 128x19 -tr -bg red -fg yellow -sh +sb

The most difficult part however is sorting all these files. :-)
-- 
houghi          http://houghi.org       http://www.plainfaqs.org/linux/
                http://www.netmeister.org/news/learn2quote.html
>
>               Today I went outside. My pupils have never been tinier...

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to