From: copycat-killer Date: Sat, 28 Mar 2015 10:40:06 +0000 (+0100) Subject: alsabar: string.format use for preset.text in alsabar._notify X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/5e1f73369d067b5a7fcb4a6baaf782305ff291ae?ds=sidebyside;hp=12f2ec0817f25b8bb822ac1c3ffac0f989aee98c alsabar: string.format use for preset.text in alsabar._notify --- diff --git a/widgets/alsabar.lua b/widgets/alsabar.lua index d233b28..b2cba9e 100644 --- a/widgets/alsabar.lua +++ b/widgets/alsabar.lua @@ -71,7 +71,7 @@ function alsabar.notify() end 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)) if alsabar._notify ~= nil then