]> git.madduck.net Git - etc/awesome.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

layout: fixed useless_gap retrieval
authorcopycat-killer <dada@archlinux.info>
Wed, 18 Jan 2017 21:54:10 +0000 (22:54 +0100)
committercopycat-killer <dada@archlinux.info>
Wed, 18 Jan 2017 21:54:10 +0000 (22:54 +0100)
helpers.lua
layout/cascade.lua
layout/centerwork.lua
layout/termfair.lua

index 8eed10fa81ffa6be90788fc230ecbb4696918d60..a10aa7aaf8412304244de738dd8223cb2ace3679 100644 (file)
@@ -9,7 +9,7 @@
 local debug  = require("debug")
 
 local assert = assert
 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 }
 local io     = { open  = io.open,
                  lines = io.lines,
                  popen = io.popen }
index 2397a1d00d519b5e97f96c86f060b4b9a480c03d..9f159a53d5572edffe583547312e5fb44c14d3cf 100644 (file)
@@ -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,
 
 local cascade = {
     name     = "cascade",
     nmaster  = 0,
     offset_x = 32,
-    offset_y = 8, 
+    offset_y = 8,
     tile     = {
         name          = "cascadetile",
         nmaster       = 0,
     tile     = {
         name          = "cascadetile",
         nmaster       = 0,
@@ -35,7 +35,7 @@ local function do_cascade(p, tiling)
     if #cls <= 0 then return end
 
     -- Useless gaps.
     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.
 
     if not tiling then
         -- Cascade windows.
index ce3d9e8414ffec962050567c62d495eff6c18c4f..8bcbf6029d537bbfce202678178b2fa1ea7f326c 100644 (file)
@@ -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",
 
 local centerwork = {
     name         = "centerwork",
@@ -27,7 +27,7 @@ local function do_centerwork(p, orientation)
     if #cls <= 0 then return end
 
     -- Useless gaps.
     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 = {}
 
     local c = cls[1]
     local g = {}
index ec127e2efbc080975b3b806e49c0f4572d64f3af..829f0bdea5926704df394c184e5fee66f59b7934 100644 (file)
@@ -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" }
 
 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.
     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).
 
     if orientation == "west" then
         -- Layout with fixed number of vertical columns (read from nmaster).