1
0
mirror of https://github.com/kmein/niveum synced 2026-03-20 12:01:06 +01:00

dashboard: add battery status

This commit is contained in:
2024-06-17 11:54:21 +02:00
parent b72a387b97
commit 7c193ba043

View File

@@ -1,6 +1,7 @@
{ {
writers, writers,
formats, formats,
acpi,
wtf, wtf,
himalaya, himalaya,
lib, lib,
@@ -104,8 +105,21 @@
}; };
refreshInterval = "150s"; refreshInterval = "150s";
}; };
mods.disk-usage = command { mods.battery-status = command {
enabled = true; enabled = true;
cmd = writers.writeDash "battery-status" ''
${acpi}/bin/acpi --battery --details | sed 's/^Battery //'
'';
refreshInterval = "1m";
position = {
top = 8;
left = 4;
height = 2;
width = 2;
};
};
mods.disk-usage = command {
enabled = false;
cmd = "df"; cmd = "df";
args = ["-h"]; args = ["-h"];
refreshInterval = "1m"; refreshInterval = "1m";