Skip to content

Conversation

PixelKhaos
Copy link

@PixelKhaos PixelKhaos commented Oct 4, 2025

The ~/.local/state/caelestia/wallpaper/path.txt wasn't actually updating on gif selection, while the CLI get function was, so restarting the shell didn't apply the previously set gif, but instead the last valid static image.

is_valid_image() in the wallpaper.py, from the caelestia-cli-git would need to be updated to also include gifs for it to not error and actually write the path.

def is_valid_image(path: Path) -> bool:
    return path.is_file() and path.suffix.lower() in [
        ".jpg", ".jpeg", ".png", ".webp", ".tif", ".tiff", ".gif", ".svg"
    ]

This PR is really just a quick bypass of the CLI, instead just writing to the .txt for the path, and JSON for the colors.
Actually updating the CLI would be better, but I'm not sure how much that actually gets updated/merged PRs, but this workaround feels a bit like one of those "yeah, just use the CLI" haha

(of course I pulled in the upstream updates just because I merged yours in to a clean branch lol)

@Gitkubikon Gitkubikon merged commit eca1c70 into Gitkubikon:background-gif-support Oct 6, 2025
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

Successfully merging this pull request may close these issues.

3 participants