forked from Shinonome/caelestia-cli
feat: impl wallpaper
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user