scheme: new way of tracking

centralise the colours so all of them are kept here
This commit is contained in:
2 * r + 2 * t
2025-02-19 17:26:31 +11:00
parent bd45501b31
commit 066b9256b2
17 changed files with 188 additions and 288 deletions
+4 -1
View File
@@ -112,7 +112,10 @@ else
# Generate colour scheme for wallpaper
set -l src (dirname (status filename))
$src/scheme/apply-scheme.fish $chosen_wallpaper
$src/scheme/gen-scheme.fish $chosen_wallpaper > $src/data/schemes/dynamic.txt
if test -f $CACHE/scheme/current.txt -a "$(cat $CACHE/scheme/current-name.txt)" = 'dynamic'
cp $src/data/schemes/dynamic.txt $CACHE/scheme/current.txt
end
# Store the wallpaper chosen
mkdir -p $cache_dir