~saurabhs/slstatus

caaa79ff25f6775dcf6a3866dec795547c893db5 — Saurabh S 11 months ago 3fa4c53
Improve battery status
2 files changed, 4 insertions(+), 4 deletions(-)

M components/battery.c
M config.h
M components/battery.c => components/battery.c +3 -3
@@ 50,9 50,9 @@
			char *state;
			char *symbol;
		} map[] = {
			{ "Charging",    "+" },
			{ "Discharging", "-" },
			{ "Full",        "o" },
			{ "Charging",    "CHR" },
			{ "Discharging", "BAT" },
			{ "Full",        "FULL" },
		};
		size_t i;
		char path[PATH_MAX], state[12];

M config.h => config.h +1 -1
@@ 68,7 68,7 @@ static const struct arg args[] = {
    { wifi_essid,       "%s : ",        "wlp2s0" },
    { wifi_perc,        "%s% |",        "wlp2s0" },

    { battery_state,    " bat %s ",     "BAT0" },
    { battery_state,    " %s ",         "BAT0" },
    { battery_perc,     "%s% |",        "BAT0" },

    { ram_perc,         " mem %s% |",    NULL },