Divider Cleanup
- Add divider symbol as variable - Customize divider spacing with format rather than argument
This commit is contained in:
19
config.h
19
config.h
@@ -10,6 +10,7 @@ static const char unknown_str[] = "?";
|
|||||||
#define MAXLEN 2048
|
#define MAXLEN 2048
|
||||||
|
|
||||||
static const char battery_name[] = "BAT0";
|
static const char battery_name[] = "BAT0";
|
||||||
|
static const char divider_symbol[] = "";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* function description argument (example)
|
* function description argument (example)
|
||||||
@@ -67,23 +68,21 @@ static const char battery_name[] = "BAT0";
|
|||||||
*/
|
*/
|
||||||
static const struct arg args[] = {
|
static const struct arg args[] = {
|
||||||
/* function format argument */
|
/* function format argument */
|
||||||
{ divider, "%s", " " },
|
{ divider, "%s ", divider_symbol },
|
||||||
{ check_updates, " %s", NULL },
|
{ check_updates, " %s", NULL },
|
||||||
// { gid, " %s", NULL },
|
{ divider, " %s ", divider_symbol },
|
||||||
{ divider, "%s", " " },
|
|
||||||
{ cpu_perc, " %s%%", NULL },
|
{ cpu_perc, " %s%%", NULL },
|
||||||
{ divider, "%s", " " },
|
{ divider, " %s ", divider_symbol },
|
||||||
{ ram_perc, " %s%%", NULL },
|
{ ram_perc, " %s%%", NULL },
|
||||||
{ divider, "%s", " " },
|
{ divider, " %s ", divider_symbol },
|
||||||
{ disk_perc, " %s%%", "/home" },
|
{ disk_perc, " %s%%", "/home" },
|
||||||
// { divider, "%s", divider_symbol },
|
{ divider, " %s ", divider_symbol },
|
||||||
{ divider, "%s", " " },
|
|
||||||
{ battery_state, " %s", battery_name }, // TODO: Make the battery icon change with the level and charging status
|
{ battery_state, " %s", battery_name }, // TODO: Make the battery icon change with the level and charging status
|
||||||
{ battery_perc, "%s%%", battery_name },
|
{ battery_perc, "%s%%", battery_name },
|
||||||
{ battery_remaining, " (%s)", battery_name },
|
{ battery_remaining, " (%s)", battery_name },
|
||||||
{ divider, "%s", " " },
|
{ divider, " %s ", divider_symbol },
|
||||||
{ datetime, " %s", "%a %x" },
|
{ datetime, " %s", "%a %x" },
|
||||||
{ divider, "%s", " " },
|
{ divider, " %s ", divider_symbol },
|
||||||
{ datetime, " %s", "%I:%M:%S %p" },
|
{ datetime, " %s", "%I:%M:%S %p" },
|
||||||
{ divider, "%s", " " },
|
{ divider, " %s", divider_symbol },
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user