aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/i3status-rs/.local/lib/i3status-rust/i3status-notmuch
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2024-05-28 15:27:15 -0500
committerToby Vincent <tobyv@tobyvin.dev>2024-05-28 15:27:15 -0500
commitdd6cfb63ad85d0164cbe4ac04f7aea9f6a842f02 (patch)
tree5bc45394b9192771bcc85fa59b8aab4b8a4301bb /i3status-rs/.local/lib/i3status-rust/i3status-notmuch
parent1527172edf1f7d65095a5c2268947c16ed905d18 (diff)
feat!: remove unused configs and cleanup paths
Diffstat (limited to 'i3status-rs/.local/lib/i3status-rust/i3status-notmuch')
-rwxr-xr-xi3status-rs/.local/lib/i3status-rust/i3status-notmuch7
1 files changed, 7 insertions, 0 deletions
diff --git a/i3status-rs/.local/lib/i3status-rust/i3status-notmuch b/i3status-rs/.local/lib/i3status-rust/i3status-notmuch
new file mode 100755
index 0000000..1c51be8
--- /dev/null
+++ b/i3status-rs/.local/lib/i3status-rust/i3status-notmuch
@@ -0,0 +1,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)
+}'