From b5a8319d1aaa6d06655005e22d461ab41afcbe78 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 13 May 2026 13:43:27 +0100 Subject: feat(waybar): add Thunderbird inbox-unread module Polls the protonmail-bridge IMAP socket every 60s with STATUS INBOX (UNSEEN), displays the count next to the tray, and clicking the badge runs tb-toggle.sh to bring TB out of the scratchpad (or launch it). Setup: store bridge credentials in pass at email/protonmail-bridge/{user, pass}. The bridge surfaces them via 'protonmail-bridge --cli' -> 'info'. With no entries (or with the bridge unreachable) the module shows 'MAIL ?' in red and is otherwise inert. --- dot_config/waybar/config.jsonc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'dot_config/waybar/config.jsonc') diff --git a/dot_config/waybar/config.jsonc b/dot_config/waybar/config.jsonc index 6e314cb..51c9d08 100644 --- a/dot_config/waybar/config.jsonc +++ b/dot_config/waybar/config.jsonc @@ -17,6 +17,7 @@ "idle_inhibitor", "privacy", "custom/notifications", + "custom/thunderbird", "tray", "clock", ], @@ -163,4 +164,12 @@ "on-click-middle": "makoctl restore", "tooltip": true, }, + + "custom/thunderbird": { + "exec": "~/.config/waybar/tb-unread.sh", + "return-type": "json", + "interval": 60, + "on-click": "~/.config/sway/tb-toggle.sh", + "tooltip": true, + }, } -- cgit v1.3.1