summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Makhov <pmakhov@touchtunes.com>2019-04-03 09:11:37 -0400
committerPavel Makhov <pmakhov@touchtunes.com>2019-04-03 09:11:37 -0400
commited33b1dcf36465ae79352bfca6a66f04fae84b5a (patch)
tree4ad3ef57e9e64007dea321c2940789d843d8fac2
parenta1636558f539637b17ebbc2ebcd8677d93027319 (diff)
Fix #77
-rw-r--r--brightnessarc-widget/brightnessarc.lua2
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;