From: Luke Bonham Date: Fri, 11 Apr 2014 07:29:10 +0000 (+0200) Subject: Merge pull request #39 from klaernie/fix-df X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/da2c1cb7783b96a9bd9d10de352a35bacdae6aad?hp=98c69dc64d151fa737e9466f6c545045f102589f Merge pull request #39 from klaernie/fix-df ask df for a specific filesystem --- diff --git a/widgets/fs.lua b/widgets/fs.lua index 7406e05..4d9d278 100644 --- a/widgets/fs.lua +++ b/widgets/fs.lua @@ -67,7 +67,7 @@ local function worker(args) fs_info = {} fs_now = {} - local f = io.popen("LC_ALL=C df -kP") + local f = io.popen("LC_ALL=C df -kP " .. partition) for line in f:lines() do -- Match: (size) (used)(avail)(use%) (mount) local s = string.match(line, "^.-[%s]([%d]+)")