mirror of
https://github.com/aclist/dztui.git
synced 2024-12-29 13:52:03 +01:00
fix: client targeting when multiple windows open
This commit is contained in:
parent
7be0daf16f
commit
0c473d9f41
1 changed files with 3 additions and 3 deletions
6
dzgui.sh
6
dzgui.sh
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
version=3.3.15
|
version=3.3.16
|
||||||
|
|
||||||
aid=221100
|
aid=221100
|
||||||
game="dayz"
|
game="dayz"
|
||||||
|
@ -1062,13 +1062,13 @@ generate_log(){
|
||||||
DOC
|
DOC
|
||||||
}
|
}
|
||||||
focus_beta_client(){
|
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 &&
|
steam steam://open/console 2>/dev/null 1>&2 &&
|
||||||
sleep 1s
|
sleep 1s
|
||||||
wid(){
|
wid(){
|
||||||
wmctrl -ilx |\
|
wmctrl -ilx |\
|
||||||
awk 'tolower($3) == "steamwebhelper.steam"' |\
|
awk 'tolower($3) == "steamwebhelper.steam"' |\
|
||||||
grep "Steam Games List" |\
|
awk '$5 ~ /^Steam|Steam Games List/' |\
|
||||||
awk '{print $1}'
|
awk '{print $1}'
|
||||||
}
|
}
|
||||||
until [[ -n $(wid) ]]; do
|
until [[ -n $(wid) ]]; do
|
||||||
|
|
Loading…
Reference in a new issue