A simple Go script to print unread emails count and suitable to use as Waybar module
Copy unread-count
to PATH
Usage of unread-count:
-I string
Icon (default "\U000f05f0")
-P string
Password
-S string
Server
-U string
Username
{
"layer": "top",
"position": "top",
"modules-left": ["custom/unreadcount"],
"custom/unreadcount": {
"exec": "unread-count -U user -P pass -S 127.0.0.1:1143",
"return-type": "json",
"interval": 30,
"format": "{}",
"on-click": "geary"
},
}