X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/5a297dcfbb75e732671988a049095772fc2fdd76..a6bb0ef8d5c570023e1b9819d6b289db7f3e7155:/widgets/contrib/brightness.lua diff --git a/widgets/contrib/brightness.lua b/widgets/contrib/brightness.lua index bf14baf..04b8d2b 100644 --- a/widgets/contrib/brightness.lua +++ b/widgets/contrib/brightness.lua @@ -1,20 +1,19 @@ --[[ - - Licensed under GNU General Public License v2 - * (c) 2013, yawnt - + + Licensed under GNU General Public License v2 + * (c) 2013, yawnt + --]] local newtimer = require("lain.helpers").newtimer local wibox = require("wibox") local io = { popen = io.popen } -local string = { match = string.match } local setmetatable = setmetatable --- Brightness +-- Brightness level -- lain.widgets.contrib.brightness local brightness = {} @@ -28,12 +27,9 @@ 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 settings() end