Change time info
This commit is contained in:
parent
21453eabac
commit
cb3381f687
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user