commit 09a67dc4ec7eeadbeccdd4dc7c02e37a392c814f
parent 66f8cf547434ad5604bb2616e75cc70d56863df8
Author: fjbalon <fjbalon@templier.es>
Date: Wed, 22 Jul 2026 16:35:18 +0200
Mejorado control de la batería con battery_state, battery_perc y
Diffstat:
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/components/battery.c b/components/battery.c
@@ -56,8 +56,8 @@
char *state;
char *symbol;
} map[] = {
- { "Charging", "+" },
- { "Discharging", "-" },
+ { "Charging", "ϟϟ" },
+ { "Discharging", "ϟ" },
{ "Full", "o" },
{ "Not charging", "o" },
};
diff --git a/config.h b/config.h
@@ -3,6 +3,8 @@ static const char unknown_str[] = "n/a";
#define MAXLEN 2048
static const struct arg args[] = {
- { battery_perc, "ϟ%s ", "BAT0" },
- { datetime, " %s", "%F %T" },
+ { battery_state, "%s", "BAT0" },
+ { battery_perc, "%s", "BAT0" },
+ { battery_remaining, " %s", "BAT0" },
+ { datetime, " %s", "%d/%m/%y %H:%M" },
};