Layout
From awesome
- A layout is a way of organizing windows in a view. awesome offers the following layouts:
- colums - master windows are displayed in the left column (or the right one: there are two layouts) and the other windows are in multiple columns.
- rows - the same, with rows instead of columns.
- magnified - the master window (only one in this layout) is drawn in the middle of the screen, the other ones are stacked under it in columns.
- maximized - the master window uses all available place and the other ones are hidden.
- spiral - the master window stays in the left half of the screen, the next on uses the half of the other half, the third on half of the remaining half, and so on clockwise.
- zig-zag - as above, except windows are drawn from right to bottom, then right, instead of clockwise. It's easier than it sounds, just try it.
- floating - windows can be freely moved and resized, and they can overlap each other.
To follow layout information in 'tile' views I have found it useful to change rc.lua in following way
awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1)
naughty.notify({ title = 'Master', text = tostring(awful.tag.getnmaster()), timeout = 1 }) end),
awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1)
naughty.notify({ title = 'Master', text = tostring(awful.tag.getnmaster()), timeout = 1 }) end),
awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1)
naughty.notify({ title = 'Columns', text = tostring(awful.tag.getncol()), timeout = 1 }) end),
awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1)
naughty.notify({ title = 'Columns', text = tostring(awful.tag.getncol()), timeout = 1 }) end),
awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1)
naughty.notify({ title = 'Layout', text = awful.layout.getname(), timeout = 1 }) end),
awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1)
naughty.notify({ title = 'Layout', text = awful.layout.getname(), timeout = 1 }) end),