layouts: use termfair layout for terminals

This layout comes from lain collection of layouts. We import it as a
submodule.
This commit is contained in:
Vincent Bernat 2014-01-01 09:04:27 +01:00
parent bd28ceddf8
commit eb309fd35b
5 changed files with 16 additions and 1 deletions

View file

@ -2,6 +2,7 @@
local shifty = loadrc("shifty", "vbe/shifty")
local keydoc = loadrc("keydoc", "vbe/keydoc")
local lain = require("lain")
local tagicon = function(icon)
if screen.count() > 1 then
@ -30,7 +31,9 @@ shifty.config.tags = {
},
xterm = {
position = 1,
layout = awful.layout.suit.fair,
layout = lain.layout.termfair,
nmaster = math.floor(screen[1].geometry.width / 500),
ncol = 1,
exclusive = true,
slave = true,
spawn = config.terminal,

View file

@ -40,6 +40,8 @@ theme.taglist_squares_unsel = icons .. "/taglist/squarew.png"
for _, l in pairs(config.layouts) do
theme["layout_" .. l.name] = icons .. "/layouts/" .. l.name .. ".png"
end
local lain_icons = awful.util.getdir("config") .. "/lain/icons/layout/zenburn"
theme.layout_termfair = lain_icons .. "/termfair.png"
-- Naughty
naughty.config.presets.normal.bg = theme.bg_widget