diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-13 16:10:40 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-13 16:10:40 +1000 |
| commit | 386ccf3729f9958b9127d928f2dc7f9c6958457a (patch) | |
| tree | c0d962bbf10271c6df8ec768d8211787304a4856 | |
| parent | record: fix multi-monitor and moving across filesystems (#38) (diff) | |
| download | caelestia-cli-386ccf3729f9958b9127d928f2dc7f9c6958457a.tar.gz caelestia-cli-386ccf3729f9958b9127d928f2dc7f9c6958457a.tar.bz2 caelestia-cli-386ccf3729f9958b9127d928f2dc7f9c6958457a.zip | |
paths: allow configuring via env vars
Closes #39
| -rw-r--r-- | src/caelestia/utils/paths.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/caelestia/utils/paths.py b/src/caelestia/utils/paths.py index f94be5b..d3a451c 100644 --- a/src/caelestia/utils/paths.py +++ b/src/caelestia/utils/paths.py @@ -27,16 +27,16 @@ scheme_path = c_state_dir / "scheme.json" scheme_data_dir = cli_data_dir / "schemes" scheme_cache_dir = c_cache_dir / "schemes" -wallpapers_dir = pictures_dir / "Wallpapers" +wallpapers_dir = pictures_dir / os.getenv("CAELESTIA_WALLPAPERS_DIR", "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" wallpapers_cache_dir = c_cache_dir / "wallpapers" -screenshots_dir = pictures_dir / "Screenshots" +screenshots_dir = pictures_dir / os.getenv("CAELESTIA_SCREENSHOTS_DIR", "Screenshots") screenshots_cache_dir = c_cache_dir / "screenshots" -recordings_dir = videos_dir / "Recordings" +recordings_dir = videos_dir / os.getenv("CAELESTIA_RECORDINGS_DIR", "Recordings") recording_path = c_state_dir / "record/recording.mp4" recording_notif_path = c_state_dir / "record/notifid.txt" |