From 012f9d7b1bb06d994ed58d3bc5620e4a726a2d99 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 13 May 2026 13:43:16 +0100 Subject: fix(sway): scope thunderbird scratchpad rule to the main window Matching only on app_id caused every TB window (compose, message viewer, calendar event, settings) to be parked in the scratchpad, leaving them hidden behind the main window. TB's main window title always ends in 'Mozilla Thunderbird'; child windows don't. Narrow both the for_window rule and the Super+t toggle with a title regex so only the main window is managed. --- dot_config/sway/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dot_config/sway') diff --git a/dot_config/sway/config b/dot_config/sway/config index 4d6a397..5acb897 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"] move to scratchpad +for_window [app_id="org.mozilla.Thunderbird" title=".*Mozilla Thunderbird$"] move to scratchpad # ── Standard keybinds (sway defaults) ───────────────────────────────────────── bindsym $mod+Return exec $term @@ -157,7 +157,7 @@ mode "qr" { bindsym $mod+z mode "qr" # Thunderbird scratchpad toggle (auto-parked on launch, see window rules) -bindsym $mod+t [app_id="org.mozilla.Thunderbird"] scratchpad show, resize set width 100 ppt height 100 ppt, move position center +bindsym $mod+t [app_id="org.mozilla.Thunderbird" title=".*Mozilla Thunderbird$"] scratchpad show, resize set width 100 ppt height 100 ppt, move position center # ── Bar ─────────────────────────────────────────────────────────────────────── bar { -- cgit v1.3.1