aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/sway/config
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:15 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:15 +0100
commitef7fa0665e99e005c9e0d6e85954e457cf0d3e1f (patch)
treeb88bde1a3d83385b29e2ee9eeb82415821bd0f44 /dot_config/sway/config
parentbaa240e0a2be76d34829534ed843caa41bfc2dc6 (diff)
downloaddotfiles-ef7fa0665e99e005c9e0d6e85954e457cf0d3e1f.tar.gz
dotfiles-ef7fa0665e99e005c9e0d6e85954e457cf0d3e1f.tar.bz2
dotfiles-ef7fa0665e99e005c9e0d6e85954e457cf0d3e1f.zip
feat(sway): park thunderbird in scratchpad, toggle with Super+t
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.
Diffstat (limited to 'dot_config/sway/config')
-rw-r--r--dot_config/sway/config5
1 files changed, 5 insertions, 0 deletions
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'