From 231185d3397483c58483a714e0cf0d4ec5bd8e5a Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 26 Jan 2025 00:05:01 +1100 Subject: scheme: dynamic scheme --- wallpaper.fish | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'wallpaper.fish') diff --git a/wallpaper.fish b/wallpaper.fish index 0bde3f2..150bdd1 100755 --- a/wallpaper.fish +++ b/wallpaper.fish @@ -38,7 +38,7 @@ else # Use wallpaper given as argument else choose random if set -q _flag_f - set chosen_wallpaper "$(cd $(dirname $_flag_f) && pwd)/$(basename $_flag_f)" + set chosen_wallpaper (realpath $_flag_f) # Set last wallpaper if not same as given if [ -f "$last_wallpaper_path" ] @@ -96,6 +96,10 @@ else # Unload unused wallpapers to preserve memory hyprctl hyprpaper unload unused > /dev/null + # Generate colour scheme for wallpaper + set -l src (dirname (status filename)) + $src/scheme/apply-scheme.fish $chosen_wallpaper + # Store the wallpaper chosen mkdir -p $cache_dir echo $chosen_wallpaper > $last_wallpaper_path -- cgit v1.2.3-freya