From 5987b998d8cf0271c542bd2c7aeb4eeba9c4c2c4 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 22 Feb 2025 14:22:52 +1100 Subject: [PATCH] use data and state --- hyprland/execs.conf | 2 +- hyprlock.conf | 2 +- hyprpaper.conf | 4 ++-- scripts/gen-scheme.fish | 4 ++-- scripts/monitor-scheme.fish | 4 ++-- scripts/weather.fish | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/hyprland/execs.conf b/hyprland/execs.conf index a017f08..2bd59dd 100644 --- a/hyprland/execs.conf +++ b/hyprland/execs.conf @@ -30,4 +30,4 @@ exec-once = mpris-proxy exec-once = caelestia pip -d # SafeEyes -exec-once = uwsm app -- ags run -d ~/.config/caelestia/safeeyes +exec-once = uwsm app -- ags run -d ~/.local/share/caelestia/safeeyes diff --git a/hyprlock.conf b/hyprlock.conf index ceb12e1..070dcc9 100644 --- a/hyprlock.conf +++ b/hyprlock.conf @@ -16,7 +16,7 @@ animation { background { color = rgb($crust) - path = $HOME/.cache/caelestia/wallpaper/current + path = $HOME/.local/state/caelestia/wallpaper/current } shape { diff --git a/hyprpaper.conf b/hyprpaper.conf index e4cd6b2..7d4a9af 100644 --- a/hyprpaper.conf +++ b/hyprpaper.conf @@ -1,4 +1,4 @@ splash = false -preload = $HOME/.cache/caelestia/wallpaper/current -wallpaper = , $HOME/.cache/caelestia/wallpaper/current +preload = $HOME/.local/state/caelestia/wallpaper/current +wallpaper = , $HOME/.local/state/caelestia/wallpaper/current diff --git a/scripts/gen-scheme.fish b/scripts/gen-scheme.fish index 4f7ccdd..9fdb802 100755 --- a/scripts/gen-scheme.fish +++ b/scripts/gen-scheme.fish @@ -7,8 +7,8 @@ function read-scheme -a scheme_path end end -set -q XDG_CACHE_HOME && set -l cache $XDG_CACHE_HOME || set -l cache ~/.cache -set -l scheme_path $cache/caelestia/scheme/current.txt +set -q XDG_STATE_HOME && set -l state $XDG_STATE_HOME || set -l state $HOME/.local/state +set -l scheme_path $state/caelestia/scheme/current.txt if test -f $scheme_path read-scheme $scheme_path > ~/.config/hypr/scheme/current.conf diff --git a/scripts/monitor-scheme.fish b/scripts/monitor-scheme.fish index b7c8440..56f5a22 100755 --- a/scripts/monitor-scheme.fish +++ b/scripts/monitor-scheme.fish @@ -1,7 +1,7 @@ #!/bin/fish -set -q XDG_CACHE_HOME && set cache $XDG_CACHE_HOME || set cache ~/.cache -set scheme_path $cache/caelestia/scheme/current.txt +set -q XDG_STATE_HOME && set -l state $XDG_STATE_HOME || set -l state $HOME/.local/state +set -l scheme_path $state/caelestia/scheme/current.txt inotifywait -e 'close_write,moved_to,create' -m (dirname $scheme_path) | while read dir events file test "$dir$file" = $scheme_path && hyprctl reload diff --git a/scripts/weather.fish b/scripts/weather.fish index a21597e..1a6653e 100755 --- a/scripts/weather.fish +++ b/scripts/weather.fish @@ -1,6 +1,6 @@ #!/bin/fish -set -q XDG_CACHE_HOME && set -l cache $XDG_CACHE_HOME || set -l cache ~/.cache +set -q XDG_CACHE_HOME && set -l cache $XDG_CACHE_HOME || set -l cache $HOME/.cache set -l cache $cache/caelestia/weather.json if test -f $cache