mirror of
https://github.com/aclist/dztui.git
synced 2024-12-28 21:32:36 +01:00
Foreground window
This commit is contained in:
parent
77bd6bdf9c
commit
9c4ba1ff7b
3 changed files with 1707 additions and 3 deletions
|
@ -5,6 +5,10 @@
|
|||
- Custom query API
|
||||
- Standardize dialogs
|
||||
|
||||
## [3.1.0-rc.8] 2022-10-26
|
||||
### Changed
|
||||
- Foreground mod progress watcher
|
||||
|
||||
## [3.1.0-rc.7] 2022-10-25
|
||||
### Changed
|
||||
- Simplify mod progress watcher
|
||||
|
|
8
dzgui.sh
8
dzgui.sh
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -o pipefail
|
||||
version=3.1.0-rc.7
|
||||
version=3.1.0-rc.8
|
||||
|
||||
aid=221100
|
||||
game="dayz"
|
||||
|
@ -545,9 +545,11 @@ auto_mod_install(){
|
|||
console_dl "$diff" &&
|
||||
steam steam://open/downloads && 2>/dev/null 1>&2
|
||||
until [[ -z $(comm -23 <(printf "%s\n" "${modids[@]}" | sort) <(ls -1 $workshop_dir | sort)) ]]; do
|
||||
win=$(xdotool search --name "DZG Watcher")
|
||||
[[ ! $(xdotool getwindowfocus) -eq $win ]] && xdotool windowraise $win
|
||||
local missing=$(comm -23 <(printf "%s\n" "${modids[@]}" | sort) <(ls -1 $workshop_dir | sort) | wc -l)
|
||||
echo "# Downloaded $((${#modids[@]}-missing)) of ${#modids[@]} mods"
|
||||
done | zenity --pulsate --progress --title=DZGUI --auto-close --no-cancel --width=500 2>/dev/null
|
||||
done | zenity --pulsate --progress --title="DZG Watcher" --auto-close --no-cancel --width=500 2>/dev/null
|
||||
compare
|
||||
if [[ -z $diff ]]; then
|
||||
check_timestamps
|
||||
|
@ -1094,7 +1096,7 @@ find_default_path(){
|
|||
popup(){
|
||||
[[ $1 -eq 100 ]] && zenity --info --text="This feature requires xdotool" --title=DZGUI --width=500
|
||||
[[ $1 -eq 200 ]] && zenity --info --text="This feature is not supported on Gaming Mode" --title=DZGUI --width=500
|
||||
[[ $1 -eq 300 ]] && zenity --info --text="\nThe Steam console will now open and briefly issue commands to\ndownload the workshop files, then return to the small Steam client\nwhile they download.\n\nEnsure that the Steam console has keyboard and mouse focus\n(keep hands off keyboard) while the commands are being issued.\n\nIt will only take a few seconds to queue the downloads, but if a\npopup or notification window steals focus, it could obstruct\nthe process." --title=DZGUI --width=500 2>/dev/null
|
||||
[[ $1 -eq 300 ]] && zenity --info --text="\nThe Steam console will now open and briefly issue commands to\ndownload the workshop files, then return to the download progress page.\n\nEnsure that the Steam console has keyboard and mouse focus\n(keep hands off keyboard) while the commands are being issued.\n\nIt will only take a few seconds to queue the downloads, but if a\npopup or notification window steals focus, it could obstruct\nthe process." --title=DZGUI --width=500 2>/dev/null
|
||||
}
|
||||
requires_xdo(){
|
||||
zenity --info --text="This feature requires xdojool" --title=DZGUI --width=500
|
||||
|
|
1698
dzgui.sh.old
Executable file
1698
dzgui.sh.old
Executable file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue