From ef7fa0665e99e005c9e0d6e85954e457cf0d3e1f Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 13 May 2026 13:43:15 +0100 Subject: feat(sway): park thunderbird in scratchpad, toggle with Super+t MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Autostart thunderbird on sway launch; window rule parks it in the scratchpad immediately so it runs in the background firing mako notifications. Super+t toggles the window visible/hidden without quitting the app — works around the long-standing lack of native Linux tray support in Thunderbird. --- dot_config/mimeapps.list | 12 +++++++++++- dot_config/sway/config | 5 +++++ 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'dot_config') diff --git a/dot_config/mimeapps.list b/dot_config/mimeapps.list index bd3a703..edc0ccd 100644 --- a/dot_config/mimeapps.list +++ b/dot_config/mimeapps.list @@ -75,7 +75,7 @@ application/pdf=org.pwmt.zathura-pdf-mupdf.desktop application/postscript=zathura-pdf-poppler.desktop;org.pwmt.zathura-pdf-mupdf.desktop application/rss+xml=rss.desktop x-scheme-handler/magnet=transmission.desktop -x-scheme-handler/mailto=mail.desktop +x-scheme-handler/mailto=userapp-Thunderbird-CJ20N3.desktop application/msword-template=xdot.desktop x-scheme-handler/http=librewolf.desktop x-scheme-handler/https=librewolf.desktop @@ -87,6 +87,12 @@ application/x-extension-shtml=librewolf.desktop application/xhtml+xml=librewolf.desktop application/x-extension-xhtml=librewolf.desktop application/x-extension-xht=librewolf.desktop +message/rfc822=userapp-Thunderbird-CJ20N3.desktop +x-scheme-handler/mid=userapp-Thunderbird-CJ20N3.desktop +x-scheme-handler/webcal=userapp-Thunderbird-1BJ3N3.desktop +text/calendar=userapp-Thunderbird-1BJ3N3.desktop +application/x-extension-ics=userapp-Thunderbird-1BJ3N3.desktop +x-scheme-handler/webcals=userapp-Thunderbird-1BJ3N3.desktop [Added Associations] x-scheme-handler/http=librewolf.desktop; @@ -99,3 +105,7 @@ application/x-extension-shtml=librewolf.desktop; application/xhtml+xml=librewolf.desktop; application/x-extension-xhtml=librewolf.desktop; application/x-extension-xht=librewolf.desktop; +x-scheme-handler/mailto=userapp-Thunderbird-CJ20N3.desktop; +x-scheme-handler/mid=userapp-Thunderbird-CJ20N3.desktop; +x-scheme-handler/webcal=userapp-Thunderbird-1BJ3N3.desktop; +x-scheme-handler/webcals=userapp-Thunderbird-1BJ3N3.desktop; diff --git a/dot_config/sway/config b/dot_config/sway/config index f802a30..c2f0343 100644 --- a/dot_config/sway/config +++ b/dot_config/sway/config @@ -43,6 +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="thunderbird"] move to scratchpad # ── Standard keybinds (sway defaults) ───────────────────────────────────────── bindsym $mod+Return exec $term @@ -155,6 +156,9 @@ mode "qr" { } bindsym $mod+z mode "qr" +# Thunderbird scratchpad toggle (auto-parked on launch, see window rules) +bindsym $mod+t [app_id="thunderbird"] scratchpad show + # ── Bar ─────────────────────────────────────────────────────────────────────── bar { swaybar_command waybar @@ -165,6 +169,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' -- cgit v1.3.1