1
0
mirror of https://github.com/kmein/niveum synced 2026-03-30 09:11:10 +02:00

feat(i3status-rust): check all email accounts

This commit is contained in:
2022-08-21 02:39:07 +02:00
parent e1b1458bb0
commit b5232c1d81

View File

@@ -113,14 +113,14 @@ in {
in
pkgs.writers.writeDash "unread-mail" ''
{
${query-account accounts.posteo}
${query-account accounts.uni}
} | jq -s '{
text: . | map(tostring) | join("+"),
${lib.concatMapStringsSep "\n" query-account (builtins.attrValues accounts)}
} | jq -s '
(. | add) as $sum
| {
text: $sum | tostring,
icon: "mail",
state: (
(. | add) as $sum
| if $sum > 5 then
if $sum > 5 then
"Warning"
elif $sum > 0 then
"Info"