bin/bin/steam-debug-gdb

15 lines
321 B
Bash
Executable File

#!/usr/bin/env bash
window_class="$(basename $BASH_SOURCE)"
if [[ ! -v SWAYSOCK ]]; then
echo 'E: $SWAYSOCK is not set. Exiting.'
exit 1
fi
swaymsg exec "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