Change time info

This commit is contained in:
Przemek Grondek 2022-07-25 22:13:26 +02:00
parent 21453eabac
commit cb3381f687

View File

@ -191,11 +191,11 @@ main(void)
for (;;sleep(60)) { for (;;sleep(60)) {
avgs = loadavg(); avgs = loadavg();
tmbln = mktimes("%d.%m.%Y %H:%M", tzwarsaw); tmbln = mktimes("%H:%M %d.%m.%Y", tzwarsaw);
t0 = gettemperature("/sys/class//hwmon/hwmon1", "temp1_input"); t0 = gettemperature("/sys/class//hwmon/hwmon1", "temp1_input");
bat = getbattery("/sys/class/power_supply/BAT0"); bat = getbattery("/sys/class/power_supply/BAT0");
status = smprintf("🔋 %s 🌡 %s 📈 %s | %s", status = smprintf("🔋 %s 🌡 %s 📈 %s 📅 %s",
bat, t0, avgs, tmbln); bat, t0, avgs, tmbln);
setstatus(status); setstatus(status);