mirror of https://github.com/lcpz/lain.git
alsabar: string.format use for preset.text in alsabar._notify
This commit is contained in:
parent
12f2ec0817
commit
5e1f73369d
|
@ -71,7 +71,7 @@ function alsabar.notify()
|
||||||
end
|
end
|
||||||
|
|
||||||
local int = math.modf((alsabar._current_level / 100) * alsabar.notifications.bar_size)
|
local int = math.modf((alsabar._current_level / 100) * alsabar.notifications.bar_size)
|
||||||
preset.text = string.format("[%s%s]", string.rep("|", int),
|
preset.text = string.format("[%s%s]", string.rep("|", int),
|
||||||
string.rep(" ", alsabar.notifications.bar_size - int))
|
string.rep(" ", alsabar.notifications.bar_size - int))
|
||||||
|
|
||||||
if alsabar._notify ~= nil then
|
if alsabar._notify ~= nil then
|
||||||
|
|
Loading…
Reference in New Issue