Skip to content

Commit

Permalink
i3status_rust: add mail block
Browse files Browse the repository at this point in the history
  • Loading branch information
dezeroku committed Apr 21, 2024
1 parent 379864e commit 9209b2b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions roles/i3status_rust/meta/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
dependencies:
- {role: isync, when: email_client}
10 changes: 10 additions & 0 deletions roles/i3status_rust/templates/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ theme = "modern"
[icons]
icons = "awesome6"

{% if email_client %}
[[block]]
block = "maildir"
interval = 60
inboxes = [{{ [isync_mail_dir + "/"] | product(email_client.keys()) | map('join') | product(['/Inbox']) | map('join') | map("to_json") | join(", ") }}]
threshold_warning = 1
threshold_critical = 10
display_type = "new"
{% endif %}

[[block]]
block = "disk_space"
path = "/"
Expand Down

0 comments on commit 9209b2b

Please sign in to comment.