diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-17 13:29:25 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-17 13:29:25 +1000 |
| commit | 3416178ad4bff27e6973940aa6fc1a11d366050b (patch) | |
| tree | 92fb934a851f0d7bdf84aff379051655e13dbb40 /src/caelestia/utils/wallpaper.py | |
| parent | scheme: error notif critical urgency (diff) | |
| download | caelestia-cli-3416178ad4bff27e6973940aa6fc1a11d366050b.tar.gz caelestia-cli-3416178ad4bff27e6973940aa6fc1a11d366050b.tar.bz2 caelestia-cli-3416178ad4bff27e6973940aa6fc1a11d366050b.zip | |
wallpaper: fix print command
Diffstat (limited to 'src/caelestia/utils/wallpaper.py')
| -rw-r--r-- | src/caelestia/utils/wallpaper.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/caelestia/utils/wallpaper.py b/src/caelestia/utils/wallpaper.py index d7e1ea2..e9453e8 100644 --- a/src/caelestia/utils/wallpaper.py +++ b/src/caelestia/utils/wallpaper.py @@ -91,11 +91,14 @@ def get_colours_for_wall(wall: Path | str, no_smart: bool) -> None: scheme = get_scheme() cache = wallpapers_cache_dir / compute_hash(wall) - if scheme.name == "dynamic" and not no_smart: + name = "dynamic" + flavour = scheme.flavour if scheme.flavour in ("default", "alt1", "alt2") else "default" + + if not no_smart: scheme = Scheme( { - "name": scheme.name, - "flavour": scheme.flavour, + "name": name, + "flavour": flavour, "mode": get_smart_mode(wall, cache), "variant": scheme.variant, "colours": scheme.colours, @@ -103,8 +106,8 @@ def get_colours_for_wall(wall: Path | str, no_smart: bool) -> None: ) return { - "name": scheme.name, - "flavour": scheme.flavour, + "name": name, + "flavour": flavour, "mode": scheme.mode, "variant": scheme.variant, "colours": get_colours_for_image(get_thumb(wall, cache), scheme), |