diff options
| author | 2026-05-13 13:43:27 +0100 | |
|---|---|---|
| committer | 2026-05-13 13:43:27 +0100 | |
| commit | b5a8319d1aaa6d06655005e22d461ab41afcbe78 (patch) | |
| tree | 5975ebd1bcafa9b07b705d9cb43528b70e08904a /dot_config/waybar/config.jsonc | |
| parent | 0d820cf864a04a4e81c47cc85d577bf3756e0561 (diff) | |
| download | dotfiles-b5a8319d1aaa6d06655005e22d461ab41afcbe78.tar.gz dotfiles-b5a8319d1aaa6d06655005e22d461ab41afcbe78.tar.bz2 dotfiles-b5a8319d1aaa6d06655005e22d461ab41afcbe78.zip | |
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.
Diffstat (limited to 'dot_config/waybar/config.jsonc')
| -rw-r--r-- | dot_config/waybar/config.jsonc | 9 |
1 files changed, 9 insertions, 0 deletions
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, + }, } |
