Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gnome XML compatibility #130

Open
Beryesa opened this issue Sep 14, 2023 · 1 comment
Open

Gnome XML compatibility #130

Beryesa opened this issue Sep 14, 2023 · 1 comment

Comments

@Beryesa
Copy link

Beryesa commented Sep 14, 2023

Hi, I wondered, if we can make a pseudo-xdg standard for dynamic wallpapers by doing PRs to either side?
Since this is an external plugin and gnome has it natively already (42+), I think this one can adapt easier to that instead of vice versa.
An example file from fedora

<background>
  <starttime>
    <year>2023</year>
    <month>04</month>
    <day>18</day>
    <hour>8</hour>
    <minute>00</minute>
    <second>00</second>
  </starttime>
<!-- This animation will start at 8 AM. -->

<!-- We start with day at 8 AM. It will remain up for 10 hours. -->
<static>
<duration>36000.0</duration>
<file>/usr/share/backgrounds/f38/default/f38-01-day.png</file>
</static>

<!-- Day ended and starts to transition to night at 6 PM. The transition lasts for 2 hours, ending at 8 PM. -->
<transition type="overlay">
<duration>7200.0</duration>
<from>/usr/share/backgrounds/f38/default/f38-01-day.png</from>
<to>/usr/share/backgrounds/f38/default/f38-01-night.png</to>
</transition>

<!-- It's 8 PM, we're showing the night till 6 AM. -->
<static>
<duration>36000.0</duration>
<file>/usr/share/backgrounds/f38/default/f38-01-night.png</file>
</static>

<!-- It's 6 AM, and we're starting to transition to day. Transition completes at 8 AM. -->
<transition type="overlay">
<duration>7200.0</duration>
<from>/usr/share/backgrounds/f38/default/f38-01-night.png</from>
<to>/usr/share/backgrounds/f38/default/f38-01-day.png</to>
</transition>

</background>

Like that
resim

Or should I bring this up to respective design teams instead?
Thanks.

@Beryesa
Copy link
Author

Beryesa commented Sep 14, 2023

If we compare the two "Lakeside" config (please ignore the path 😅)

<!-- Generated by com.github.maoschanz.DynamicWallpaperEditor -->
<background>
	<starttime>
		<year>2020</year>
		<month>1</month>
		<day>23</day>
		<hour>22</hour>
		<minute>0</minute>
		<second>0</second>
	</starttime>

	<static>
		<file>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-12.jpg</file>
		<duration>21595.0</duration>
	</static>

	<transition type="overlay">
		<duration>5.0</duration>
		<from>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-12.jpg</from>
		<to>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-1.jpg</to>
	</transition>

	<static>
		<file>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-1.jpg</file>
		<duration>3595.0</duration>
	</static>

	<transition type="overlay">
		<duration>5.0</duration>
		<from>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-1.jpg</from>
		<to>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-2.jpg</to>
	</transition>

	<static>
		<file>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-2.jpg</file>
		<duration>3595.0</duration>
	</static>

	<transition type="overlay">
		<duration>5.0</duration>
		<from>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-2.jpg</from>
		<to>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-3.jpg</to>
	</transition>

	<static>
		<file>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-3.jpg</file>
		<duration>3595.0</duration>
	</static>

	<transition type="overlay">
		<duration>5.0</duration>
		<from>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-3.jpg</from>
		<to>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-4.jpg</to>
	</transition>

	<static>
		<file>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-4.jpg</file>
		<duration>3595.0</duration>
	</static>

	<transition type="overlay">
		<duration>5.0</duration>
		<from>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-4.jpg</from>
		<to>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-5.jpg</to>
	</transition>

	<static>
		<file>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-5.jpg</file>
		<duration>7195.0</duration>
	</static>

	<transition type="overlay">
		<duration>5.0</duration>
		<from>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-5.jpg</from>
		<to>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-6.jpg</to>
	</transition>

	<static>
		<file>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-6.jpg</file>
		<duration>7195.0</duration>
	</static>

	<transition type="overlay">
		<duration>5.0</duration>
		<from>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-6.jpg</from>
		<to>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-7.jpg</to>
	</transition>

	<static>
		<file>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-7.jpg</file>
		<duration>7195.0</duration>
	</static>

	<transition type="overlay">
		<duration>5.0</duration>
		<from>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-7.jpg</from>
		<to>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-8.jpg</to>
	</transition>

	<static>
		<file>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-8.jpg</file>
		<duration>7195.0</duration>
	</static>

	<transition type="overlay">
		<duration>5.0</duration>
		<from>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-8.jpg</from>
		<to>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-9.jpg</to>
	</transition>

	<static>
		<file>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-9.jpg</file>
		<duration>7195.0</duration>
	</static>

	<transition type="overlay">
		<duration>5.0</duration>
		<from>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-9.jpg</from>
		<to>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-10.jpg</to>
	</transition>

	<static>
		<file>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-10.jpg</file>
		<duration>7195.0</duration>
	</static>

	<transition type="overlay">
		<duration>5.0</duration>
		<from>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-10.jpg</from>
		<to>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-11.jpg</to>
	</transition>

	<static>
		<file>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-11.jpg</file>
		<duration>7195.0</duration>
	</static>

	<transition type="overlay">
		<duration>5.0</duration>
		<from>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-11.jpg</from>
		<to>/home/ely/.local/share/backgrounds/gnome/Lakeside-timed/Lakeside-12.jpg</to>
	</transition>
</background>
{
  "Type": "solar",
  "Meta": [
  	{
    	  "CrossFade": false,
    	  "Time": "00:00",
    	  "FileName": "dear-1.jpg"
    	},
    	{
    	  "CrossFade": false,
    	  "Time": "02:00",
    	  "FileName": "dear-2.jpg"
    	},
    	{
    	  "CrossFade": false,
    	  "Time": "04:00",
    	  "FileName": "dear-3.jpg"
    	},
    	{
    	  "CrossFade": false,
    	  "Time": "06:00",
    	  "FileName": "dear-4.jpg"
    	},
    	{
    	  "CrossFade": false,
    	  "Time": "08:00",
    	  "FileName": "dear-5.jpg"
    	},
    	{
    	  "CrossFade": false,
    	  "Time": "10:00",
    	  "FileName": "dear-6.jpg"
    	},
    	{
    	  "CrossFade": false,
    	  "Time": "12:00",
    	  "FileName": "dear-7.jpg"
    	},
    	{
    	  "CrossFade": false,
    	  "Time": "14:00",
    	  "FileName": "dear-8.jpg"
    	},
    	{
    	  "CrossFade": false,
    	  "Time": "16:00",
    	  "FileName": "dear-9.jpg"
    	},
    	{
    	  "CrossFade": false,
    	  "Time": "18:00",
    	  "FileName": "dear-10.jpg"
    	},
    	{
    	  "CrossFade": false,
    	  "Time": "20:00",
    	  "FileName": "dear-11.jpg"
    	},
    	{
    	  "CrossFade": false,
    	  "Time": "22:00",
    	  "FileName": "dear-12.jpg"
    	}
  ]
}

It shouldn't be hard to achieve, I guess even I can make up a pr on that.
But I'm here for the thoughts first!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant