Added battery percentages

This commit is contained in:
2024-12-02 03:10:49 +01:00
parent 00eb7e9550
commit d385939c1f

View File

@@ -66,9 +66,13 @@ static const char unknown_str[] = "n/a";
static const struct arg args[] = {
/* function format argument */
{ datetime, "%s", "%F %T" },
{ battery_perc, " %s%%", "BAT0"},
{ battery_state, " %s", "BAT0"},
{ battery_perc, " | %s%%", "BAT1"},
{ battery_state, " %s", "BAT1"},
{ 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},
};