1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat(i3status-rust): lil jq tweaking

This commit is contained in:
2022-08-19 11:29:42 +02:00
parent bce13c9306
commit 5c1f29f2e7
3 changed files with 58 additions and 3 deletions

View File

@@ -211,12 +211,12 @@ in {
| ${pkgs.coreutils}/bin/head -1 \
| ${pkgs.coreutils}/bin/date --date="$(cat)" +%s
)" \
'($nextEvent - now) as $deltaT
| {
'{
text: $now,
icon: "time",
state: (
if $deltaT < (5 * 60) then
($nextEvent - now) as $deltaT
| if $deltaT < (5 * 60) then
"Critical"
elif $deltaT < (15 * 60) then
"Warning"