diff --git a/modules/wp/set-wallpaper.sh b/modules/wp/set-wallpaper.sh index f5380b2..a5ac368 100755 --- a/modules/wp/set-wallpaper.sh +++ b/modules/wp/set-wallpaper.sh @@ -42,6 +42,7 @@ elif [ -x "/usr/bin/hyprpaper" ]; then sleep 0.2 echo "daemon started" fi + sed -i "3s|path = .*|path = ${image}|" ~/.config/hypr/hyprpaper.conf hyprctl hyprpaper wallpaper ", $image" fi @@ -63,4 +64,9 @@ blurred_wp="$static_wallpaper_dir/blurred.jpg" magick $image -blur $blur $blurred_wp +if [ -x "/usr/bin/sddm" ] && [ -d "/usr/share/backgrounds" ]; then + sddm_background="/usr/share/backgrounds/background.jpg" + cp "$image" "$sddm_background" +fi + echo "test"