Change parts formatting style
This commit is contained in:
parent
1b017e36d0
commit
13663512a4
@ -71,7 +71,7 @@ mktimes(char *fmt, char *tzname)
|
|||||||
return smprintf("");
|
return smprintf("");
|
||||||
}
|
}
|
||||||
|
|
||||||
return smprintf("%s", buf);
|
return smprintf("📅 %s", buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -89,7 +89,7 @@ loadavg(void)
|
|||||||
if (getloadavg(avgs, 1) < 0)
|
if (getloadavg(avgs, 1) < 0)
|
||||||
return smprintf("");
|
return smprintf("");
|
||||||
|
|
||||||
return smprintf("%.2f", avgs[0]);
|
return smprintf("📈 %.2f ", avgs[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
char *
|
||||||
@ -203,7 +203,7 @@ gettemperature(char *base, char *sensor)
|
|||||||
co = readfile(base, sensor);
|
co = readfile(base, sensor);
|
||||||
if (co == NULL)
|
if (co == NULL)
|
||||||
return smprintf("");
|
return smprintf("");
|
||||||
return smprintf("%02.0f°C", atof(co) / 1000);
|
return smprintf("🌡 %02.0f°C ", atof(co) / 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
void update() {
|
void update() {
|
||||||
@ -220,7 +220,7 @@ void update() {
|
|||||||
bat = getbattery("/sys/class/power_supply/BAT0");
|
bat = getbattery("/sys/class/power_supply/BAT0");
|
||||||
brightness = getBrightness("/sys/class/backlight/amdgpu_bl0");
|
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);
|
bat, brightness, t0, avgs, tmbln);
|
||||||
setstatus(status);
|
setstatus(status);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user