2023-04-20 04:08:44 +00:00
|
|
|
-- 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 = {
|
2023-05-01 23:51:42 +00:00
|
|
|
awful.layout.suit.floating, -- 1:
|
2023-04-20 04:08:44 +00:00
|
|
|
|
|
|
|
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:
|
2023-05-01 23:51:42 +00:00
|
|
|
awful.layout.suit.fair.horizontal, -- 7:
|
2023-04-20 04:08:44 +00:00
|
|
|
|
2023-05-01 23:51:42 +00:00
|
|
|
awful.layout.suit.max, -- 8:
|
2023-04-20 04:08:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return layouts
|
|
|
|
end
|
|
|
|
|
|
|
|
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
|
|
|
|
|
|
|
|
return setmetatable({}, { __call = function(_, ...) return _M.get(...) end })
|