Added battery status for laptop.

This commit is contained in:
Sheldon Lee 2021-09-11 23:58:56 +08:00
parent ce5359b50d
commit fe65a9cc87

View File

@ -66,6 +66,7 @@ static const char unknown_str[] = "n/a";
static const struct arg args[] = { static const struct arg args[] = {
/* function format argument */ /* function format argument */
{ cpu_perc, " CPU: %s% | ", NULL }, { cpu_perc, " CPU: %s% | ", NULL },
{ ram_perc, "RAM: %s% | ", NULL }, { ram_perc, "RAM: %s% | ", NULL },
{ battery_perc, "BAT: %s% | ", "BAT0" },
{ datetime, "%s ", "%F %T" }, { datetime, "%s ", "%F %T" },
}; };