Use less-persistent sway command, and bring resulting window in focus
This commit is contained in:
parent
6607c3f7f3
commit
603973931d
|
@ -7,8 +7,8 @@ if [[ ! -v SWAYSOCK ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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 \
|
until swaymsg "[app_id=${window_class}]" move to scratchpad, focus; do
|
||||||
--class ${window_class} \
|
sleep 0.1
|
||||||
--command bash -c "DEBUGGER=gdb steam"
|
done
|
||||||
|
|
Loading…
Reference in New Issue