Unread email count for Waybar.
-
Clone or download the script:
git clone https://github.com/hoblin/thunderbird-waybar-email.git cd thunderbird-waybar-email -
Copy the script:
mkdir -p ~/.config/waybar/scripts cp email-count.sh ~/.config/waybar/scripts/ chmod +x ~/.config/waybar/scripts/email-count.sh
-
Add CSS to style.css:
#custom-email.unread { background: rgba(255, 255, 255, 0.2); color: inherit; border-radius: 4px; padding: 0 6px; font-weight: bold; border: 1px solid currentColor; } #custom-email.read { opacity: 0.7; }
-
Add to config:
"custom/email": { "format": "{}", "exec": "~/.config/waybar/scripts/email-count.sh", "return-type": "json", "interval": 60, "tooltip": false, "on-click": "thunderbird" }
-
Add
"custom/email"to modules list and restart waybar.
- Thunderbird
- Waybar
- Nerd Fonts
- No emails? Open Thunderbird at least once
- No icons? Install Nerd Fonts
- Wrong unread count? Close Thunderbird, run
find ~/.thunderbird -name "*.msf" -delete, restart Thunderbird
MIT License
All code in this repository was generated by the Cursor AI editor at the request of the repository owner.
