dotfiles/awesome/main/layouts.lua

30 lines
808 B
Lua

-- Standard awesome library
local awful = require("awful")
local _M = {}
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
function _M.get ()
-- Table of layouts to cover with awful.layout.inc, order matters.
local layouts = {
awful.layout.suit.floating, -- 1:
awful.layout.suit.tile, -- 2:
awful.layout.suit.tile.left, -- 3:
awful.layout.suit.tile.bottom, -- 4:
awful.layout.suit.tile.top, -- 5:
awful.layout.suit.fair, -- 6:
awful.layout.suit.fair.horizontal, -- 7:
awful.layout.suit.max, -- 8:
}
return layouts
end
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
return setmetatable({}, { __call = function(_, ...) return _M.get(...) end })