summaryrefslogtreecommitdiff
path: root/wallpaper.fish
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-26 00:05:01 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-26 00:05:01 +1100
commit231185d3397483c58483a714e0cf0d4ec5bd8e5a (patch)
tree35205bec9a8469eb7b4e686ed1d81ebb02329cf5 /wallpaper.fish
parenttoggle-communication: use discord integration (diff)
downloadcaelestia-cli-231185d3397483c58483a714e0cf0d4ec5bd8e5a.tar.gz
caelestia-cli-231185d3397483c58483a714e0cf0d4ec5bd8e5a.tar.bz2
caelestia-cli-231185d3397483c58483a714e0cf0d4ec5bd8e5a.zip
scheme: dynamic scheme
Diffstat (limited to 'wallpaper.fish')
-rwxr-xr-xwallpaper.fish6
1 files changed, 5 insertions, 1 deletions
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