Sunny, On Tuesday 14 December 2004 13:24, Sunny wrote:
Hi,
I want to change my wallpaper lets say every 30 or 5 minutes. I will prepare a script, which will replace the current picture with a new one, without changing the name, so there will be no need to mess with the desktop options. And I will set this script to be run from cron.
My only problem is, that I do not know hot to invoke desktop refresh, so the new picture to be displayed. I need to refresh all kde user sessions, if more than one. Any clue?
That's not really a cron kind of thing. What you want is already built in to the KDE desktop software. I configure my desktop to display a photographic image of the Earth with an up-to-date terminator (with a nighttime iamge that displays urban light islands on the dark side of the planet) using the existing features of the background image support in KDE and the XPlanet software to synthesize the image. To wit: - Control Center -> Appearance & Themes -> Background - Click "Advanced Options" - Enable "Use the following program for drawing the background" Create a new entry that will invoke the script that generates you background image. Set the "Refresh time" to suit your taste. Look at an existing entry for clues on how to configure a background generator. The most important thing to know is that the name of the file in which to place new background images is expanded in place of any occurrences of "%f" in the command strings. Note, too, that this name will have no particular image-type-specific suffix (such as ".jpg", e.g.). If the program you use to generate an image requires such a suffix so it can determine what kind of image format to produce, you'll have to do something like this: Command: image-generator %f.png && mv %f.png %f
Thanks Sunny
Randall Schulz