diff --git a/bin/steam-debug-gdb b/bin/steam-debug-gdb index 0b9ec82..aa6ec5d 100755 --- a/bin/steam-debug-gdb +++ b/bin/steam-debug-gdb @@ -7,8 +7,8 @@ if [[ ! -v SWAYSOCK ]]; then exit 1 fi -swaymsg for_window \[app_id=${window_class}\] move window to scratchpad +swaymsg exec "alacritty --class ${window_class} --command bash -c 'DEBUGGER=gdb steam'" -alacritty \ - --class ${window_class} \ - --command bash -c "DEBUGGER=gdb steam" +until swaymsg "[app_id=${window_class}]" move to scratchpad, focus; do + sleep 0.1 +done