Eric Coulthard <coulthar_at_ugrad.cs.ualberta.ca> writes:
> Hello I have been experimenting with using a random background image and I
> found a command that will do it. Unfortunatly it doesn't work in my
> .fvwm2rc file. I was wondering if you could offer any helpful suggestions.
> This is the command as it is used in my InitFunction:
>
> + "I" exec xv -root -max -quit bgpictures/bg$[RANDOM % 3 +1].jpg
>
> Now it is supposed to pick between 3 jpg files each named bg1.jpg bg2.jpg
> and bg3.jpg in the bgpictures directory. It works if I use this command in
> my .bashrc file but not the .fvwm2rc file. I am certain it is because
> fvwm doesn't recognize the $[RANDOM % 3 + 1] part but I would like to
> know if their is a way I can get it to recognize it. If anyone can help me
> that would be great.
You can use:
ExecUseShell /bin/bash
or
+ "I" exec bash -c 'xv -root -max -quit bgpictures/bg$[RANDOM % 3 +1].jpg'
But I predict 3 pictures won't be enough.
I started with 1 and a few years later I have 1056.
--
Dan Espen E-mail: dane_at_mk.telcordia.com
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Wed Dec 15 2004 - 20:03:15 GMT