From 480147506442bd23aa24e192ee2efab40ad5950f Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Tue, 21 Oct 2014 23:32:52 +0200 Subject: [PATCH] Awesome: Switch hjkl/arrows bindings --- .config/awesome/rc.lua | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index c9b9d5e6..9193edd3 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -396,7 +396,7 @@ globalkeys = awful.util.table.join( -- Standard program awful.key({ modkey, "Control" }, "r", awesome.restart), - awful.key({ modkey, "Shift" }, "q", awesome.quit), + -- awful.key({ modkey, "Shift" }, "q", awesome.quit), -- Tags awful.key({ modkey }, "Prior", awful.tag.viewprev ), @@ -404,8 +404,8 @@ globalkeys = awful.util.table.join( awful.key({ modkey }, "Escape", awful.tag.history.restore), -- Layout select and switch - awful.key({ modkey }, "Up", function () awful.client.swap.byidx( 1) end), - awful.key({ modkey }, "Down", function () awful.client.swap.byidx( -1) end), + awful.key({ modkey }, "l", function () awful.client.swap.byidx( 1) end), + awful.key({ modkey }, "h", function () awful.client.swap.byidx( -1) end), -- awful.key({ modkey, }, "u", awful.client.urgent.jumpto), awful.key({ modkey }, "Tab", function () @@ -415,26 +415,26 @@ globalkeys = awful.util.table.join( end end), - awful.key({ modkey }, "Right", + awful.key({ modkey }, "k", function () awful.client.focus.byidx( 1) if client.focus then client.focus:raise() end end), - awful.key({ modkey }, "Left", + awful.key({ modkey }, "j", function () awful.client.focus.byidx(-1) if client.focus then client.focus:raise() end end), -- Layout resize - awful.key({ modkey, "Mod1" }, "Left", function () awful.tag.incmwfact(-0.05) end), - awful.key({ modkey, "Mod1" }, "Right", function () awful.tag.incmwfact(0.05) end), - awful.key({ modkey, "Mod1" }, "Up", function () awful.client.incwfact(0.05) end), - awful.key({ modkey, "Mod1" }, "Down", function () awful.client.incwfact(-0.05) end), + awful.key({ modkey, "Mod1" }, "h", function () awful.tag.incmwfact(-0.05) end), + awful.key({ modkey, "Mod1" }, "l", function () awful.tag.incmwfact(0.05) end), + awful.key({ modkey, "Mod1" }, "k", function () awful.client.incwfact(0.05) end), + awful.key({ modkey, "Mod1" }, "j", function () awful.client.incwfact(-0.05) end), -- Floating clients resize - awful.key({ modkey , "Mod1"}, "j", function () awful.client.moveresize( 20, 20, -40, -40) end), - awful.key({ modkey , "Mod1"}, "k", function () awful.client.moveresize(-20, -20, 40, 40) end), + awful.key({ modkey , "Mod1"}, "Down", function () awful.client.moveresize( 20, 20, -40, -40) end), + awful.key({ modkey , "Mod1"}, "Up", function () awful.client.moveresize(-20, -20, 40, 40) end), -- Layout organization awful.key({ modkey, "Control" }, "Left", function () awful.tag.incnmaster( 1) end), @@ -505,10 +505,10 @@ clientkeys = awful.util.table.join( -- awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end), -- Floating clients move - awful.key({ modkey }, "j", function () awful.client.moveresize( 0, 20, 0, 0) end), - awful.key({ modkey }, "k", function () awful.client.moveresize( 0, -20, 0, 0) end), - awful.key({ modkey }, "h", function () awful.client.moveresize(-20, 0, 0, 0) end), - awful.key({ modkey }, "l", function () awful.client.moveresize( 20, 0, 0, 0) end), + awful.key({ modkey }, "Down", function () awful.client.moveresize( 0, 20, 0, 0) end), + awful.key({ modkey }, "Up", function () awful.client.moveresize( 0, -20, 0, 0) end), + awful.key({ modkey }, "Left", function () awful.client.moveresize(-20, 0, 0, 0) end), + awful.key({ modkey }, "Right", function () awful.client.moveresize( 20, 0, 0, 0) end), -- awful.key({ modkey, }, "n", -- function (c)