From 603973931dbe470a6f2fb7e7e731669cb045c086 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Fri, 2 Oct 2020 01:54:04 -0500 Subject: [PATCH] Use less-persistent sway command, and bring resulting window in focus --- bin/steam-debug-gdb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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