X-Git-Url: https://git.ao2.it/libam7xxx.git/blobdiff_plain/18abce2d438f825a38f52df6d904088adda4c890..fad13942e3ab9ffbcf5494d13e11c2c17a72a1df:/contrib/am7xxx-play-window.sh?ds=sidebyside diff --git a/contrib/am7xxx-play-window.sh b/contrib/am7xxx-play-window.sh index 2978ef2..dd8703d 100755 --- a/contrib/am7xxx-play-window.sh +++ b/contrib/am7xxx-play-window.sh @@ -13,13 +13,13 @@ set -e DISPLAY=":0" - + WIN_INFO="$(xwininfo)" - + X=$(echo "$WIN_INFO" | sed -n -e "/^[[:space:]]*Absolute upper-left X:[[:space:]]*/s///p") Y=$(echo "$WIN_INFO" | sed -n -e "/^[[:space:]]*Absolute upper-left Y:[[:space:]]*/s///p") WIDTH=$(echo "$WIN_INFO" | sed -n -e "/^[[:space:]]*Width:[[:space:]]*/s///p") HEIGHT=$(echo "$WIN_INFO" | sed -n -e "/^[[:space:]]*Height:[[:space:]]*/s///p") - + set -x am7xxx-play -f x11grab -i "${DISPLAY}+${X},${Y}" -o video_size="${WIDTH}x${HEIGHT}"