diff options
| author | 2026-05-13 13:43:17 +0100 | |
|---|---|---|
| committer | 2026-05-13 13:43:17 +0100 | |
| commit | 89c9213617aede2a220a7c3a49e0a76e91e33951 (patch) | |
| tree | 3cfbedca0e6693157bfcabf67f7f115e3cfcc7f6 /dot_config/sway/config | |
| parent | 257dba8399c63a5523e81eab25c77c866a6f98ee (diff) | |
| download | dotfiles-89c9213617aede2a220a7c3a49e0a76e91e33951.tar.gz dotfiles-89c9213617aede2a220a7c3a49e0a76e91e33951.tar.bz2 dotfiles-89c9213617aede2a220a7c3a49e0a76e91e33951.zip | |
refactor(sway): stash thunderbird in scratchpad instead of hidden ws
waybar's sway/workspaces has no ignore-list (that option is hyprland-only),
so the _tb workspace always leaked into the bar and into super+tab cycling.
Using sway's native scratchpad solves both: the __i3_scratch workspace is
filtered automatically. We run 'floating disable' right after 'scratchpad
show' so the window lands tiled on the current workspace, preserving the
intended UX.
Diffstat (limited to 'dot_config/sway/config')
| -rw-r--r-- | dot_config/sway/config | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dot_config/sway/config b/dot_config/sway/config index 2c2d4bf..752c5c2 100644 --- a/dot_config/sway/config +++ b/dot_config/sway/config @@ -43,7 +43,7 @@ output * bg #282828 solid_color for_window [class="feh"] floating enable for_window [app_id="imv"] floating enable for_window [class="Tor Browser"] floating enable -for_window [app_id="org.mozilla.Thunderbird" title=".*Mozilla Thunderbird$"] mark --add tb-main, move container to workspace _tb +for_window [app_id="org.mozilla.Thunderbird" title=".*Mozilla Thunderbird$"] mark --add tb-main, move container to scratchpad # ── Standard keybinds (sway defaults) ───────────────────────────────────────── bindsym $mod+Return exec $term @@ -117,9 +117,9 @@ bindsym $mod+Shift+e exec swaynag -t warning -m 'Exit sway?' -B 'Yes' 'swaymsg e # ── Personal keybinds ───────────────────────────────────────────────────────── -# Workspace cycling (skips the _tb stash workspace) -bindsym $mod+Tab exec ~/.config/sway/ws-cycle.sh next -bindsym $mod+Shift+Tab exec ~/.config/sway/ws-cycle.sh prev +# Workspace cycling +bindsym $mod+Tab workspace next_on_output +bindsym $mod+Shift+Tab workspace prev_on_output # Volume bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% @@ -156,8 +156,8 @@ mode "qr" { } bindsym $mod+z mode "qr" -# Thunderbird toggle: main window parked on hidden workspace _tb; this pulls it -# to the current workspace (tiled) or sends it back. Child windows (compose, +# Thunderbird toggle: main window stashed in the scratchpad; this pulls it to +# the current workspace (tiled) or sends it back. Child windows (compose, # viewer, calendar, prefs) tile normally wherever Thunderbird spawns them. bindsym $mod+t exec ~/.config/sway/tb-toggle.sh |
