diff options
| -rw-r--r-- | Makefile | 1 | ||||
| -rw-r--r-- | config.def.h | 2 | ||||
| -rw-r--r-- | slstatus.h | 3 |
3 files changed, 5 insertions, 1 deletions
@@ -6,6 +6,7 @@ include config.mk REQ = util COM =\ + components/battery\ components/datetime\ components/netspeeds\ components/ram\ diff --git a/config.def.h b/config.def.h index 904bcba..3e99b1e 100644 --- a/config.def.h +++ b/config.def.h @@ -14,7 +14,7 @@ static const struct arg args[] = { /* run nmcli to get network device for say ethernet */ { netspeed_rx, "[ %s B/s ]", "wlp2s0" }, - { battery_perc,"[ %s%% ]", "BAT0" }, + { battery_perc,"[ %s%% ]", "BAT0" }, { run_command, "[ %s ]", "volume" }, { ram_perc, "[ %s%% ]", NULL }, { datetime, " %s", "%a %b %d %r" }, @@ -12,5 +12,8 @@ const char *num_files(const char *path); /* ram */ const char *ram_perc(const char *unused); +/* battery */ +const char *battery_perc(const char *unused); + /* run_command */ const char *run_command(const char *cmd); |
