add swww interface script
This commit is contained in:
parent
b303ffb3cc
commit
fe8db21616
1 changed files with 17 additions and 0 deletions
17
scripts/set-wallpaper
Executable file
17
scripts/set-wallpaper
Executable file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue