From 88ac53db00549b3060f9cc652baa6146844526bd Mon Sep 17 00:00:00 2001 From: Bauke Date: Sun, 23 Apr 2023 12:46:27 +0200 Subject: [PATCH] Add a tiny sleep before sending the keystrokes. --- .bauke/bin/drg-auto-ready | 1 + 1 file changed, 1 insertion(+) diff --git a/.bauke/bin/drg-auto-ready b/.bauke/bin/drg-auto-ready index b31e52d..e5204eb 100755 --- a/.bauke/bin/drg-auto-ready +++ b/.bauke/bin/drg-auto-ready @@ -7,5 +7,6 @@ drg_pid=$(xdotool search --name 'Deep Rock Galactic' getwindowpid) active_window_pid=$(xdotool getactivewindow getwindowpid) if [[ $drg_pid = $active_window_pid ]]; then + sleep 0.1 xdotool key --delay 50 Enter r Enter fi