diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..0042997 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "lain"] + path = lain + url = https://github.com/copycat-killer/lain.git diff --git a/README.md b/README.md index 68a63e9..2b9da8b 100644 --- a/README.md +++ b/README.md @@ -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/ diff --git a/lain b/lain new file mode 160000 index 0000000..fddeeff --- /dev/null +++ b/lain @@ -0,0 +1 @@ +Subproject commit fddeeff66466ca8f8bd7d06099eabd1feda10675 diff --git a/rc/tags.lua b/rc/tags.lua index cf9e155..504a2a6 100644 --- a/rc/tags.lua +++ b/rc/tags.lua @@ -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, diff --git a/rc/theme.lua b/rc/theme.lua index 9ebab42..9f623e1 100644 --- a/rc/theme.lua +++ b/rc/theme.lua @@ -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