Re: FVWM: Different backgrounds

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Thu, 22 May 2003 21:57:16 +0000

On 22 May 2003 19:04:14 +0200, Fabio Stumbo wrote:
>
> > > 2) Your suggestion has the effect that the background gets changed
> > > every hour _since_ I fire up fvwm: what if I want the effect only
> > > exactly at the hour (3:00, 4:00, 5:00, and so on...)?
> >
> > Well, then you should do some time mathematics.
> > Replace the "Schedule 3600000 ChangeRootHourly" line above with:
> >
> > PipeRead `perl -MTime::Local -e '_at_t = localtime; $t[0] = $t[1] = 0;
> > $t[2]++; printf "Schedule %s ChangeRootHourly\\n", ((timelocal _at_t) -
> > time) * 1000'`
>
> Well, I would have never been able to produce such a thing! And, what is
> worse, it works!!!

Actually when I posted I knew it has a small problem, once a day it stops
to work (printing: Hour '24' out of range 0..23). I only wanted to give
you an idea, here is a quick hack if you may tolerate one case:

  $t[2]++; $s = $t[2] == 24? 3600000: ((timelocal _at_t) - time) * 1000; \
  print "Schedule $s ChangeRootHourly\\n";`

> Thank you a lot.
>
> BTW: just for understanding it better: all suggestions, both yours and
> Cameron's, work changing the background every time the desktop is
> changed, even if the desktop itself didn't change.

Hmm, I see you use the "desktop" word for 2 different meanings. Which?
I suppose you simply mean it takes some time to see a new image.

Yes, it takes some time to copy a picture to the root window.
I don't think colorsets in FvwmBacker work much slower than xv.
Try also solid colors or simple tiles as your background to speed it.

> If it is so, it seems to me that there is somewhat a waste of resources.
> Or is it not?

It is. But I don't know whether there is a good solution in X for this.

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 Thu May 22 2003 - 17:00:57 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:54 BST