Added space between icon and number, and added % afterwards.
This commit is contained in:
parent
14c81d51d7
commit
9159497bf5
|
@ -18,8 +18,8 @@ local brightness_icon = wibox.widget {
|
||||||
}
|
}
|
||||||
|
|
||||||
brightness_widget = wibox.widget {
|
brightness_widget = wibox.widget {
|
||||||
brightness_text,
|
|
||||||
brightness_icon,
|
brightness_icon,
|
||||||
|
brightness_text,
|
||||||
layout = wibox.layout.fixed.horizontal,
|
layout = wibox.layout.fixed.horizontal,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ watch(
|
||||||
get_brightness_cmd, 1,
|
get_brightness_cmd, 1,
|
||||||
function(widget, stdout, stderr, exitreason, exitcode)
|
function(widget, stdout, stderr, exitreason, exitcode)
|
||||||
local brightness_level = tonumber(string.format("%.0f", stdout))
|
local brightness_level = tonumber(string.format("%.0f", stdout))
|
||||||
widget:set_text(brightness_level)
|
widget:set_text(" " .. brightness_level .. "%")
|
||||||
end,
|
end,
|
||||||
brightness_text
|
brightness_text
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue