]> git.rmz.io Git - dotfiles.git/commitdiff
Revert "Revert "awesome: update layout.inc call to new api""
authorSamir Benmendil <samir.benmendil@gmail.com>
Wed, 14 Jan 2015 12:29:43 +0000 (12:29 +0000)
committerSamir Benmendil <samir.benmendil@gmail.com>
Wed, 14 Jan 2015 12:29:43 +0000 (12:29 +0000)
This reverts commit 2847378868e7db372ea81a30c722bc98f31ca012.

Actually I will be using the git version from now on.

awesome/bindings.lua

index af2426e97a21420088b5e339aacf34083d4571ee..5ff504ebf91021ab7a7cf641c0d5b78d31cd25a4 100644 (file)
@@ -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),