summaryrefslogtreecommitdiff
path: root/brightness-widget
diff options
context:
space:
mode:
Diffstat (limited to 'brightness-widget')
-rw-r--r--brightness-widget/brightness.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/brightness-widget/brightness.lua b/brightness-widget/brightness.lua
index f003eca..af6449a 100644
--- a/brightness-widget/brightness.lua
+++ b/brightness-widget/brightness.lua
@@ -19,6 +19,7 @@ watch(
"xbacklight -get", 1,
function(widget, stdout, stderr, exitreason, exitcode)
local brightness_level = tonumber(string.format("%.0f", stdout))
- brightness_widget:set_text(brightness_level)
- end
+ widget:set_text(brightness_level)
+ end,
+ brightness_widget
) \ No newline at end of file