1
0
Fork 0

first desktop on the second screen should have floating layout

This commit is contained in:
Von Random 2016-08-17 18:54:36 +03:00
parent 4ef4be0644
commit 5885b02170

12
rc.lua
View file

@ -188,19 +188,19 @@ tags[1].layout = {
-- screens 2+
if screen.count() >= 2 then
tags[2].layout = {
[1] = layouts.max[1],
[4] = layouts.float[1]
[1] = layouts.float[1]
}
end
-- Fill the missing values with defaults
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
--if s == 1 then
-- default_tiled = layouts.tiled[1]
--else
-- default_tiled = layouts.tiled[3]
--end
default_tiled = layouts.tiled[1]
else
default_tiled = layouts.tiled[3]
end
for tag = 1, 9 do
local name = tags[s].name[tag] or tostring(tag)
local layout = tags[s].layout[tag] or default_tiled