diff options
author | Tom Barrett <tom@tombarrett.xyz> | 2023-11-04 11:56:00 +0100 |
---|---|---|
committer | Tom Barrett <tom@tombarrett.xyz> | 2023-11-04 11:56:00 +0100 |
commit | 9468177cb72e0515dd7e8bc06d43ce86a2dc5c16 (patch) | |
tree | f23f6081a0e4dc9fd2cb24bf8603399d5350eb30 /dwmstatus.c | |
parent | cc90fb97a47e4049e801cc3e5055b9b704e84158 (diff) |
Diffstat (limited to 'dwmstatus.c')
-rw-r--r-- | dwmstatus.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/dwmstatus.c b/dwmstatus.c index 3a8dc1c..34dbbf2 100644 --- a/dwmstatus.c +++ b/dwmstatus.c @@ -119,7 +119,6 @@ main(void) char *tmbln; char *ips; char *track; - char *temp; char *partition; if (!(dpy = XOpenDisplay(NULL))) { @@ -130,20 +129,18 @@ main(void) for (;;sleep(1)) { avg = loadavg(); tmbln = mktimes("%a %d %b %H:%M", tzberlin); - ips = execscript("ip a | grep 'inet ' | grep -v 127.0.0.1 | tr -s ' ' |cut -f3 -d' '"); - temp = execscript("sensors amdgpu-pci-0400 | grep edge | cut -c 16-22"); + ips = execscript("ip a | grep 'inet ' | grep -v 127.0.0.1 | tr -s ' ' | cut -f3 -d' '"); track = execscript("mpc -h core-a.lan | head -n 1 | grep -v volume || echo"); partition = execscript("df -lh | grep cryptroot | tr -s ' ' | cut -d ' ' -f 4"); - status = smprintf(" %s | %s | %s | %s | %s", - track, avg, temp, partition, tmbln); + status = smprintf(" %s | %s | %s | %s | %s ", + track, ips, avg, partition, tmbln); setstatus(status); free(avg); free(tmbln); free(ips); free(track); - free(temp); free(partition); free(status); } |