diff options
| author | ozpv <39195175+ozpv@users.noreply.github.com> | 2024-07-26 23:50:01 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-26 23:50:01 +0000 |
| commit | 94b98becffe16c861a76895f5773fa0190b3ba47 (patch) | |
| tree | 246d8428e1e11b81537ddd923ddff5cdea8a1717 | |
| parent | bd7ed4928bb327fc7767994154b9d1ddd4b4cc8b (diff) | |
add battery
| -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); |
