tabbar padding support for useless gaps

This commit is contained in:
Nooo37 2020-10-22 16:41:22 +02:00
parent 836b5bf4a8
commit 6401e48615
1 changed files with 6 additions and 1 deletions

View File

@ -7,7 +7,7 @@ local mylayout = {}
mylayout.name = "mstab"
local tabbar_padding = beautiful.mstab_bar_padding or 0
local tabbar_padding = beautiful.mstab_bar_padding or "default"
local tabbar_height = beautiful.mstab_bar_height or 40
local corner_radius = beautiful.mstab_corner_width or beautiful.corner_radius or 0
local tabbar_font = beautiful.mstab_font or beautiful.font or "Monospace 8"
@ -113,6 +113,11 @@ function mylayout.arrange(p)
local master_area_width = area.width * mwfact
local slave_area_width = area.width - master_area_width
-- "default" means that it uses standard useless gap size
if tabbar_padding == "default" then
tabbar_padding = 2*t.gap
end
-- Special case: No masters -> full screen slave width
if nmaster == 0 then
master_area_width = 1