summaryrefslogtreecommitdiff
path: root/brightness-widget
diff options
context:
space:
mode:
authorTommy Mattsson <tommy.mattsson@teliacompany.com>2017-10-09 11:25:51 +0200
committerTommy Mattsson <tommy.mattsson@teliacompany.com>2017-10-09 11:25:51 +0200
commit9159497bf5d242a436e1120db87ad4ed7fea55b3 (patch)
treed2246b975160084f30f80e789816f98e14f63977 /brightness-widget
parent14c81d51d7776c6b6e065bd22d1a482903145ec2 (diff)
Added space between icon and number, and added % afterwards.
Diffstat (limited to 'brightness-widget')
-rw-r--r--brightness-widget/brightness.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/brightness-widget/brightness.lua b/brightness-widget/brightness.lua
index 704d6be..d7713ce 100644
--- a/brightness-widget/brightness.lua
+++ b/brightness-widget/brightness.lua
@@ -18,8 +18,8 @@ local brightness_icon = wibox.widget {
}
brightness_widget = wibox.widget {
- brightness_text,
brightness_icon,
+ brightness_text,
layout = wibox.layout.fixed.horizontal,
}
@@ -27,7 +27,7 @@ watch(
get_brightness_cmd, 1,
function(widget, stdout, stderr, exitreason, exitcode)
local brightness_level = tonumber(string.format("%.0f", stdout))
- widget:set_text(brightness_level)
+ widget:set_text(" " .. brightness_level .. "%")
end,
brightness_text
-) \ No newline at end of file
+)