Re: FVWM: Different backgrounds

From: Cameron Simpson <cs_at_zip.com.au>
Date: Thu, 22 May 2003 19:29:30 +1000

On 16:41 21 May 2003, Fabio Stumbo <f.stumbo_at_unife.it> wrote:
| > | 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.
|
| If I am not wrong, what you suggest is something which changes the
| background every time I switch the desktop, isn't it?

Well, only if it's different to what's displayed already.

| If so, it is not exactly what I mean.
|
| I also ad a look at your scripts: they are very well done, but somewhat
| too involved and with too many interdependencies to be easily modified.

Indeed, but enterdesk itself isn't.

| What I was simply looking for, was a (simple, if possible) way to tell
| fvwm:
|
| for desktop 0 use this (function to select a) background
| for desktop 1 use this background
|
| The solution suggested by Mikhael seems much closer to what I wanted: I
| will try it.

BTW, you timing problem with Mikhael's suggestion is easily addressed.
As before, use your cron job to pick a fresh backdrop on the hour.
And copy the selected image to a generic name like ~/.current-backdrop.jpg,
and always have fvwm load that name.

fvwm-root is quite quick. If you take the effort you can size the source
image to fit your screen and convert to PNG on the way, and store the
converted image as your generic name. The update is very quick after that.

Cheers,
-- 
Cameron Simpson, DoD#743        cs_at_zip.com.au    http://www.zip.com.au/~cs/
Faith in a holy cause is to a considerable extent a substitute for the
lost faith in ourselves.        - Eric Hoffer
--
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 - 04:32:48 BST

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