summaryrefslogtreecommitdiff
path: root/src/caelestia/utils
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-04 16:48:15 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-04 16:48:15 +1000
commit50646cd5651735c12e9234d0a3d4189b6f08fc90 (patch)
tree1ba5ce9c3c944702e1d30e8b6988274dd9ba2559 /src/caelestia/utils
parenttheme: add config for progs to theme (diff)
downloadcaelestia-cli-50646cd5651735c12e9234d0a3d4189b6f08fc90.tar.gz
caelestia-cli-50646cd5651735c12e9234d0a3d4189b6f08fc90.tar.bz2
caelestia-cli-50646cd5651735c12e9234d0a3d4189b6f08fc90.zip
paths: use xdg user paths
Closes #35
Diffstat (limited to 'src/caelestia/utils')
-rw-r--r--src/caelestia/utils/paths.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/caelestia/utils/paths.py b/src/caelestia/utils/paths.py
index 7581c51..f94be5b 100644
--- a/src/caelestia/utils/paths.py
+++ b/src/caelestia/utils/paths.py
@@ -9,6 +9,8 @@ config_dir = Path(os.getenv("XDG_CONFIG_HOME", Path.home() / ".config"))
data_dir = Path(os.getenv("XDG_DATA_HOME", Path.home() / ".local/share"))
state_dir = Path(os.getenv("XDG_STATE_HOME", Path.home() / ".local/state"))
cache_dir = Path(os.getenv("XDG_CACHE_HOME", Path.home() / ".cache"))
+pictures_dir = Path(os.getenv("XDG_PICTURES_DIR", Path.home() / "Pictures"))
+videos_dir = Path(os.getenv("XDG_VIDEOS_DIR", Path.home() / "Videos"))
c_config_dir = config_dir / "caelestia"
c_data_dir = data_dir / "caelestia"
@@ -25,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 = Path.home() / "Pictures/Wallpapers"
+wallpapers_dir = pictures_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 = Path.home() / "Pictures/Screenshots"
+screenshots_dir = pictures_dir / "Screenshots"
screenshots_cache_dir = c_cache_dir / "screenshots"
-recordings_dir = Path.home() / "Videos/Recordings"
+recordings_dir = videos_dir / "Recordings"
recording_path = c_state_dir / "record/recording.mp4"
recording_notif_path = c_state_dir / "record/notifid.txt"