]> git.rmz.io Git - dotfiles.git/blobdiff - awesome/bindings.lua
Revert "Revert "awesome: update layout.inc call to new api""
[dotfiles.git] / 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),