diff --git a/modules/wp/set-wallpaper.sh b/modules/wp/set-wallpaper.sh index ff4087d..69eeb6e 100755 --- a/modules/wp/set-wallpaper.sh +++ b/modules/wp/set-wallpaper.sh @@ -43,7 +43,10 @@ elif [ -x "/usr/bin/hyprpaper" ]; then echo "daemon started" fi sed -i "3s|path = .*|path = ${image}|" ~/.config/hypr/hyprpaper.conf - hyprctl hyprpaper wallpaper ", $image" + + hyprctl monitors -j | jq -r 'sort_by(.id) | .[].name' | while IFS= read -r display; do + hyprctl hyprpaper wallpaper "$display, $image" + done fi if [ -x "/usr/bin/matugen" ]; then