From d3b5b5a94d974e678d10a8670886e17a354eede5 Mon Sep 17 00:00:00 2001 From: Greg Flynn Date: Sat, 10 Aug 2019 13:34:15 -0400 Subject: [PATCH] add arg for none in pulsebar notification --- widget/pulsebar.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) -- 2.39.5