diff --git a/components/battery.c b/components/battery.c index 44efd29..694ea30 100644 --- a/components/battery.c +++ b/components/battery.c @@ -56,10 +56,10 @@ char *state; char *symbol; } map[] = { - { "Charging", "\uf08f" }, - { "Discharging", "\uf08c" }, - { "Full", "\uf1210" }, - { "Not charging", "\uf079" }, + { "Charging", "\U000f08f" }, + { "Discharging", "\U000f08c" }, + { "Full", "\U00f1210" }, + { "Not charging", "\U000f079" }, }; size_t i; char path[PATH_MAX], state[12]; diff --git a/config.h b/config.h index 1711ff5..86038dc 100644 --- a/config.h +++ b/config.h @@ -64,15 +64,15 @@ static const char unknown_str[] = "n/a"; * wifi_perc WiFi signal in percent interface name (wlan0) */ static const struct arg args[] = { - /* function format argument */ - { datetime, "%s", "%D-%m-%d %k:%M" }, - { run_command, " | ", NULL}, - { battery_perc, "%s%%", "BAT0"}, - { run_command, " ", NULL}, - { battery_state, "%s", "BAT0"}, - { run_command, " | ", NULL}, - { battery_perc, "%s%%", "BAT1"}, - { run_command, " ", NULL}, - { battery_state, "%s", "BAT1"}, - { run_command, " ", NULL}, + /* function format argument */ + { datetime, "%s", "%D-%m-%d %k:%M" }, + { run_command, " | ", NULL }, + { battery_perc, "%s%%", "BAT0" }, + { run_command, " ", NULL }, + { battery_state, "%s", "BAT0" }, + { run_command, " | ", NULL }, + { battery_perc, "%s%%", "BAT1" }, + { run_command, " ", NULL }, + { battery_state, "%s", "BAT1" }, + { run_command, " ", NULL }, };