From: Greg Flynn Date: Sat, 10 Aug 2019 17:34:15 +0000 (-0400) Subject: add arg for none in pulsebar notification X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/d3b5b5a94d974e678d10a8670886e17a354eede5 add arg for none in pulsebar notification --- diff --git a/widget/pulsebar.lua b/widget/pulsebar.lua index 53bfc3b..51290f8 100644 --- a/widget/pulsebar.lua +++ b/widget/pulsebar.lua @@ -43,6 +43,7 @@ local function factory(args) local tick = args.tick or "|" local tick_pre = args.tick_pre or "[" local tick_post = args.tick_post or "]" + local tick_none = args.tick_none or " " pulsebar.colors = args.colors or pulsebar.colors pulsebar.followtag = args.followtag or false @@ -145,7 +146,7 @@ local function factory(args) "%s%s%s%s", tick_pre, string.rep(tick, int), - string.rep(" ", tot - int), + string.rep(tick_none, tot - int), tick_post )