From a87d9786f4257fdfc347987927a1a0744bb8a20f Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Thu, 6 Feb 2020 23:54:43 -0600 Subject: better way to find root --- dwmstatus/custom.diff | 6 +++--- 1 file 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); -- cgit v1.2.3