mczachurski / wallpapper

:computer: Console application for creating dynamic wallpapers for macOS Mojave and newer
MIT License
3.32k stars 137 forks source link

Feature: add support for `apple_desktop:h24` #36

Closed folletto closed 5 years ago

folletto commented 5 years ago

I discovered that there's a second option for dynamic wallpapers, h24, which supports ti. Would it possible to add support for it? I tried to script it but while I manage to generate it, it doesn't seem to work – I might be missing something.

This means that we have:

The time info data is like this:

ti = (
    {
        i = 0;
        t = "0.375";
    },
    ...
);

The entry t is a decimal conversion of 24 hours, so for example 9:00 = 0.375 (9/24). The ap parameter with l and d seem working as before.

Some wallpapers from Dynamic Wallpaper Club (for example this) use this method, and they work – tested on Mojave 10.14.5. Their online generator is able to generate such wallpapers, as is the Dynaper app.

For reference, original discussion via Twitter: https://twitter.com/Folletto/status/1142600399347736576

mczachurski commented 5 years ago

Hi, thank you for all information. I will introduce support of that kind of wallpapers 👍