scripts: tweak swww options

This commit is contained in:
Hoang Nguyen 2022-09-03 15:11:05 +07:00
parent ff4aae2d82
commit f4069d0144
No known key found for this signature in database
GPG Key ID: 813CF484F4993419
1 changed files with 10 additions and 2 deletions

View File

@ -42,7 +42,9 @@ fi
pkill -9 mpvpaper
for i in ${outputs}; do
mpvpaper -f -p -o 'no-audio --loop-file=inf --profile=libmpv' "$i" "$(shuf -z -n 1 -e ${wallpapers})"
mpvpaper -f -p \
-o 'no-audio --loop-file=inf --profile=libmpv' \
"$i" "$(shuf -z -n 1 -e ${wallpapers})"
done
{% elif wallpaper_engine == 'swww' %}
# Re-launch the wallpaper daemon
@ -50,6 +52,12 @@ swww kill 2>/dev/null
swww init
for i in ${outputs}; do
swww img --transition-type random -o "$i" "$(shuf -z -n 1 -e ${wallpapers})"
swww img \
--transition-type random \
--transition-speed 10 \
--transition-step 10 \
--filter Lanczos3 \
--outputs "$i" \
"$(shuf -z -n 1 -e ${wallpapers})"
done
{% endif %}