mirror of https://github.com/lcpz/lain.git
fix: better code
This commit is contained in:
parent
0bd5a1cdcb
commit
0345cc3576
|
@ -28,10 +28,7 @@ local function worker(args)
|
|||
|
||||
function brightness.update()
|
||||
local f = assert(io.popen('cat /sys/class/backlight/' .. backlight .. "/brightness"))
|
||||
|
||||
brightness_now = {
|
||||
level = f:read("*a")
|
||||
}
|
||||
brightness_now = f:read("*a")
|
||||
f:close()
|
||||
|
||||
widget = brightness.widget
|
||||
|
|
Loading…
Reference in New Issue