From 0c473d9f41fdadf3a8409776afe99e069e4265ef Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Sat, 21 Oct 2023 23:00:52 +0900 Subject: [PATCH] fix: client targeting when multiple windows open --- dzgui.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dzgui.sh b/dzgui.sh index 02d39e4..e446a8e 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -o pipefail -version=3.3.15 +version=3.3.16 aid=221100 game="dayz" @@ -1062,13 +1062,13 @@ generate_log(){ DOC } focus_beta_client(){ - steam steam://open/library && + steam steam://open/library 2>/dev/null 1>&2 && steam steam://open/console 2>/dev/null 1>&2 && sleep 1s wid(){ wmctrl -ilx |\ awk 'tolower($3) == "steamwebhelper.steam"' |\ - grep "Steam Games List" |\ + awk '$5 ~ /^Steam|Steam Games List/' |\ awk '{print $1}' } until [[ -n $(wid) ]]; do