summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2023-05-01 11:17:14 +0200
committertv <tv@krebsco.de>2023-05-01 11:17:14 +0200
commit3cc91cc0dafa1b299100f06c8389d04d8b95d3b3 (patch)
tree1ebd1fee65b7e56f5a42b8b81a8e6d90cd309a33 /krebs
parent72de0dd65937dde91c9926bac3ba053d69e0769e (diff)
q-power_supply: print status
Diffstat (limited to 'krebs')
-rw-r--r--krebs/5pkgs/simple/q-power_supply.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/krebs/5pkgs/simple/q-power_supply.nix b/krebs/5pkgs/simple/q-power_supply.nix
index 627e3f905..ef133bfbd 100644
--- a/krebs/5pkgs/simple/q-power_supply.nix
+++ b/krebs/5pkgs/simple/q-power_supply.nix
@@ -63,6 +63,7 @@ writeDashBin "q-power_supply" ''
END {
name = ENVIRON["POWER_SUPPLY_NAME"]
+ status = ENVIRON["POWER_SUPPLY_STATUS"]
charge_unit = "Ah"
charge_now = ENVIRON["POWER_SUPPLY_CHARGE_NOW"] / 10^6
@@ -132,6 +133,8 @@ writeDashBin "q-power_supply" ''
out = out sprintf(" %s", print_hm(charge_now / current_now))
}
+ out = out " " status
+
print out
}
'