evenly distributed the 10 max workspaces between all displays
This commit is contained in:
parent
41bbaa16d1
commit
06d632dd8a
20
rc.lua
20
rc.lua
@ -202,26 +202,16 @@ awful.screen.connect_for_each_screen(function(s)
|
|||||||
|
|
||||||
-- Each screen has its own tag table.
|
-- Each screen has its own tag table.
|
||||||
local tags = {}
|
local tags = {}
|
||||||
if screen:count() > 1 then
|
for i = 1, math.floor(10 / screen:count()) do
|
||||||
if s.geometry.width > s.geometry.height then -- landscape
|
|
||||||
for i = 1, 2 do
|
|
||||||
tags[#tags+1] = tostring(workspaceCounter)
|
tags[#tags+1] = tostring(workspaceCounter)
|
||||||
workspaceCounter = workspaceCounter + 1
|
workspaceCounter = workspaceCounter + 1
|
||||||
end
|
end
|
||||||
|
if screen:count() > 1 and s.geometry.width > s.geometry.height then -- landscape, multiple displays
|
||||||
awful.tag(tags, s, awful.layout.suit.floating)
|
awful.tag(tags, s, awful.layout.suit.floating)
|
||||||
else -- portrait
|
elseif s.geometry.width > s.geometry.height then -- landscape, single display
|
||||||
for i = 1, 4 do
|
|
||||||
tags[#tags+1] = tostring(workspaceCounter)
|
|
||||||
workspaceCounter = workspaceCounter + 1
|
|
||||||
end
|
|
||||||
awful.tag(tags, s, awful.layout.suit.fair.horizontal)
|
|
||||||
end
|
|
||||||
else
|
|
||||||
for i = 1, 10 do
|
|
||||||
tags[#tags+1] = tostring(workspaceCounter)
|
|
||||||
workspaceCounter = workspaceCounter + 1
|
|
||||||
end
|
|
||||||
awful.tag(tags, s, awful.layout.suit.fair)
|
awful.tag(tags, s, awful.layout.suit.fair)
|
||||||
|
else -- portrait
|
||||||
|
awful.tag(tags, s, awful.layout.suit.fair.horizontal)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Create a promptbox for each screen
|
-- Create a promptbox for each screen
|
||||||
|
Loading…
Reference in New Issue
Block a user