From fe8db21616569963c117aaf9b5173d9ed3348312 Mon Sep 17 00:00:00 2001 From: Emile Clark-Boman Date: Sat, 2 Aug 2025 12:46:19 +1000 Subject: [PATCH] add swww interface script --- scripts/set-wallpaper | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 scripts/set-wallpaper 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