~saurabhs/slstatus

62b2a305d4086f11e713a6391efb6ace6d615a5c — Saurabh S 10 months ago d484421
Update memory usage info & fix formatting
1 files changed, 11 insertions(+), 12 deletions(-)

M config.h
M config.h => config.h +11 -12
@@ 6,6 6,8 @@ const unsigned int interval = 15 * 1000;
/* text to show if no value can be retrieved */
static const char unknown_str[] = "n/a";

static const char *fonts[] = {"Hack:size=5"};

/* maximum output string length */
#define MAXLEN 2048



@@ 64,16 66,13 @@ static const char unknown_str[] = "n/a";
 * wifi_essid          WiFi ESSID                      interface name (wlan0)
 */
static const struct arg args[] = {
	/* function         format          argument */
    { wifi_essid,       "%s : ",        "wlp2s0" },
    { wifi_perc,        "%s% |",        "wlp2s0" },

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

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

    { disk_free,        " disk %s |",    "/"},

	{ datetime,         " %s",           "%a %b %d %I:%M %p" },
	/* function, format, argument */
    { wifi_essid, " %s : ", "wlp2s0" },
    { wifi_perc, "%s% |", "wlp2s0" },
    { battery_state, " %s ", "BAT0" },
    { battery_perc, "%s% |", "BAT0" },
    { ram_used, " mem %s ", NULL },
    { ram_perc, "(%s%) |", NULL },
    { disk_free, " disk %s |", "/"},
	{ datetime, " %s", "%a %b %d %I:%M %p" },
};