Run steam with gdb in a scratchpad window

This commit is contained in:
David Thurstenson 2020-10-02 00:55:23 -05:00
parent 90c126f0f5
commit 6607c3f7f3
1 changed files with 14 additions and 0 deletions

14
bin/steam-debug-gdb Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env bash
window_class="$(basename $BASH_SOURCE)"
if [[ ! -v SWAYSOCK ]]; then
echo 'E: $SWAYSOCK is not set. Exiting.'
exit 1
fi
swaymsg for_window \[app_id=${window_class}\] move window to scratchpad
alacritty \
--class ${window_class} \
--command bash -c "DEBUGGER=gdb steam"