Browse Source

Hyprland: Update wallpaper.sh for new hyprpaper.sock location

wayland
Riyyi 3 months ago
parent
commit
c62cd37298
  1. 7
      .local/bin/wm/wallpaper.sh

7
.local/bin/wm/wallpaper.sh

@ -11,13 +11,10 @@ if [ "$WAYLAND" = true ]; then
setsid -f hyprpaper setsid -f hyprpaper
# Wait until hyprpaper is available # Wait until hyprpaper is available
while true; do while [ -z "$(find "$XDG_RUNTIME_DIR/hypr" -name ".hyprpaper.sock")" ]; do
output=$(hyprctl hyprpaper)
if ! echo "$output" | grep -q ".sock"; then
break
fi
sleep 0.1 sleep 0.1
done done
sleep 0.1
hyprctl hyprpaper preload "$WALLPAPER" hyprctl hyprpaper preload "$WALLPAPER"
hyprctl hyprpaper wallpaper ",$WALLPAPER" hyprctl hyprpaper wallpaper ",$WALLPAPER"

Loading…
Cancel
Save