mirror of https://github.com/lcpz/lain.git
#103: revert to original fs implementation
This commit is contained in:
parent
a535b86435
commit
adc899ba1f
|
@ -27,7 +27,7 @@ local setmetatable = setmetatable
|
||||||
local alsabar = {
|
local alsabar = {
|
||||||
card = "0",
|
card = "0",
|
||||||
channel = "Master",
|
channel = "Master",
|
||||||
step = "5%",
|
step = "2%",
|
||||||
|
|
||||||
colors = {
|
colors = {
|
||||||
background = beautiful.bg_normal,
|
background = beautiful.bg_normal,
|
||||||
|
|
|
@ -66,7 +66,7 @@ local function worker(args)
|
||||||
function update()
|
function update()
|
||||||
fs_info = {}
|
fs_info = {}
|
||||||
fs_now = {}
|
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)
|
for line in f:lines() do -- Match: (size) (used)(avail)(use%) (mount)
|
||||||
local s = string.match(line, "^.-[%s]([%d]+)")
|
local s = string.match(line, "^.-[%s]([%d]+)")
|
||||||
|
|
Loading…
Reference in New Issue