aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/sway/config
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/sway/config')
-rw-r--r--dot_config/sway/config9
1 files changed, 6 insertions, 3 deletions
diff --git a/dot_config/sway/config b/dot_config/sway/config
index 5acb897..5a0a6a0 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$"] move to scratchpad
+for_window [app_id="org.mozilla.Thunderbird" title=".*Mozilla Thunderbird$"] mark --add tb-main, move container to workspace _tb
# ── Standard keybinds (sway defaults) ─────────────────────────────────────────
bindsym $mod+Return exec $term
@@ -156,8 +156,10 @@ 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" title=".*Mozilla Thunderbird$"] scratchpad show, resize set width 100 ppt height 100 ppt, move position center
+# Thunderbird toggle: main window parked on hidden workspace _tb; 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
# ── Bar ───────────────────────────────────────────────────────────────────────
bar {
@@ -169,6 +171,7 @@ exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CU
exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec "sleep 2 && ~/.config/sway/display-toggle.sh init"
exec systemctl --user start sway-session.target
+exec thunderbird
# GTK4 reads dark mode from gsettings (settings.ini's prefer-dark is GTK3 only).
exec gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'