parent
2413bd50a7
commit
bc26b9ff89
|
@ -19,6 +19,7 @@ bling.layout.deck
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
-- mstab
|
-- mstab
|
||||||
|
theme.mstab_bar_disable = false -- disable the tabbar
|
||||||
theme.mstab_bar_ontop = false -- whether you want to allow the bar to be ontop of clients
|
theme.mstab_bar_ontop = false -- whether you want to allow the bar to be ontop of clients
|
||||||
theme.mstab_dont_resize_slaves = false -- whether the tabbed stack windows should be smaller than the
|
theme.mstab_dont_resize_slaves = false -- whether the tabbed stack windows should be smaller than the
|
||||||
-- currently focused stack window (set it to true if you use
|
-- currently focused stack window (set it to true if you use
|
||||||
|
|
|
@ -42,6 +42,7 @@ theme.tabbar_fg_normal_inactive = nil -- foreground color of unfocused clients
|
||||||
theme.tabbar_disable = false -- disable the tab bar entirely
|
theme.tabbar_disable = false -- disable the tab bar entirely
|
||||||
|
|
||||||
-- mstab
|
-- mstab
|
||||||
|
theme.mstab_bar_disable = false -- disable the tabbar
|
||||||
theme.mstab_bar_ontop = false -- whether you want to allow the bar to be ontop of clients
|
theme.mstab_bar_ontop = false -- whether you want to allow the bar to be ontop of clients
|
||||||
theme.mstab_dont_resize_slaves = false -- whether the tabbed stack windows should be smaller than the
|
theme.mstab_dont_resize_slaves = false -- whether the tabbed stack windows should be smaller than the
|
||||||
-- currently focused stack window (set it to true if you use
|
-- currently focused stack window (set it to true if you use
|
||||||
|
|
|
@ -7,6 +7,7 @@ local mylayout = {}
|
||||||
|
|
||||||
mylayout.name = "mstab"
|
mylayout.name = "mstab"
|
||||||
|
|
||||||
|
local tabbar_disable = beautiful.mstab_bar_disable or false
|
||||||
local tabbar_ontop = beautiful.mstab_bar_ontop or false
|
local tabbar_ontop = beautiful.mstab_bar_ontop or false
|
||||||
local tabbar_padding = beautiful.mstab_bar_padding or "default"
|
local tabbar_padding = beautiful.mstab_bar_padding or "default"
|
||||||
local border_radius = beautiful.mstab_border_radius
|
local border_radius = beautiful.mstab_border_radius
|
||||||
|
@ -193,16 +194,18 @@ function mylayout.arrange(p)
|
||||||
local tabbar_width_change = 0
|
local tabbar_width_change = 0
|
||||||
local tabbar_y_change = 0
|
local tabbar_y_change = 0
|
||||||
local tabbar_x_change = 0
|
local tabbar_x_change = 0
|
||||||
if tabbar_position == "top" then
|
if not tabbar_disable then
|
||||||
tabbar_size_change = tabbar_size + tabbar_padding
|
if tabbar_position == "top" then
|
||||||
tabbar_y_change = tabbar_size + tabbar_padding
|
tabbar_size_change = tabbar_size + tabbar_padding
|
||||||
elseif tabbar_position == "bottom" then
|
tabbar_y_change = tabbar_size + tabbar_padding
|
||||||
tabbar_size_change = tabbar_size + tabbar_padding
|
elseif tabbar_position == "bottom" then
|
||||||
elseif tabbar_position == "left" then
|
tabbar_size_change = tabbar_size + tabbar_padding
|
||||||
tabbar_width_change = tabbar_size + tabbar_padding
|
elseif tabbar_position == "left" then
|
||||||
tabbar_x_change = tabbar_size + tabbar_padding
|
tabbar_width_change = tabbar_size + tabbar_padding
|
||||||
elseif tabbar_position == "right" then
|
tabbar_x_change = tabbar_size + tabbar_padding
|
||||||
tabbar_width_change = tabbar_size + tabbar_padding
|
elseif tabbar_position == "right" then
|
||||||
|
tabbar_width_change = tabbar_size + tabbar_padding
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Iterate through slaves
|
-- Iterate through slaves
|
||||||
|
@ -231,14 +234,16 @@ function mylayout.arrange(p)
|
||||||
p.geometries[c] = g
|
p.geometries[c] = g
|
||||||
end
|
end
|
||||||
|
|
||||||
update_tabbar(
|
if not tabbar_disable then
|
||||||
slave_clients,
|
update_tabbar(
|
||||||
t,
|
slave_clients,
|
||||||
t.top_idx,
|
t,
|
||||||
area,
|
t.top_idx,
|
||||||
master_area_width,
|
area,
|
||||||
slave_area_width
|
master_area_width,
|
||||||
)
|
slave_area_width
|
||||||
|
)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return mylayout
|
return mylayout
|
||||||
|
|
|
@ -42,6 +42,7 @@ theme.tabbar_bg_normal_inactive = nil -- background color of unfocused clients o
|
||||||
theme.tabbar_fg_normal_inactive = nil -- foreground color of unfocused clients on the tabbar when inactive
|
theme.tabbar_fg_normal_inactive = nil -- foreground color of unfocused clients on the tabbar when inactive
|
||||||
|
|
||||||
-- mstab
|
-- mstab
|
||||||
|
theme.mstab_bar_disable = false -- disable the tabbar
|
||||||
theme.mstab_bar_ontop = false -- whether you want to allow the bar to be ontop of clients
|
theme.mstab_bar_ontop = false -- whether you want to allow the bar to be ontop of clients
|
||||||
theme.mstab_dont_resize_slaves = false -- whether the tabbed stack windows should be smaller than the
|
theme.mstab_dont_resize_slaves = false -- whether the tabbed stack windows should be smaller than the
|
||||||
-- currently focused stack window (set it to true if you use
|
-- currently focused stack window (set it to true if you use
|
||||||
|
|
Loading…
Reference in New Issue