[Ilugc] set a random desktop background

  • From: solar345@xxxxxxxxxxx (Antano Solar John)
  • Date: Mon Aug 7 00:19:38 2006


#!/bin/bash

export DIR='/home/user/Images/Wallpapers/' /*any directory where you have 
stored images be sure to save only images */
export NUMBER=$RANDOM
export TOTAL=0

for f in `ls $DIR`
do
    let "TOTAL += 1"
done /* ignore this loop and set the value of total yourself if you have 
other files than images in the directory and you know how many images you 
have "

let "NUMBER %= TOTAL"
export CURRENT=0

for f in `ls $DIR`
do
    if [ $CURRENT = $NUMBER ]
    then
        gconftool -t string -s /desktop/gnome/background/picture_filename 
$DIR/$f
        break
    fi
    let "CURRENT += 1"
done

this script will change the wallpaper for you , just shedule it every time 
you start or every 1 hour as you like :)


From: satheesh kumar <m_sathyz@xxxxxxxxxxx>
To: Antano Solar John <solar345@xxxxxxxxxxx>
CC: ILUGC <ilugc@xxxxxxxxxxxxx>
Subject: RE: [Ilugc] set a random desktop background
Date: Mon, 7 Aug 2006 02:34:55 +0800 (CST)



Antano Solar John <solar345@xxxxxxxxxxx> wrote:
there is definitely a way but the method differs ,
tell me what do you use for the interface gnome or kde and maybe i can 
write
  asmall script for you .

preferably GNOME..

From: satheesh kumar
To: ilugc@xxxxxxxxxxxxx
Subject: [Ilugc] set a random desktop background
Date: Mon, 7 Aug 2006 01:10:28 +0800 (CST)

I want to set a random desktop background every time i boot my linux....
is this possible...


The world is moving so fast that the man who says it can't be done is
generally interrupted by someone doing it>>


---------------------------------

 The World Cup Is Now On Your Favorite Front Page - check out
www.yahoo.com.sg
_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with
"unsubscribe

"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

_________________________________________________________________
Best IT jobs on naukri.com
http://www.naukri.com/tieups/tieups.php?othersrcp=3246




The world is moving so fast that the man who says it can't be done is 
generally interrupted by someone doing it>>


---------------------------------
 New and Improved Yahoo! Mail - 1GB of free storage!
_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

_________________________________________________________________
Who will win Bollywood’s most coveted IIFA awards? You decide! Cast your 
vote! http://server1.msn.co.in/sp06/IIFA2006/static/weekend.asp

Other related posts: