RemoveExtraSpace

Remove extra spaces between tags
Code works in Awesome 3.5, you may remake it for 3.4, but the change will be enough.

When you are use icons instead of text in the tag, gaps are formed on the side of icons, looking not very beautifull. By default, when using the text in the tag, the left and right is added 4 pixels to separate text, but for the icons, this approach seems not the best way. Therefore, this problem can (and should) be solved. At the same time the ability to edit the text in the distance between your widgets.

So to solve the problem, we need 2 files ~/.config/awesome/awful/widget/common.lua and taglist.lua from the same folder. Recommend copying files to the user's library, not to work on the root. And if you mess up something that can be restored. cp -R /usr/share/awesome/lib ~/.config/awesome Open ~/.config/awesome/awful/widget/common.lua, find function common.list_update in it, and override it as follows: function common.list_update(w, buttons, label, data, objects, left_margin, right_margin) Here we have added the left and right margins. Then find following code in same function: else ib = wibox.widget.imagebox tb = wibox.widget.textbox bgb = wibox.widget.background m = wibox.layout.margin(tb, 4, 4) And replace it with: else local m_left = left_margin or 4			--initialize the left indent local m_right = right_margin or 4			--initialize the right indent ib = wibox.widget.imagebox tb = wibox.widget.textbox bgb = wibox.widget.background m = wibox.layout.margin(tb, m_left, m_right)	--redefine standart fucntion calling Here, we hedged if the arguments passed to the function is not indented, they are set to default values. Actual is for calls from other, not modify function (we do not want to redo the entire code))).

Then, open ~/.config/awesome/awful/widget/taglist.lua. Find following function function taglist_update and replace its with the following code: local function taglist_update(s, w, buttons, filter, data, style, update_function, ml, mr)	--adding variables indent Then, find calling update_function(w, buttons, label, data, tags) and replace its: update_function(w, buttons, label, data, tags, ml, mr)					--adding to the call variables indent Find function taglist.new in the same file and add followng code to the beginning: local ml, mr = 0,0		--adding variables indent and initialization And here you can set your margins, I chose 0 for icons so that they are close to each other, if we choose other values, the indents appear on the right side, ignoring the left (its some features) Then find the code: if s == screen then taglist_update(s, w, buttons, filter, data, style, uf) And replace it for: if s == screen then taglist_update(s, w, buttons, filter, data, style, uf, ml, mr) Everything is ready, restarts Awesome!