From: copycat-killer Date: Wed, 18 Jan 2017 21:54:10 +0000 (+0100) Subject: layout: fixed useless_gap retrieval X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/75b19142c160825b0f5ce25feea7eea9970844c6?ds=sidebyside;hp=-c layout: fixed useless_gap retrieval --- 75b19142c160825b0f5ce25feea7eea9970844c6 diff --git a/helpers.lua b/helpers.lua index 8eed10f..a10aa7a 100644 --- a/helpers.lua +++ b/helpers.lua @@ -9,7 +9,7 @@ local debug = require("debug") local assert = assert -local capi = { timer = require ("gears.timer") } +local capi = { timer = require("gears.timer") } local io = { open = io.open, lines = io.lines, popen = io.popen } diff --git a/layout/cascade.lua b/layout/cascade.lua index 2397a1d..9f159a5 100644 --- a/layout/cascade.lua +++ b/layout/cascade.lua @@ -8,14 +8,14 @@ --]] -local tag = require("awful.tag") -local tonumber = tonumber +local tag = require("awful.tag") +local tonumber = tonumber local cascade = { name = "cascade", nmaster = 0, offset_x = 32, - offset_y = 8, + offset_y = 8, tile = { name = "cascadetile", nmaster = 0, @@ -35,7 +35,7 @@ local function do_cascade(p, tiling) if #cls <= 0 then return end -- Useless gaps. - local useless_gap = tag.gap or 0 + local useless_gap = p.useless_gap or 0 if not tiling then -- Cascade windows. diff --git a/layout/centerwork.lua b/layout/centerwork.lua index ce3d9e8..8bcbf60 100644 --- a/layout/centerwork.lua +++ b/layout/centerwork.lua @@ -10,9 +10,9 @@ --]] -local tag = require("awful.tag") -local tonumber = tonumber -local math = { floor = math.floor } +local tag = require("awful.tag") +local tonumber = tonumber +local math = { floor = math.floor } local centerwork = { name = "centerwork", @@ -27,7 +27,7 @@ local function do_centerwork(p, orientation) if #cls <= 0 then return end -- Useless gaps. - local useless_gap = tag.gap or 0 + local useless_gap = p.useless_gap or 0 local c = cls[1] local g = {} diff --git a/layout/termfair.lua b/layout/termfair.lua index ec127e2..829f0bd 100644 --- a/layout/termfair.lua +++ b/layout/termfair.lua @@ -9,11 +9,11 @@ --]] -local tag = require("awful.tag") -local math = { ceil = math.ceil, - floor = math.floor, - max = math.max } -local tonumber = tonumber +local tag = require("awful.tag") +local math = { ceil = math.ceil, + floor = math.floor, + max = math.max } +local tonumber = tonumber local termfair = { name = "termfair" } termfair.center = { name = "centerfair" } @@ -26,7 +26,7 @@ local function do_fair(p, orientation) if #cls <= 0 then return end -- Useless gaps. - local useless_gap = tag.gap or 0 + local useless_gap = p.useless_gap or 0 if orientation == "west" then -- Layout with fixed number of vertical columns (read from nmaster).