From 18be8fa3557fe780f892a605a571fa8924330c01 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Fri, 17 Feb 2023 23:58:11 +0100 Subject: [PATCH] Remove unnecessary spaces in statuses --- dwmstatus.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dwmstatus.c b/dwmstatus.c index b52f1ad..26a2a15 100644 --- a/dwmstatus.c +++ b/dwmstatus.c @@ -90,7 +90,7 @@ loadavg(void) if (getloadavg(avgs, 1) < 0) return smprintf(""); - return smprintf("📈 %.2f ", avgs[0]); + return smprintf("📈%.2f ", avgs[0]); } char * @@ -167,7 +167,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 * @@ -197,7 +197,7 @@ getBrightness(char *base) { status = "☀"; } - return smprintf("%s %d%% ", status, percentage); + return smprintf("%s%d%% ", status, percentage); } char * getPowerConsumption(char *base) { @@ -217,7 +217,7 @@ getPowerConsumption(char *base) { usage = usageRead/ 1e6; - return smprintf("%.2lf W ", usage); + return smprintf("%.2lfW ", usage); } char * @@ -228,7 +228,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() {