Merge remote-tracking branch 'ni/master'
This commit is contained in:
commit
6772b8b3a4
@ -66,6 +66,8 @@ let
|
|||||||
Type = "simple";
|
Type = "simple";
|
||||||
PermissionsStartOnly = true;
|
PermissionsStartOnly = true;
|
||||||
ExecStart = pkgs.writeDash "konsens-${name}" ''
|
ExecStart = pkgs.writeDash "konsens-${name}" ''
|
||||||
|
set -efu
|
||||||
|
git config --global --replace-all safe.directory *
|
||||||
if ! test -e ${name}; then
|
if ! test -e ${name}; then
|
||||||
git clone ${repo.url} ${name}
|
git clone ${repo.url} ${name}
|
||||||
fi
|
fi
|
||||||
|
@ -63,6 +63,7 @@ writeDashBin "q-power_supply" ''
|
|||||||
|
|
||||||
END {
|
END {
|
||||||
name = ENVIRON["POWER_SUPPLY_NAME"]
|
name = ENVIRON["POWER_SUPPLY_NAME"]
|
||||||
|
status = ENVIRON["POWER_SUPPLY_STATUS"]
|
||||||
|
|
||||||
charge_unit = "Ah"
|
charge_unit = "Ah"
|
||||||
charge_now = ENVIRON["POWER_SUPPLY_CHARGE_NOW"] / 10^6
|
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 sprintf(" %s", print_hm(charge_now / current_now))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
out = out " " status
|
||||||
|
|
||||||
print out
|
print out
|
||||||
}
|
}
|
||||||
'
|
'
|
||||||
|
Loading…
Reference in New Issue
Block a user