deviantfero / wpgtk

:flower_playing_cards: a colorscheme, wallpaper and template manager for *nix
http://deviantfero.github.io/wpgtk/
GNU General Public License v2.0
2.06k stars 48 forks source link

Generate theme from JSON file #282

Open distek opened 1 year ago

distek commented 1 year ago

Hello!

I might be missing it but how would I go about just providing a JSON input like so:

{
    "color": [
        "2F183A",
        "B44646",
        "7E5BAE",
        "D6A8F0",
        "A6A0E9",
        "C462F9",
        "9B78E3",
        "EFCDF3",
        "46304F",
        "BD5656",
        "8B6CB7",
        "DAB1F1",
        "AEA8EB",
        "CA70FA",
        "A584E6",
        "F0D2F4"
    ],
    "foreground": "c1a2eb",
    "background": "17041f"
}

And having wpgtk generate a theme based on that? I dont necessarily want to use wal or a wallpaper image, since I already have a color scheme I like.

fov95 commented 1 year ago

I always had issues with that. I think the implementation is a bit confusing. WPG always wants to create themes. There should be an option to just set image and different theme json without necessarily creating a theme. wpg -i /path/to/img.jpg -j /path/to/json.json or just -j to set a json file from any place. color schemes shouldn't be bound to an image IMO.