This commit is contained in:
Stephan Raabe
2024-03-28 12:23:11 +01:00
parent f4dd412733
commit 04ac911a5f
11 changed files with 57 additions and 14 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/bin/bash
wallpaper_engine=$(cat $HOME/dotfiles/.settings/wallpaper-engine.sh)
if [ "$wallpaper_engine" == "swww" ] ;then
# swww
echo ":: Using swww"
swww init
swww-daemon --format xrgb
sleep 0.5
~/dotfiles/hypr/scripts/wallpaper.sh init
elif [ "$wallpaper_engine" == "hyprpaper" ] ;then
# hyprpaper
echo ":: Using hyprpaper"
# hyprpaper
sleep 0.5
~/dotfiles/hypr/scripts/wallpaper.sh init
else
echo ":: Wallpaper Engine disabled"
~/dotfiles/hypr/scripts/wallpaper.sh init
fi
+22 -6
View File
@@ -88,12 +88,28 @@ transition_type="wipe"
# transition_type="outer"
# transition_type="random"
swww img $wallpaper \
--transition-bezier .43,1.19,1,.4 \
--transition-fps=60 \
--transition-type=$transition_type \
--transition-duration=0.7 \
--transition-pos "$( hyprctl cursorpos )"
wallpaper_engine=$(cat $HOME/dotfiles/.settings/wallpaper-engine.sh)
if [ "$wallpaper_engine" == "swww" ] ;then
# swww
echo ":: Using swww"
swww img $wallpaper \
--transition-bezier .43,1.19,1,.4 \
--transition-fps=60 \
--transition-type=$transition_type \
--transition-duration=0.7 \
--transition-pos "$( hyprctl cursorpos )"
elif [ "$wallpaper_engine" == "hyprpaper" ] ;then
# hyprpaper
echo ":: Using hyprpaper"
killall hyprpaper
echo -n "" > $HOME/dotfiles/hypr/hyprpaper.conf
echo "preload = $wallpaper" >> $HOME/dotfiles/hypr/hyprpaper.conf
echo "wallpaper = ,$wallpaper" >> $HOME/dotfiles/hypr/hyprpaper.conf
echo "splash = false" >> $HOME/dotfiles/hypr/hyprpaper.conf
hyprpaper &
else
echo ":: Wallpaper Engine disabled"
fi
if [ "$1" == "init" ] ;then
echo ":: Init"