Martin Cartwright wrote:
hi,
> ->Actually, XV can do this, I believe.
[...]
try this cool script. it shows 4 images in 24h .. start it with & in the
background.
ps: morgen = morning / mittag = afternoon / anacht = night ..
---cut---
#! /bin/sh
#
# ROOTIMG anhand der uhrzeit setzen.
# + setting ROOTIMG with the time (sorry my bad english)
APP="/usr/X11R6/bin/xli -onroot -quiet"
MORGEN="/root/Privat/Pictures/backgrounds/wolken_800x600.jpg"
MITTAG="/root/Privat/Pictures/backgrounds/wolken1_800x600.jpg"
NMITTAG="/root/Privat/Pictures/backgrounds/y-clouds_800x600.jpg"
NACHT="/root/Privat/Pictures/backgrounds/daemmerung_800x600.jpg"
j=25
while true
do
# Hat sich seit der letzten Pruefung die Stunde veraendert?
if [ $j != `date +%H` ]
then
j=`date +%H`
case `date +%H` in
0[6-9]) $APP $MORGEN ;;
1[0-7]) $APP $MITTAG ;;
1[8-9]|2[0]) $APP $NMITTAG ;;
2[123]|0[0-5]) $APP $NACHT ;;
esac
fi
# Nur alle 5 Minuten pruefen, um CPU-Zeit zu sparen:
sleep 300 # + checking every 5 mins (low cpu usage)
done
---cut---
--
Bye, klospatz's Linux-Place (Babes/Files)
Adam Kopacz (klospatz) http://www.rat.de/Adam
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Mon Aug 25 1997 - 15:38:10 BST