From 6607c3f7f35d1fed18a6aa8509305c0f78c4ff1d Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Fri, 2 Oct 2020 00:55:23 -0500 Subject: [PATCH] Run steam with gdb in a scratchpad window --- bin/steam-debug-gdb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 bin/steam-debug-gdb diff --git a/bin/steam-debug-gdb b/bin/steam-debug-gdb new file mode 100755 index 0000000..0b9ec82 --- /dev/null +++ b/bin/steam-debug-gdb @@ -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"