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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user