Add random effects to wallpaper change

This commit is contained in:
Stephan Raabe 2023-10-01 11:21:02 +02:00
parent 62b8bf3643
commit 4385af8b9b
2 changed files with 14 additions and 2 deletions

View File

@ -32,7 +32,13 @@ newwall=$(echo $wallpaper | sed "s|$HOME/wallpaper/||g")
# -----------------------------------------------------
# Set the new wallpaper
# -----------------------------------------------------
swww img $wallpaper --transition-step 20 --transition-fps=20
swww img $wallpaper \
--transition-bezier .43,1.19,1,.4 \
--transition-fps=60 \
--transition-type="random" \
--transition-duration=0.7 \
--transition-pos "$( hyprctl cursorpos )"
~/dotfiles/waybar/launch.sh
sleep 1

View File

@ -37,7 +37,13 @@ if [ "$selected" ]; then
# -----------------------------------------------------
# Set the new wallpaper
# -----------------------------------------------------
swww img $wallpaper --transition-step 20 --transition-fps=20
swww img $wallpaper \
--transition-bezier .43,1.19,1,.4 \
--transition-fps=60 \
--transition-type="random" \
--transition-duration=0.7 \
--transition-pos "$( hyprctl cursorpos )"
~/dotfiles/waybar/launch.sh
sleep 1