Cleaned up layoutmanager code

This commit is contained in:
2022-04-24 13:26:02 -07:00
parent 9a13f2406d
commit 1c5d1dc553
8 changed files with 129 additions and 107 deletions

View File

@ -9,6 +9,7 @@ Tagger.__index = Tagger
function Tagger:new(args)
local t = {
screen = args.screen,
layoutmanager = args.layoutmanager,
rows = args.rows or 2,
cols = args.cols or 4,
}
@ -20,7 +21,7 @@ function Tagger:new(args)
awful.tag.add(
"(" .. tostring(r) .. ", " .. tostring(c) .. ")",
{
layout = layoutmanager:default_layout(),
layout = t.layoutmanager:get_default_layout(),
screen = t.screen,
gap_single_client = false,