1-- inbox_activity.lua
2-- Shows a live activity indicator in the inbox status bar.
3-- Combines received, read, and sent counts into a compact display.
4
5local matcha = require("matcha")
6
7local received = 0
8local sent = 0
9
10local function update_status()
11 matcha.set_status("inbox", "↓" .. received .. " ↑" .. sent)
12end
13
14matcha.on("email_received", function(email)
15 received = received + 1
16 update_status()
17end)
18
19matcha.on("email_send_after", function()
20 sent = sent + 1
21 update_status()
22end)
23
24matcha.on("startup", function()
25 update_status()
26end)