mirror of https://github.com/lcpz/lain.git
layout: fixed useless_gap retrieval
This commit is contained in:
parent
430e70670c
commit
75b19142c1
|
@ -9,7 +9,7 @@
|
||||||
local debug = require("debug")
|
local debug = require("debug")
|
||||||
|
|
||||||
local assert = assert
|
local assert = assert
|
||||||
local capi = { timer = require ("gears.timer") }
|
local capi = { timer = require("gears.timer") }
|
||||||
local io = { open = io.open,
|
local io = { open = io.open,
|
||||||
lines = io.lines,
|
lines = io.lines,
|
||||||
popen = io.popen }
|
popen = io.popen }
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
|
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
local tag = require("awful.tag")
|
local tag = require("awful.tag")
|
||||||
local tonumber = tonumber
|
local tonumber = tonumber
|
||||||
|
|
||||||
local cascade = {
|
local cascade = {
|
||||||
name = "cascade",
|
name = "cascade",
|
||||||
|
@ -35,7 +35,7 @@ local function do_cascade(p, tiling)
|
||||||
if #cls <= 0 then return end
|
if #cls <= 0 then return end
|
||||||
|
|
||||||
-- Useless gaps.
|
-- Useless gaps.
|
||||||
local useless_gap = tag.gap or 0
|
local useless_gap = p.useless_gap or 0
|
||||||
|
|
||||||
if not tiling then
|
if not tiling then
|
||||||
-- Cascade windows.
|
-- Cascade windows.
|
||||||
|
|
|
@ -10,9 +10,9 @@
|
||||||
|
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
local tag = require("awful.tag")
|
local tag = require("awful.tag")
|
||||||
local tonumber = tonumber
|
local tonumber = tonumber
|
||||||
local math = { floor = math.floor }
|
local math = { floor = math.floor }
|
||||||
|
|
||||||
local centerwork = {
|
local centerwork = {
|
||||||
name = "centerwork",
|
name = "centerwork",
|
||||||
|
@ -27,7 +27,7 @@ local function do_centerwork(p, orientation)
|
||||||
if #cls <= 0 then return end
|
if #cls <= 0 then return end
|
||||||
|
|
||||||
-- Useless gaps.
|
-- Useless gaps.
|
||||||
local useless_gap = tag.gap or 0
|
local useless_gap = p.useless_gap or 0
|
||||||
|
|
||||||
local c = cls[1]
|
local c = cls[1]
|
||||||
local g = {}
|
local g = {}
|
||||||
|
|
|
@ -9,11 +9,11 @@
|
||||||
|
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
local tag = require("awful.tag")
|
local tag = require("awful.tag")
|
||||||
local math = { ceil = math.ceil,
|
local math = { ceil = math.ceil,
|
||||||
floor = math.floor,
|
floor = math.floor,
|
||||||
max = math.max }
|
max = math.max }
|
||||||
local tonumber = tonumber
|
local tonumber = tonumber
|
||||||
|
|
||||||
local termfair = { name = "termfair" }
|
local termfair = { name = "termfair" }
|
||||||
termfair.center = { name = "centerfair" }
|
termfair.center = { name = "centerfair" }
|
||||||
|
@ -26,7 +26,7 @@ local function do_fair(p, orientation)
|
||||||
if #cls <= 0 then return end
|
if #cls <= 0 then return end
|
||||||
|
|
||||||
-- Useless gaps.
|
-- Useless gaps.
|
||||||
local useless_gap = tag.gap or 0
|
local useless_gap = p.useless_gap or 0
|
||||||
|
|
||||||
if orientation == "west" then
|
if orientation == "west" then
|
||||||
-- Layout with fixed number of vertical columns (read from nmaster).
|
-- Layout with fixed number of vertical columns (read from nmaster).
|
||||||
|
|
Loading…
Reference in New Issue