Hyprland: Update wallpaper.sh for new hyprpaper.sock location
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user