blob: 1c51be8fdb19dd1d76dff8b5d2146c18a8434724 (
plain)
1
2
3
4
5
6
7
|
#!/bin/sh
notmuch search --format=json tag:unread | jq -c 'length | {
icon: "mail",
state: (if . == 0 then "Idle" elif . < 10 then "Warning" else "Critical" end),
text: (. | tostring)
}'
|