Hyprland-dotfiles/hypr/scripts/init-wallpaper-engine.sh

20 lines
519 B
Bash
Raw Normal View History

2024-03-28 07:23:11 -04:00
#!/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"
sleep 0.5
~/dotfiles/hypr/scripts/wallpaper.sh init
else
echo ":: Wallpaper Engine disabled"
~/dotfiles/hypr/scripts/wallpaper.sh init
fi