On 11:33 21 May 2003, Fabio Stumbo <f.stumbo_at_unife.it> wrote:
| My problem is the following: in my current configuration (1 desktop) I
| want a background which should be picked up randomly in a directory with
| pictures. Moreover, it should change every hour. The only way I have been
| able to obtain this is as follows:
[... cron job that changes the backdrop ...]
| #!/bin/sh
| /usr/X11R6/bin/xv -rb black -maxpect -rmode 5
| -random /usr/local/etc/fvwm/bgs/* -quit
|
| (I put it in a separate script so that it can also be called directly,
| somewhere else)
|
| I don't know if this is the best way to have the job done but, so far, it
| worked, so I didn't feel the need for another solution (but for being
| forced to install manually xv, which is no longer included in any
| distribution... :-(
It's shareware. RH can't distribute it.
But it is also my preferred viewer.
I sent some $$s to the author.
| Now I use 2 desktops. I realized that my scripts have the effect to put
| the same image in the two desktop. What I want now is: on the first
| desktop (=0), same behavior as before. On the second desktop (=1), I
| would like to have a solid color background, which shouldn't change. I
| made some tries with FvwmBacker, but without success, so I am out of
| ideas: can anybody help me?
Have the script simply choose a backdrop but not set it with xv.
Use FvwmEvent to set the backdrop on entry to each desktop appropriately,
using xv.
I have FvwmEvent run a script called enterdesk when I switch desks:
http://www.cskk.ezoshosting.com/cs/scripts/enterdesk
Pickim and rootbg et al are ludicrously overengineered scripts to do
something like what you want, but the enterdesk stuff may well be readily
modified to suit you.
Cheers,
--
Cameron Simpson, DoD#743 cs_at_zip.com.au http://www.zip.com.au/~cs/
If it ain't life-affirming, it ain't shit.
- Rejected corporate motto, Touchstone Pictures.
--
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 May 21 2003 - 05:02:46 BST