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

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "lain"]
path = lain
url = https://github.com/copycat-killer/lain.git

View file

@ -58,3 +58,9 @@ way to load them is to use:
require("lib/quake")
local quake = package.loaded["vbe/quake"]
I am using [lain][] for additional layouts. It is included as a
submodule. I would have preferred to put it in `lib/`, but this does
not seem possible. Don't forget to run `git submodule update`.
[lain]: https://github.com/copycat-killer/lain/

1
lain Submodule

@ -0,0 +1 @@
Subproject commit fddeeff66466ca8f8bd7d06099eabd1feda10675

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