dwmblocks/scripts/dwmblocks-mu4e

4 lines
180 B
Plaintext
Raw Normal View History

2023-09-29 03:39:29 -07:00
#!/usr/bin/env zsh
2023-09-29 11:25:28 -07:00
let message_count="$(mu find flag:unread AND maildir:/protonmail/Inbox 2>/dev/null | wc -l)"
2023-09-29 03:39:29 -07:00
(( "${message_count}" > 0 )) && printf ' %s' "${message_count}"