summaryrefslogtreecommitdiff
path: root/src/caelestia/utils/paths.py
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-12 21:35:05 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-12 21:35:05 +1000
commitc043a14ca24f70e81b69133350a1174d2e6572fc (patch)
treea938eae5dd8fb468f10d189ec141eeae228e0537 /src/caelestia/utils/paths.py
parentscheme: fix not saving atomically (diff)
downloadcaelestia-cli-c043a14ca24f70e81b69133350a1174d2e6572fc.tar.gz
caelestia-cli-c043a14ca24f70e81b69133350a1174d2e6572fc.tar.bz2
caelestia-cli-c043a14ca24f70e81b69133350a1174d2e6572fc.zip
feat: impl wallpaper
Diffstat (limited to 'src/caelestia/utils/paths.py')
-rw-r--r--src/caelestia/utils/paths.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/caelestia/utils/paths.py b/src/caelestia/utils/paths.py
index 3b5a7a6..f81b996 100644
--- a/src/caelestia/utils/paths.py
+++ b/src/caelestia/utils/paths.py
@@ -22,11 +22,14 @@ scheme_path = c_state_dir / "scheme.json"
scheme_data_dir = cli_data_dir / "schemes"
scheme_cache_dir = c_cache_dir / "schemes"
-last_wallpaper_path = c_state_dir / "wallpaper/last.txt"
+wallpapers_dir = Path.home() / "Pictures/Wallpapers"
+wallpaper_path_path = c_state_dir / "wallpaper/path.txt"
+wallpaper_link_path = c_state_dir / "wallpaper/current"
wallpaper_thumbnail_path = c_state_dir / "wallpaper/thumbnail.jpg"
+thumbnail_cache_dir = c_cache_dir / "thumbnails"
-def compute_hash(path: str) -> str:
+def compute_hash(path: Path | str) -> str:
sha = hashlib.sha256()
with open(path, "rb") as f: