From: luke bonham Date: Wed, 25 Mar 2015 18:41:08 +0000 (+0100) Subject: #103: revert to original fs implementation X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/49221b80556abd4f0c6203fa0aafdd5436db03ce #103: revert to original fs implementation --- diff --git a/widgets/alsabar.lua b/widgets/alsabar.lua index fa10bc2..b12e55c 100644 --- a/widgets/alsabar.lua +++ b/widgets/alsabar.lua @@ -27,7 +27,7 @@ local setmetatable = setmetatable local alsabar = { card = "0", channel = "Master", - step = "5%", + step = "2%", colors = { background = beautiful.bg_normal, diff --git a/widgets/fs.lua b/widgets/fs.lua index 3b99cba..8b51178 100644 --- a/widgets/fs.lua +++ b/widgets/fs.lua @@ -66,7 +66,7 @@ local function worker(args) function update() fs_info = {} fs_now = {} - local f = io.popen("LC_ALL=C df -kP " .. partition) + local f = assert(io.popen("LC_ALL=C df -kP")) for line in f:lines() do -- Match: (size) (used)(avail)(use%) (mount) local s = string.match(line, "^.-[%s]([%d]+)")