From 13663512a4b60d6441664506a31c9728130a09df Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Tue, 26 Jul 2022 00:18:42 +0200 Subject: [PATCH] Change parts formatting style --- dwmstatus.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dwmstatus.c b/dwmstatus.c index e185bf2..dd5f136 100644 --- a/dwmstatus.c +++ b/dwmstatus.c @@ -71,7 +71,7 @@ mktimes(char *fmt, char *tzname) return smprintf(""); } - return smprintf("%s", buf); + return smprintf("📅 %s", buf); } void @@ -89,7 +89,7 @@ loadavg(void) if (getloadavg(avgs, 1) < 0) return smprintf(""); - return smprintf("%.2f", avgs[0]); + return smprintf("📈 %.2f ", avgs[0]); } char * @@ -162,7 +162,7 @@ getbattery(char *base) if (remcap < 0 || descap < 0) return smprintf("invalid"); - return smprintf("%s %.0f%%", status, ((float)remcap / (float)descap) * 100); + return smprintf("%s %.0f%% ", status, ((float)remcap / (float)descap) * 100); } char * @@ -203,7 +203,7 @@ gettemperature(char *base, char *sensor) co = readfile(base, sensor); if (co == NULL) return smprintf(""); - return smprintf("%02.0f°C", atof(co) / 1000); + return smprintf("🌡 %02.0f°C ", atof(co) / 1000); } void update() { @@ -220,7 +220,7 @@ void update() { bat = getbattery("/sys/class/power_supply/BAT0"); brightness = getBrightness("/sys/class/backlight/amdgpu_bl0"); - status = smprintf("%s %s🌡 %s 📈 %s 📅 %s", + status = smprintf("%s%s%s%s%s", bat, brightness, t0, avgs, tmbln); setstatus(status);