feat: impl wallpaper

This commit is contained in:
2 * r + 2 * t
2025-06-12 21:35:05 +10:00
parent a53a2568ec
commit c043a14ca2
5 changed files with 154 additions and 12 deletions
+5 -2
View File
@@ -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: