aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/waybar/style.css
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:27 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:27 +0100
commitb5a8319d1aaa6d06655005e22d461ab41afcbe78 (patch)
tree5975ebd1bcafa9b07b705d9cb43528b70e08904a /dot_config/waybar/style.css
parent0d820cf864a04a4e81c47cc85d577bf3756e0561 (diff)
downloaddotfiles-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/style.css')
-rw-r--r--dot_config/waybar/style.css15
1 files changed, 14 insertions, 1 deletions
diff --git a/dot_config/waybar/style.css b/dot_config/waybar/style.css
index f631736..037c0e3 100644
--- a/dot_config/waybar/style.css
+++ b/dot_config/waybar/style.css
@@ -47,7 +47,8 @@ window#waybar {
#privacy,
#custom-memory,
#custom-wifi,
-#custom-notifications {
+#custom-notifications,
+#custom-thunderbird {
padding: 0 6px;
}
@@ -115,6 +116,18 @@ window#waybar {
color: #fe8019; /* orange — unread */
}
+#custom-thunderbird {
+ color: #928374; /* gray when inbox is empty */
+}
+
+#custom-thunderbird.unread {
+ color: #fe8019; /* orange — has unread mail */
+}
+
+#custom-thunderbird.error {
+ color: #fb4934; /* red — bridge down or creds missing */
+}
+
#battery.warning {
color: #fabd2f;
}