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