Skip to content

Commit

Permalink
dashboard: add battery status
Browse files Browse the repository at this point in the history
  • Loading branch information
kmein committed Jun 17, 2024
1 parent b72a387 commit 7c193ba
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion packages/dashboard/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
writers,
formats,
acpi,
wtf,
himalaya,
lib,
Expand Down Expand Up @@ -104,8 +105,21 @@
};
refreshInterval = "150s";
};
mods.disk-usage = command {
mods.battery-status = command {
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";
args = ["-h"];
refreshInterval = "1m";
Expand Down

0 comments on commit 7c193ba

Please sign in to comment.