On 21 May 2003 11:33:36 +0200, Fabio Stumbo wrote:
>
> I use fvwm2 since 1994 but only now I feel the need to use more than one
> desktop... ;-))
>
> 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:
>
> my StartFunction contains the line
>
> + I Exec exec crontab /usr/local/etc/fvwm/cron.dir/hour
Try the following instead in 2.5.x:
AddToFunc ChangeRootHourly
+ I Exec exec cgbg
+ I Schedule 3600000 ChangeRootHourly
AddToFunction StartFunction
+ I ChangeRootHourly
> 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... :-(
You don't need to use xv, there is "display" from ImageMagick that
understand all image formats, there is fvwm-root from 2.5.x that
understands XPM and PNG and there are some other root setters.
> 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?
You may run FvwmBacker that uses 2 Pixmap colorsets, one per desk.
Then the setup for 2.5.x may look like this (untested):
DestroyFunc ChangeRootHourly
AddToFunc ChangeRootHourly
+ I PipeRead `dump-2-config-lines-for-colorset-51-and-52`
+ I Schedule 3600000 ChangeRootHourly
AddToFunction StartFunction
+ I ChangeRootHourly
+ I FvwmBacker
*FvwmBacker: Command (Desk 0) Colorset 51
*FvwmBacker: Command (Desk 1) Colorset 52
The script should dump 2 lines, something like:
Colorset 51 Pixmap bg7.png
Colorset 52 Pixmap bg4.png
Regards,
Mikhael.
--
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 - 08:05:13 BST