While I was using gnome2 in oS 11.4 I had the background set to a .xml
file, that simply loaded a background image. I had a cron job that
changed the contents of that image (the earth rotating according to the
current time), and simply touching the xml file caused gnome to reload
the png background image.
(gnome 2 had a sample xml file that changed the background image during
the day, darker colours at night. The xml file defined the hours on
which to do the change and the files to load)
I want to do something similar in XFCE under oS 12.1. It is simple:
there is an image that is regenerated every 20 minutes, but I need to
tell XFCE to reload it somehow.
–
Cheers / Saludos,
Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)
>
> While I was using gnome2 in oS 11.4 I had the background set to a .xml
> file, that simply loaded a background image. I had a cron job that
> changed the contents of that image (the earth rotating according to the
> current time), and simply touching the xml file caused gnome to reload
> the png background image.
>
> (gnome 2 had a sample xml file that changed the background image during
> the day, darker colours at night. The xml file defined the hours on
> which to do the change and the files to load)
>
>
> I want to do something similar in XFCE under oS 12.1. It is simple:
> there is an image that is regenerated every 20 minutes, but I need to
> tell XFCE to reload it somehow.
>
I think
xfdesktop --reload
is what you’re looking for
–
openSUSE Ambassador & Member
What was that you were saying about Linux being a headache?
Sorry, I couldn’t hear you over the sound of openSUSE being awesome.
– Helen South on opensuse-marketing Mailinglist
If you have a series of those images with different color settings according to the time of day
you can load it in the xfce desktop settings and set the time to change images.
On 2013-02-16 02:46, conram wrote:
>
> If you have a series of those images with different color settings
> according to the time of day
> you can load it in the xfce desktop settings and set the time to change
> images.
The images are dynamically created, one at the current time, one every
20 minutes. To do what you say, I would have to create a list of
hundreds of images in advance, as I don’t close my session in weeks if I
can avoid it.
That’s hardly feasible
Or… can I generate all images for the current day every day, and will
it load the correct image at the correct time, somehow?
I see in the desktop configuration dialog that I can add a list of
images, one by one. Then there is a setting to change the image every X
minutes. But I can not set the exact time at which to load each image of
the list.
What I have done now is a list of one image, and reload every 20’, but
the generation and the reload will not be in sync.
It is a very crude interface, compared with gnome 2.
–
Cheers / Saludos,
Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)
Why hundreds of images?
If I understand your original post, it is about the 24 hour earth rotation
of earth and images change accordingly to the time every 20 minutes.
If my math is right you only need 72 images to complete the 24 hours
unless there are images that you like to show within a period of one week.
On 2013-02-16 16:06, conram wrote:
> Why hundreds of images?
> If I understand your original post, it is about the 24 hour earth
> rotation
> of earth and images change accordingly to the time every 20 minutes.
> If my math is right you only need 72 images to complete the 24 hours
> unless there are images that you like to show within a period of one
> week.
As one of my last comments said, I have it running with a /list/ of 1
image, regenerated each 20 minutes by a cron script. Also, in the
desktop configuration I tell it to switch the image each 20 minutes.
So far so good, it works: but the image can be generated at 12:00 and
not been displayed till 12:19 because both timed processes are not in
sync (cron and desktop). Of course, I can tell the desktop to refresh
oftener, but that’s a “waste” of resources. Small waste, but a waste.
In fact, my current background image this minute displays time as 17:00,
and the local time is 17:25 (I don’t know when desktop will refresh). In
Gnome 2 it would had refreshed at the exact time, triggered by the cron job.
(refreshed just now, 17:28, so 8 minutes delay on this session)
This could be solved if we had a sort of “cron” daemon started by the
desktop and inheriting desktop variables, so that graphical related
tasks such as
xfdesktop --reload
would work.
–
Cheers / Saludos,
Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)
> On 2013-02-16 16:06, conram wrote:
>> Why hundreds of images?
>> If I understand your original post, it is about the 24 hour earth
>> rotation
>> of earth and images change accordingly to the time every 20 minutes.
>> If my math is right you only need 72 images to complete the 24 hours
>> unless there are images that you like to show within a period of one
>> week.
>
> As one of my last comments said, I have it running with a /list/ of 1
> image, regenerated each 20 minutes by a cron script. Also, in the
> desktop configuration I tell it to switch the image each 20 minutes.
>
> So far so good, it works: but the image can be generated at 12:00 and
> not been displayed till 12:19 because both timed processes are not in
> sync (cron and desktop). Of course, I can tell the desktop to refresh
> oftener, but that’s a “waste” of resources. Small waste, but a waste.
>
>
> In fact, my current background image this minute displays time as 17:00,
> and the local time is 17:25 (I don’t know when desktop will refresh). In
> Gnome 2 it would had refreshed at the exact time, triggered by the cron
> job.
>
> (refreshed just now, 17:28, so 8 minutes delay on this session)
>
>
> This could be solved if we had a sort of “cron” daemon started by the
> desktop and inheriting desktop variables, so that graphical related
> tasks such as