From 066b9256b2f1697db1f85cc529454dbb88bd5b57 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 19 Feb 2025 17:26:31 +1100 Subject: scheme: new way of tracking centralise the colours so all of them are kept here --- wallpaper.fish | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'wallpaper.fish') diff --git a/wallpaper.fish b/wallpaper.fish index 6276d47..80f510a 100755 --- a/wallpaper.fish +++ b/wallpaper.fish @@ -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 -- cgit v1.2.3-freya