On Mon, Oct 03, 2005 at 08:14:07PM +0200, mike wrote:
You know, I don't even remember what the default screen looked like. It lasted just long enough for me to configure another picture into it. Right now, I cycling some pix of my grandkids. ;-)
I also look at my own backgrounds. I have some 23.000+ pictures and twi screens. I used to have a randomizer, but that one did not really work well, because it was not really random. The script I use on my WindowMaker: #!/bin/bash # make file with : # find .|grep jpg > wallpapers.txt cd /home/houghi/wallpaper for COUNT in `seq 2` do let COUNT=COUNT-1 LINES=$((`wc -l < wallpapers.txt`)) if [ $LINES -eq "0" ] then find .|grep jpg > wallpapers.txt LINES=$((`wc -l < wallpapers.txt`)) fi FILE=`head -$((($RANDOM * 32678 +$RANDOM) % $LINES + 1)) wallpapers.txt|tail -1` grep $FILE -v wallpapers.txt > wallpapers.txt.bak mv wallpapers.txt.bak wallpapers.txt DISPLAY=:0.${COUNT} /usr/X11R6/bin/wmsetbg -a $FILE # echo $COUNT $FILE done All pics are in /home/houghi/wallpaper in subdirectories. All are in lowercase and have no spaces in them The script first makes a wallpapers.txt file with all the files in it. It then chooses a random line and does the wmsetbg for it. The DISPLAY in front of it tells me what display to put it, so if you have just one screen, loose the lines `for COUNT ...`, `do` and `done` and remove `DISPLAY=:0.${COUNT}`. If you have more then one desktop, you could change the `seq 2` to whatever you have of amount and make it `DISPLAY=:${COUNT}.0 ...` Next the script removes the line from the file, so it can be chosen the next time. Last but not least, put the script in crontab. Mine does a new screen every 2 minutes. You can calculate how long I must watch before I have seen all pics. :-) I must say I do now see pictures that I previously have not seen in the several months I had them and the other script was running. houghi -- Quote correct (NL) http://www.briachons.org/art/quote/ Zitiere richtig (DE) http://www.afaik.de/usenet/faq/zitieren Quote correctly (EN) http://www.netmeister.org/news/learn2quote.html