mirror of
https://github.com/aclist/dztui.git
synced 2024-12-28 21:32:36 +01:00
fix: print correct mod size
This commit is contained in:
parent
4b2984a5d9
commit
952b8347ed
1 changed files with 3 additions and 5 deletions
8
dzgui.sh
8
dzgui.sh
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -o pipefail
|
||||
version=3.3.13
|
||||
version=3.3.14
|
||||
|
||||
aid=221100
|
||||
game="dayz"
|
||||
|
@ -1075,7 +1075,6 @@ focus_beta_client(){
|
|||
wmctrl -ia $(wid)
|
||||
sleep 0.1s
|
||||
wid=$(xdotool getactivewindow)
|
||||
echo wid is $wid
|
||||
local geo=$(xdotool getwindowgeometry $wid)
|
||||
local pos=$(<<< "$geo" awk 'NR==2 {print $2}' | sed 's/,/ /')
|
||||
local dim=$(<<< "$geo" awk 'NR==3 {print $2}' | sed 's/x/ /')
|
||||
|
@ -1085,7 +1084,6 @@ focus_beta_client(){
|
|||
local dim2=$(<<< "$dim" awk '{print $2}')
|
||||
local dim1=$(((dim1/2)+pos1))
|
||||
local dim2=$(((dim2/2)+pos2))
|
||||
echo moving mouse
|
||||
xdotool mousemove $dim1 $dim2
|
||||
xdotool click 1
|
||||
sleep 0.5s
|
||||
|
@ -1509,8 +1507,8 @@ server_browser(){
|
|||
fi
|
||||
}
|
||||
mods_disk_size(){
|
||||
printf "Total size on disk: %s | " $(du -sh "$game_dir" | awk '{print $1}')
|
||||
printf "%s mods | " $(ls -1 "$game_dir" | wc -l)
|
||||
printf "Total size on disk: %s | " $(du -sh "$workshop_dir" | awk '{print $1}')
|
||||
printf "%s mods | " $(ls -1 "$workshop_dir" | wc -l)
|
||||
printf "Location: %s/steamapps/workshop/content/221100" "$steam_path"
|
||||
}
|
||||
main_menu(){
|
||||
|
|
Loading…
Reference in a new issue