wallpaper: use shell for wallpaper

This commit is contained in:
2 * r + 2 * t
2025-06-08 00:41:33 +10:00
parent 94c93e2d69
commit b9c146d469
-9
View File
@@ -97,15 +97,6 @@ else
set chosen_wallpaper (random choice $wallpapers)
end
# Change the wallpaper and output change if success
hyprctl hyprpaper preload $chosen_wallpaper > /dev/null
for monitor in (hyprctl -j monitors | jq -r '.[].name')
hyprctl hyprpaper wallpaper "$monitor,$chosen_wallpaper" > /dev/null && log "Changed wallpaper on $monitor to $chosen_wallpaper"
end
# Unload unused wallpapers to preserve memory
hyprctl hyprpaper unload unused > /dev/null
# Thumbnail wallpaper for colour gen
mkdir -p $C_CACHE/thumbnails
set -l thumb_path $C_CACHE/thumbnails/(sha1sum $chosen_wallpaper | cut -d ' ' -f 1).jpg