From: Samir Benmendil Date: Wed, 14 Jan 2015 12:29:43 +0000 (+0000) Subject: Revert "Revert "awesome: update layout.inc call to new api"" X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/bf21af845aba4563908ae6c8e716a0b31e32cc73 Revert "Revert "awesome: update layout.inc call to new api"" This reverts commit 2847378868e7db372ea81a30c722bc98f31ca012. Actually I will be using the git version from now on. --- diff --git a/awesome/bindings.lua b/awesome/bindings.lua index af2426e..5ff504e 100644 --- a/awesome/bindings.lua +++ b/awesome/bindings.lua @@ -70,8 +70,8 @@ globalkeys = awful.util.table.join(globalkeys, -- Prompt awful.key({ modkey }, "space", function () mypromptbox[mouse.screen]:run() end), -- switch layout - awful.key({ modkey }, "]", function () awful.layout.inc(layouts, 1) end), - awful.key({ modkey }, "[", function () awful.layout.inc(layouts, -1) end), + awful.key({ modkey }, "]", function () awful.layout.inc( 1, mouse.screen, layouts) end), + awful.key({ modkey }, "[", function () awful.layout.inc(-1, mouse.screen, layouts) end), -- resize slave awful.key({ modkey, "Control" }, "j", function () awful.client.incwfact( 0.05) end), awful.key({ modkey, "Control" }, "k", function () awful.client.incwfact(-0.05) end),