I meant to.  GMail defaults to the private address.  And I never seem
to remember to tell it otherwise.

Dave

On 8/10/05, Kim Woelders <[EMAIL PROTECTED]> wrote:
> Thanks. You probably should have cc'ed e-users.
> 
> /Kim
> 
> David Berg wrote:
> >>Try "eesh -ewait list_bg"
> >>
> >>/Kim
> >>
> >
> >
> > Thank you.  The finished script is below.  Hopefully it will save
> > someone else some time.
> >
> > -Dave
> >
#!/bin/sh
#A script to cycle images on an enlightenment desktop

# Copyright 2005 by David Berg
# E-mail [EMAIL PROTECTED] with any questions.

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.

function usage {
  echo "$0: a script to cycle images on the Enlightenment (E16) desktop."
  echo " -d: duration of each image. Images must be in or linked to"
  echo " ~/.enlightenment/backgrounds/ so that E loads them when it starts."
}

# How long we wait between pictures
duration=600

while getopts "d:?" Option
do
  case $Option in
    d   ) duration=$OPTARG;;
    ?   ) usage; exit;;
    *   ) usage; exit;;
  esac
done

#Leave backgrounds from startup for $duration
sleep $duration


# Comment these two lines and uncomment the set below if you don't want to
# rescan background directory and number of desktops every time images
# are loaded.
while true
 do

  #Get only the photos that are in .enlightenment/backgrounds
  pictures=( $(eesh -ewait list_bg | grep [.][:alnum:]* - ) )
  #Count them
  [EMAIL PROTECTED]
  #Get number of desktops in use
  numdesks=`eesh -ewait get_controls | awk '/^NUMDESKTOPS: [:num:]*/
{print $2}'`

  #code to select file by name goes here
  #eesh -ewait "get_bg $pictures[i]"  gets info about the backgrounds
  #  including filename

# Uncomment these two lines and comment out the set above if you don't
# want to rescan background directory and number of desktops every time
# images are loaded.
#while true
#do

  if [ $count -gt 0 ] ; then
    for (( i=0 ; i < numdesks ; i += 1 ))
    do
      #This will select a random photo from list and display it on desk i
      eesh -e "use_bg ${pictures[$RANDOM % $count]} $i" &
    done
    sleep $duration
  fi

done

exit 0


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
enlightenment-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to