diff options
-rw-r--r-- | brightnessarc-widget/brightnessarc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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; |