do not make newly spawned windows master, set default tiled layout to tiledright for main screen and tiledleft to all others
This commit is contained in:
parent
b1e711fbcc
commit
1bf3c96f08
1 changed files with 12 additions and 4 deletions
16
rc.lua
16
rc.lua
|
@ -123,7 +123,6 @@ local layouts = {
|
||||||
awful.layout.suit.magnifier
|
awful.layout.suit.magnifier
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
layouts.tiled['default'] = layouts.tiled[3]
|
|
||||||
-- }}}
|
-- }}}
|
||||||
-- {{{ Wallpaper
|
-- {{{ Wallpaper
|
||||||
if beautiful.wallpaper then
|
if beautiful.wallpaper then
|
||||||
|
@ -156,15 +155,23 @@ if screen.count() >= 2 then
|
||||||
end
|
end
|
||||||
-- Fill the missing values with defaults
|
-- Fill the missing values with defaults
|
||||||
for s = 1, screen.count() do
|
for s = 1, screen.count() do
|
||||||
|
-- Set default tiled layout for all the screens
|
||||||
|
-- if s == 1 and screen.count() ~= 1 then -- in case I ever want to have default for less than 2 screens
|
||||||
|
if s == 1 then
|
||||||
|
default_tiled = layouts.tiled[3]
|
||||||
|
else
|
||||||
|
default_tiled = layouts.tiled[1]
|
||||||
|
end
|
||||||
for tag = 1, 9 do
|
for tag = 1, 9 do
|
||||||
local name = tags[s].name[tag] or tag
|
local name = tags[s].name[tag] or tag
|
||||||
local layout = tags[s].layout[tag] or layouts.tiled['default']
|
local layout = tags[s].layout[tag] or default_tiled
|
||||||
tags[s].name[tag] = name
|
tags[s].name[tag] = name
|
||||||
tags[s].layout[tag] = layout
|
tags[s].layout[tag] = layout
|
||||||
|
-- Assign saved tiled layout so that we can use it right away
|
||||||
if enters(layout, layouts.tiled) then
|
if enters(layout, layouts.tiled) then
|
||||||
saved_layouts[s].tiled[name] = layout
|
saved_layouts[s].tiled[name] = layout
|
||||||
else
|
else
|
||||||
saved_layouts[s].tiled[name] = layouts.tiled['default']
|
saved_layouts[s].tiled[name] = default_tiled
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -535,7 +542,8 @@ awful.rules.rules = {
|
||||||
border_color = beautiful.border_normal,
|
border_color = beautiful.border_normal,
|
||||||
focus = awful.client.focus.filter,
|
focus = awful.client.focus.filter,
|
||||||
keys = clientkeys,
|
keys = clientkeys,
|
||||||
buttons = clientbuttons
|
buttons = clientbuttons,
|
||||||
|
callback = awful.client.setslave
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
-- Floating only rules:
|
-- Floating only rules:
|
||||||
|
|
Loading…
Reference in a new issue