# mail-counter

Waybar custom mail module for Thunderbird. It reads Thunderbird's
`global-messages-db.sqlite` and prints JSON for Waybar.

## Build On Bazzite

```bash
cd ~/dotfiles/bazzite/mail-counter
cargo build --release
install -m 755 target/release/mail-counter ~/.config/waybar/scripts/mail
```

Waybar config should call the compiled binary:

```jsonc
"exec": "~/.config/waybar/scripts/mail"
```
