summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Barrett <tom@tombarrett.xyz>2020-02-06 23:54:43 -0600
committerTom Barrett <tom@tombarrett.xyz>2020-02-06 23:54:43 -0600
commita87d9786f4257fdfc347987927a1a0744bb8a20f (patch)
tree4b86fa825737e8b37db240133e932d4bbb49a77f
parent108c4c0e5fefb2f2f1876f9e1e1660620d8cb945 (diff)
better way to find root
-rw-r--r--dwmstatus/custom.diff6
1 files changed, 3 insertions, 3 deletions
diff --git a/dwmstatus/custom.diff b/dwmstatus/custom.diff
index 3332cac..0650010 100644
--- a/dwmstatus/custom.diff
+++ b/dwmstatus/custom.diff
@@ -1,5 +1,5 @@
diff --git a/dwmstatus.c b/dwmstatus.c
-index d2a4b03..5ab33db 100644
+index d2a4b03..4b5e093 100644
--- a/dwmstatus.c
+++ b/dwmstatus.c
@@ -17,8 +17,6 @@
@@ -71,7 +71,7 @@ index d2a4b03..5ab33db 100644
- for (;;sleep(60)) {
+ for (;;sleep(10)) {
avgs = loadavg();
-+ partition = getpartition("sda1");
++ partition = getpartition("/$");
bat = getbattery("/sys/class/power_supply/BAT0");
- bat1 = getbattery("/sys/class/power_supply/BAT1");
- tmar = mktimes("%H:%M", tzargentina);
@@ -87,7 +87,7 @@ index d2a4b03..5ab33db 100644
+ tmbln = mktimes("%a %d %b %H:%M", tzberlin);
+
+ status = smprintf(" %s | %s | %s | %s",
-+ avgs, partition, bat, tmbln);
++ avgs, partition, bat, tmbln);
setstatus(status);
- free(t0);