However, I find that most of my window switching comes down to a few simple commands that focus a specific application, or open it first when it has no open windows yet. : open and/or focus slack $mod+i : open and/or focus signal 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 #!/bin/bash # ~/bin/launch/slack BINARY = 'slack' FOCUS = '[app_id="Slack"]' focus () { swaymsg " $FOCUS focus" >/dev/null } open_or_run () { if pgrep -fa "/usr/.