From f878f180fc22e1d22cf44419b3f68f41b77bd60b Mon Sep 17 00:00:00 2001 From: Pigbibi <20649888+Pigbibi@users.noreply.github.com> Date: Mon, 11 May 2026 02:11:17 +0800 Subject: [PATCH] Fix screen action geometry parsing --- .github/workflows/capture-screen.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/capture-screen.yml b/.github/workflows/capture-screen.yml index 0c1a35e..8860a32 100644 --- a/.github/workflows/capture-screen.yml +++ b/.github/workflows/capture-screen.yml @@ -122,8 +122,8 @@ jobs: fi geometry=$(xdotool getwindowgeometry --shell "$window_id") - width=$(printf "%s\n" "$geometry" | awk -F= "/^WIDTH=/{print \\$2}") - height=$(printf "%s\n" "$geometry" | awk -F= "/^HEIGHT=/{print \\$2}") + width=$(printf "%s\n" "$geometry" | sed -n "s/^WIDTH=//p") + height=$(printf "%s\n" "$geometry" | sed -n "s/^HEIGHT=//p") case "$screen_action" in resend-notification) click_x=$((width * 42 / 100))