diff --git a/scripts/set-wallpaper b/scripts/set-wallpaper new file mode 100755 index 0000000..2f6b928 --- /dev/null +++ b/scripts/set-wallpaper @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +# THIS PROGRAM RELIES SOLELY ON `SWWW` + +transition=$1 +wallpaper_path=$2 + +if [[ "$transition" == "wipe" ]]; then + swww img --transition-type wipe --transition-angle 30 --transition-step 90 --transition-fps 60 $wallpaper_path +elif [[ "$transition" == "preview" ]]; then + swww img --transition-type wipe --transition-angle 45 --transition-step 90 --transition-bezier .27,.98,.78,0 --transition-fps 60 $wallpaper_path +elif [[ "$transition" == "circle" ]]; then + swww img --transition-type grow --transition-pos "$(hyprctl cursorpos)" --transition-duration 3 --transition-fps 60 --invert-y $wallpaper_path +else + echo "[!] Unknown transition type \"$transition\"" + exit 1 +fi