Can't use external program to set background
Brian J. Tarricone
bjt23 at cornell.edu
Fri Sep 24 06:38:32 CEST 2004
xfdesktop creates a virtual root window on top of the real root window,
so that's not gonna work. there's no simple way to set the backdrop
from the cmdline (which i'm kinda surprised no one's asked for
before...). but you can do this:
1) open backdrop prefs, and click the new image list button.
2) stick an image in it (doesn't matter what)
3) new script. it'll set up the filename the same way yours does, but,
do this instead of the xv:
echo '# xfce backdrop list' >$IMAGE_LIST_FILE
echo $IMAGE_FILE >$IMAGE_LIST_FILE
xfdesktop -reload
that should do it.
-brian
Dark Shadow wrote:
>This script works perfectly with blackbox but when I try using it with
>xfce the background doesn't change. Can anyone tell me what to do. I
>spent a lot of time on the script and would like to use it with xfce
>
>
>#!/bin/sh
>
>export DIR=/mm/garfield
>export YEAR=`date +%y`
>export MONTH=`date +%m`
>export DAY=`date +%d`
>
>if [ -e "$DIR/20$YEAR/ga$YEAR$MONTH$DAY.gif" ]
>
>then
>
>/usr/local/bin/xv -root -rmode 5 -quit -noresetroot
>$DIR/20$YEAR/ga$YEAR$MONTH$DAY.gif
>
>else
>
>/usr/local/bin/wget
>http://images.ucomics.com/comics/ga/20$YEAR/ga$YEAR$MONTH$DAY.gif -O
>$DIR/20$YEAR/ga$YEAR$MONTH$DAY.gif
>/usr/local/bin/xv -root -rmode 5 -quit -noresetroot
>$DIR/20$YEAR/ga$YEAR$MONTH$DAY.gif
>
>fi
>_______________________________________________
>Xfce mailing list
>Xfce at xfce.org
>http://lunar-linux.org/mailman/listinfo/xfce
>http://www.xfce.org
>
>
More information about the Xfce
mailing list