use data and state
This commit is contained in:
parent
dbd4055bb8
commit
5987b998d8
6 changed files with 9 additions and 9 deletions
|
|
@ -30,4 +30,4 @@ exec-once = mpris-proxy
|
||||||
exec-once = caelestia pip -d
|
exec-once = caelestia pip -d
|
||||||
|
|
||||||
# SafeEyes
|
# SafeEyes
|
||||||
exec-once = uwsm app -- ags run -d ~/.config/caelestia/safeeyes
|
exec-once = uwsm app -- ags run -d ~/.local/share/caelestia/safeeyes
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ animation {
|
||||||
|
|
||||||
background {
|
background {
|
||||||
color = rgb($crust)
|
color = rgb($crust)
|
||||||
path = $HOME/.cache/caelestia/wallpaper/current
|
path = $HOME/.local/state/caelestia/wallpaper/current
|
||||||
}
|
}
|
||||||
|
|
||||||
shape {
|
shape {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
splash = false
|
splash = false
|
||||||
|
|
||||||
preload = $HOME/.cache/caelestia/wallpaper/current
|
preload = $HOME/.local/state/caelestia/wallpaper/current
|
||||||
wallpaper = , $HOME/.cache/caelestia/wallpaper/current
|
wallpaper = , $HOME/.local/state/caelestia/wallpaper/current
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@ function read-scheme -a scheme_path
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
set -q XDG_CACHE_HOME && set -l cache $XDG_CACHE_HOME || set -l cache ~/.cache
|
set -q XDG_STATE_HOME && set -l state $XDG_STATE_HOME || set -l state $HOME/.local/state
|
||||||
set -l scheme_path $cache/caelestia/scheme/current.txt
|
set -l scheme_path $state/caelestia/scheme/current.txt
|
||||||
|
|
||||||
if test -f $scheme_path
|
if test -f $scheme_path
|
||||||
read-scheme $scheme_path > ~/.config/hypr/scheme/current.conf
|
read-scheme $scheme_path > ~/.config/hypr/scheme/current.conf
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/fish
|
#!/bin/fish
|
||||||
|
|
||||||
set -q XDG_CACHE_HOME && set cache $XDG_CACHE_HOME || set cache ~/.cache
|
set -q XDG_STATE_HOME && set -l state $XDG_STATE_HOME || set -l state $HOME/.local/state
|
||||||
set scheme_path $cache/caelestia/scheme/current.txt
|
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
|
inotifywait -e 'close_write,moved_to,create' -m (dirname $scheme_path) | while read dir events file
|
||||||
test "$dir$file" = $scheme_path && hyprctl reload
|
test "$dir$file" = $scheme_path && hyprctl reload
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/fish
|
#!/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
|
set -l cache $cache/caelestia/weather.json
|
||||||
|
|
||||||
if test -f $cache
|
if test -f $cache
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue