This commit is contained in:
Pavel Makhov 2019-04-03 09:11:37 -04:00
parent a1636558f5
commit ed33b1dcf3
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ local brightnessarc = wibox.widget {
}
local update_widget = function(widget, stdout)
local brightness_level = string.match(stdout, "(%d?%d?)")
local brightness_level = string.match(stdout, "(%d?%d?%d?)")
brightness_level = tonumber(string.format("% 3d", brightness_level))
widget.value = brightness_level / 100;