rc.lua: move window tiling layouts to config

This commit is contained in:
Alice Gaudon 2019-08-13 22:05:01 +02:00
parent 6d26491560
commit a0fee14577
2 changed files with 30 additions and 23 deletions

View File

@ -22,9 +22,34 @@ config.awesome = {
terminal = "terminator",
-- Default terminal editor
-- editor = "vi",
editor = os.getenv("EDITOR") or "nano",
-- editor = "vi",
-- Default terminal editor command
editor_cmd = config.awesome.terminal .. " -e " .. config.awesome.editor,
-- Window tiling
tiling = {
-- Available window layouts - order matters
layouts = {
awful.layout.suit.floating,
awful.layout.suit.tile,
awful.layout.suit.tile.left,
awful.layout.suit.tile.bottom,
awful.layout.suit.tile.top,
-- awful.layout.suit.fair,
-- awful.layout.suit.fair.horizontal,
-- awful.layout.suit.spiral,
-- awful.layout.suit.spiral.dwindle,
-- awful.layout.suit.max,
-- awful.layout.suit.max.fullscreen,
-- awful.layout.suit.magnifier,
-- awful.layout.suit.corner.nw,
-- awful.layout.suit.corner.ne,
-- awful.layout.suit.corner.sw,
-- awful.layout.suit.corner.se,
},
},
}

26
rc.lua
View File

@ -88,10 +88,13 @@ beautiful.init(config.theme)
--
-- Tiling
-- Window tiling
--
local tiling = require("tiling")
-- Tiling layouts
awful.layout.layouts = config.awesome.tiling.layouts
--
-- Media control keys and widget
@ -126,27 +129,6 @@ for _, app in ipairs(config.autostart) do
end
-- Table of layouts to cover with awful.layout.inc, order matters.
awful.layout.layouts = {
awful.layout.suit.floating,
awful.layout.suit.tile,
awful.layout.suit.tile.left,
awful.layout.suit.tile.bottom,
awful.layout.suit.tile.top,
-- awful.layout.suit.fair,
-- awful.layout.suit.fair.horizontal,
-- awful.layout.suit.spiral,
-- awful.layout.suit.spiral.dwindle,
-- awful.layout.suit.max,
-- awful.layout.suit.max.fullscreen,
-- awful.layout.suit.magnifier,
-- awful.layout.suit.corner.nw,
-- awful.layout.suit.corner.ne,
-- awful.layout.suit.corner.sw,
-- awful.layout.suit.corner.se,
}
-- }}}
-- {{{ Menu
-- Create a launcher widget and a main menu
myawesomemenu = {