]> git.rmz.io Git - dotfiles.git/commitdiff
increase slave size with keyboard
authorSamir Benmendil <samir.benmendil@gmail.com>
Thu, 4 Jul 2013 05:25:18 +0000 (07:25 +0200)
committerSamir Benmendil <samir.benmendil@gmail.com>
Thu, 4 Jul 2013 05:25:18 +0000 (07:25 +0200)
awesome/bindings.lua

index a6a58b3f9ffb0f97dad24d7cd04affb18996e039..20e81a76c5de4f9e3d81c71675be7bb6fce5f0f6 100644 (file)
@@ -33,8 +33,6 @@ globalkeys = awful.util.table.join(
     -- Layout manipulation
     awful.key({ modkey, "Shift"   }, "j", function () awful.client.swap.byidx(  1)    end),
     awful.key({ modkey, "Shift"   }, "k", function () awful.client.swap.byidx( -1)    end),
-    awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end),
-    awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end),
     awful.key({ modkey,           }, "u", awful.client.urgent.jumpto),
     awful.key({ modkey,           }, "Tab",
         function ()
@@ -120,7 +118,10 @@ clientkeys = awful.util.table.join(
     awful.key({ modkey, "Shift" }, "#94",      awful.client.movetoscreen ),
     -- ontop and below
     awful.key({ modkey,           }, "t",      function (c) c.ontop = not c.ontop            end),
-    awful.key({ modkey,           }, "b",      function (c) c.below = not c.below            end)
+    awful.key({ modkey,           }, "b",      function (c) c.below = not c.below            end),
+    -- resize slave
+    awful.key({ modkey, "Control" }, "j",      function (c) awful.client.incwfact( 0.05, c)  end),
+    awful.key({ modkey, "Control" }, "k",      function (c) awful.client.incwfact(-0.05, c)  end)
     -- }}}
 )
 -- }}}