From ed33b1dcf36465ae79352bfca6a66f04fae84b5a Mon Sep 17 00:00:00 2001 From: Pavel Makhov Date: Wed, 3 Apr 2019 09:11:37 -0400 Subject: [PATCH] Fix #77 --- brightnessarc-widget/brightnessarc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brightnessarc-widget/brightnessarc.lua b/brightnessarc-widget/brightnessarc.lua index 53ea218..7633218 100644 --- a/brightnessarc-widget/brightnessarc.lua +++ b/brightnessarc-widget/brightnessarc.lua @@ -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;