mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-23 18:28:34 +02:00
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:
parent
bd28ceddf8
commit
eb309fd35b
5 changed files with 16 additions and 1 deletions
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[submodule "lain"]
|
||||
path = lain
|
||||
url = https://github.com/copycat-killer/lain.git
|
|
@ -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
1
lain
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit fddeeff66466ca8f8bd7d06099eabd1feda10675
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue