diff options
| author | 2026-05-13 13:43:19 +0100 | |
|---|---|---|
| committer | 2026-05-13 13:43:19 +0100 | |
| commit | 083a99063d5092e0895424f652804065c84463f8 (patch) | |
| tree | b2096345b0a77795c5e1f913b2dd03ef3d22a9dd /dot_config/sway/executable_tb-toggle.sh | |
| parent | 1d5ea18ba2e2d98394c992e747df20a75682ec42 (diff) | |
| download | dotfiles-083a99063d5092e0895424f652804065c84463f8.tar.gz dotfiles-083a99063d5092e0895424f652804065c84463f8.tar.bz2 dotfiles-083a99063d5092e0895424f652804065c84463f8.zip | |
chore(fmt): apply shfmt and prettier formatting
- shfmt -i 2 -ci -s on the four updated shell scripts (tabs → 2 spaces)
- prettier --write on KEYBINDS.md and README.md
Diffstat (limited to 'dot_config/sway/executable_tb-toggle.sh')
| -rw-r--r-- | dot_config/sway/executable_tb-toggle.sh | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/dot_config/sway/executable_tb-toggle.sh b/dot_config/sway/executable_tb-toggle.sh index 8fc39c0..77a3307 100644 --- a/dot_config/sway/executable_tb-toggle.sh +++ b/dot_config/sway/executable_tb-toggle.sh @@ -18,17 +18,17 @@ tb_ws=$(swaymsg -t get_tree | jq -r --arg m "$MARK" ' ) // empty') if [ -z "$tb_ws" ]; then - exec thunderbird + exec thunderbird fi if [ "$tb_ws" = "__i3_scratch" ]; then - # scratchpad show reveals it as floating; floating disable tiles it on the - # current workspace. - swaymsg "[con_mark=\"$MARK\"] scratchpad show, floating disable" >/dev/null + # scratchpad show reveals it as floating; floating disable tiles it on the + # current workspace. + swaymsg "[con_mark=\"$MARK\"] scratchpad show, floating disable" >/dev/null else - # Criteria-based move can cause sway to follow focus to the originating - # workspace. Pin focus back to where we started. - current_ws=$(swaymsg -t get_workspaces | jq -r '.[] | select(.focused) | .name') - swaymsg "[con_mark=\"$MARK\"] move container to scratchpad" >/dev/null - swaymsg "workspace \"$current_ws\"" >/dev/null + # Criteria-based move can cause sway to follow focus to the originating + # workspace. Pin focus back to where we started. + current_ws=$(swaymsg -t get_workspaces | jq -r '.[] | select(.focused) | .name') + swaymsg "[con_mark=\"$MARK\"] move container to scratchpad" >/dev/null + swaymsg "workspace \"$current_ws\"" >/dev/null fi |
