mirror of
https://github.com/lelgenio/dzgui-nix.git
synced 2024-12-25 04:15:35 -03:00
send noop command to steam before installing mods
This commit is contained in:
parent
857c053692
commit
12ca1bf0a7
|
@ -30,6 +30,7 @@ stdenv.mkDerivation rec {
|
|||
./patches/dont-hardcode-zenity.patch
|
||||
./patches/dont-write-desktop-entry-during-runtime.patch
|
||||
./patches/dont-check-map-count.patch
|
||||
./patches/send-noop-before-installing-mods.patch
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
|
|
15
patches/send-noop-before-installing-mods.patch
Normal file
15
patches/send-noop-before-installing-mods.patch
Normal file
|
@ -0,0 +1,15 @@
|
|||
diff --git a/dzgui.sh b/dzgui.sh
|
||||
index 97b5cd0..5e661cc 100755
|
||||
--- a/dzgui.sh
|
||||
+++ b/dzgui.sh
|
||||
@@ -1056,6 +1056,10 @@ console_dl(){
|
||||
local wid=$(xdotool search --onlyvisible --name Steam)
|
||||
#xdotool windowactivate $wid
|
||||
sleep 1.5s
|
||||
+ xdotool type --delay 0 "noop"
|
||||
+ sleep 0.5s
|
||||
+ xdotool key --window $wid Return
|
||||
+ sleep 0.5s
|
||||
for i in "${modids[@]}"; do
|
||||
xdotool type --delay 0 "workshop_download_item $aid $i"
|
||||
sleep 0.5s
|
Loading…
Reference in a new issue