15 lines
297 B
Plaintext
15 lines
297 B
Plaintext
|
#!/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"
|