mirror of
https://github.com/kmein/niveum
synced 2026-03-21 12:21:08 +01:00
feat(i3status-rust): check all email accounts
This commit is contained in:
@@ -113,22 +113,22 @@ in {
|
|||||||
in
|
in
|
||||||
pkgs.writers.writeDash "unread-mail" ''
|
pkgs.writers.writeDash "unread-mail" ''
|
||||||
{
|
{
|
||||||
${query-account accounts.posteo}
|
${lib.concatMapStringsSep "\n" query-account (builtins.attrValues accounts)}
|
||||||
${query-account accounts.uni}
|
} | jq -s '
|
||||||
} | jq -s '{
|
(. | add) as $sum
|
||||||
text: . | map(tostring) | join("+"),
|
| {
|
||||||
icon: "mail",
|
text: $sum | tostring,
|
||||||
state: (
|
icon: "mail",
|
||||||
(. | add) as $sum
|
state: (
|
||||||
| if $sum > 5 then
|
if $sum > 5 then
|
||||||
"Warning"
|
"Warning"
|
||||||
elif $sum > 0 then
|
elif $sum > 0 then
|
||||||
"Info"
|
"Info"
|
||||||
else
|
else
|
||||||
"Idle"
|
"Idle"
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
}'
|
}'
|
||||||
'';
|
'';
|
||||||
json = true;
|
json = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user