X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/099e23aac2372f11a6f2b9a8c0d62bdfd8ee85b6..d9877c4bedca550478507f268f43e137e4454c24:/widgets/fs.lua diff --git a/widgets/fs.lua b/widgets/fs.lua index 3a97d4c..eda3ffc 100644 --- a/widgets/fs.lua +++ b/widgets/fs.lua @@ -76,7 +76,7 @@ local function worker(args) function update() fs_info, fs_now = {}, {} - helpers.async(string.format("%s -c 'LC_ALL=C df -k --output=target,size,used,avail,pcent'", shell), function(f) + helpers.async({ shell, "-c", "LC_ALL=C df -k --output=target,size,used,avail,pcent" }, function(f) for line in string.gmatch(f, "\n[^\n]+") do local m,s,u,a,p = string.match(line, "(/.-%s).-(%d+).-(%d+).-(%d+).-([%d]+)%%") m = m:gsub(" ", "") -- clean target from any whitespace