Use less-persistent sway command, and bring resulting window in focus

This commit is contained in:
David Thurstenson 2020-10-02 01:54:04 -05:00
parent 6607c3f7f3
commit 603973931d
1 changed files with 4 additions and 4 deletions

View File

@ -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