battery charge and status

This commit is contained in:
2024-12-07 01:01:44 +01:00
parent 7bbc2dcf68
commit 44d111f8db

View File

@@ -66,4 +66,13 @@ static const char unknown_str[] = "n/a";
static const struct arg args[] = {
/* function format argument */
{ datetime, "%s", "%Y-%m-%d %k:%M" },
{ run_command, " | ", NULL },
{ battery_perc, "%s%%", "BAT0" },
{ run_command, " ", NULL },
{ battery_state, "%s", "BAT0" },
{ run_command, " | ", NULL },
{ battery_perc, "%s%%", "BAT1" },
{ run_command, " ", NULL },
{ battery_state, "%s", "BAT1" },
{ run_command, " ", NULL },
};