This commit is contained in:
Stephan Raabe 2024-03-28 15:50:38 +01:00
parent 17690a3cc7
commit 594543bc7d
3 changed files with 14 additions and 6 deletions

8
.settings/hyprpaper.tpl Normal file
View File

@ -0,0 +1,8 @@
# Preload Wallpapers
preload = WALLPAPER
# Set Wallpapers
wallpaper = ,WALLPAPER
# Disable Splash
splash = false

View File

@ -1,2 +1,3 @@
preload = ~/wallpaper/hyprland.jpg
wallpaper = ,~/wallpaper/hyprland.jpg
preload = $HOME/wallpaper/hyprland.jpg
wallpaper = ,$HOME/wallpaper/hyprland.jpg
splash = false

View File

@ -102,10 +102,9 @@ 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
wal_tpl=$(cat $HOME/dotfiles/.settings/hyprpaper.tpl)
output=${wal_tpl//WALLPAPER/$wallpaper}
echo "$output" > $HOME/dotfiles/hypr/hyprpaper.conf
hyprpaper &
else
echo ":: Wallpaper Engine disabled"