From aebfcf2118a9db31916626890c1da34d2eb4096a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berke=20Kocao=C4=9Flu?= Date: Thu, 19 Sep 2024 11:23:10 +0300 Subject: [PATCH] wallpaper: fix `-x mpv` Regression in d792ce9993. --- src/sh/util/udev/wallpaper | 46 +++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/src/sh/util/udev/wallpaper b/src/sh/util/udev/wallpaper index 4a667eab..65e2cc12 100755 --- a/src/sh/util/udev/wallpaper +++ b/src/sh/util/udev/wallpaper @@ -507,31 +507,31 @@ EOF4 mpvargs="--vo=vaapi" fi - pids="$(while IFS= read -r geom <&3 && IFS= read -r fl <&4; do - - xwinwrap $xwinwrapargs -g "$geom" -sub WID -- \ - prime-run mpv \ - --loop \ - --no-config \ - --no-input-terminal \ - --no-input-cursor \ - --no-osc \ - --no-osd-bar \ - --no-input-default-bindings \ - --cursor-autohide=no \ - --mute=yes \ - --stop-screensaver=no \ - --panscan=1 \ - --wid=WID \ - $mpvargs \ - -- "$fl" > /dev/null 2> /dev/null & - printf "%s\n" "$!" - done 3< /dev/null 2> /dev/null & + printf "%s\n" "$!" + done 3< "$optdir/.current-wallpapers" rm -rf -- "$optdir/.current-wallpaper-links" mkdir -p -- "$optdir/.current-wallpaper-links"