From 520bd024162817255f26add5cd72b9d5af929432 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Fri, 5 Aug 2016 01:34:55 -0400 Subject: [PATCH] tasklist: Add spacing support --- lib/awful/widget/tasklist.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/awful/widget/tasklist.lua b/lib/awful/widget/tasklist.lua index ae749273b..cff5ef4e6 100644 --- a/lib/awful/widget/tasklist.lua +++ b/lib/awful/widget/tasklist.lua @@ -167,6 +167,7 @@ end -- @tparam[opt=nil] string style.font_focus -- @tparam[opt=nil] string style.font_minimized -- @tparam[opt=nil] string style.font_urgent +-- @tparam[opt=nil] number style.spacing The spacing between tags. -- @param[opt] update_function Function to create a tag widget on each -- update. See `awful.widget.common.list_update`. -- @tparam[opt] table base_widget Container widget for tag widgets. Default @@ -179,6 +180,10 @@ function tasklist.new(screen, filter, buttons, style, update_function, base_widg local data = setmetatable({}, { __mode = 'k' }) + if w.set_spacing and (style and style.spacing or beautiful.taglist_spacing) then + w:set_spacing(style and style.spacing or beautiful.taglist_spacing) + end + local queued_update = false function w._do_tasklist_update() -- Add a delayed callback for the first update.