From b8902b96c1bd060e172e7a4cb1df5087badecc08 Mon Sep 17 00:00:00 2001 From: Ian Foster Date: Wed, 8 Jan 2014 16:01:38 -0800 Subject: [PATCH] allowed user to set termfair settings globally --- awesome/awesome/layouts/termfair.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/awesome/awesome/layouts/termfair.lua b/awesome/awesome/layouts/termfair.lua index 7579a81..296997b 100644 --- a/awesome/awesome/layouts/termfair.lua +++ b/awesome/awesome/layouts/termfair.lua @@ -41,14 +41,16 @@ function arrange(p) local cls = p.clients -- How many vertical columns? Read from nmaster on the tag. - local t = tag.selected(p.screen) - local num_x = tag.getnmaster(t) + --local t = tag.selected(p.screen) + --local num_x = tag.getnmaster(t) + local num_x = nmaster -- Do at least "desired_y" rows. Read this from ncol. (Yes, I use a -- *column* setting to set the number of *rows*. That's because -- num_x is the *master* setting -- it's the setting that's most -- important to me.) - local desired_y = tag.getncol(t) + --local desired_y = tag.getncol(t) + local desired_y = ncol if #cls > 0 then -- 1.9.1