From c9b11c5962f5a2c491f85755dff72a36829149df Mon Sep 17 00:00:00 2001 From: copycat-killer Date: Sat, 28 Mar 2015 11:40:06 +0100 Subject: [PATCH 1/1] alsabar: string.format use for preset.text in alsabar._notify --- widgets/alsabar.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5