scheme: dynamic scheme

This commit is contained in:
2 * r + 2 * t
2025-01-26 00:05:01 +11:00
parent c5f00b1c0f
commit 231185d339
5 changed files with 121 additions and 2 deletions
+5 -1
View File
@@ -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