first desktop on the second screen should have floating layout
This commit is contained in:
		
							parent
							
								
									4ef4be0644
								
							
						
					
					
						commit
						5885b02170
					
				
					 1 changed files with 7 additions and 7 deletions
				
			
		
							
								
								
									
										14
									
								
								rc.lua
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								rc.lua
									
										
									
									
									
								
							| 
						 | 
					@ -188,19 +188,19 @@ tags[1].layout = {
 | 
				
			||||||
-- screens 2+
 | 
					-- screens 2+
 | 
				
			||||||
if screen.count() >= 2 then
 | 
					if screen.count() >= 2 then
 | 
				
			||||||
	tags[2].layout = {
 | 
						tags[2].layout = {
 | 
				
			||||||
		[1] = layouts.max[1],
 | 
							[1] = layouts.float[1]
 | 
				
			||||||
		[4] = layouts.float[1]
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
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
 | 
						-- 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 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]
 | 
						--	default_tiled = layouts.tiled[1]
 | 
				
			||||||
	else
 | 
						--else
 | 
				
			||||||
		default_tiled = layouts.tiled[3]
 | 
						--	default_tiled = layouts.tiled[3]
 | 
				
			||||||
	end
 | 
						--end
 | 
				
			||||||
 | 
						default_tiled = layouts.tiled[1]
 | 
				
			||||||
	for tag = 1, 9 do
 | 
						for tag = 1, 9 do
 | 
				
			||||||
		local name = tags[s].name[tag] or tostring(tag)
 | 
							local name = tags[s].name[tag] or tostring(tag)
 | 
				
			||||||
		local layout = tags[s].layout[tag] or default_tiled
 | 
							local layout = tags[s].layout[tag] or default_tiled
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue