From: martin f. krafft Date: Sat, 5 Sep 2009 09:26:44 +0000 (+0200) Subject: more intuitive key mappings X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/d9e5006bacea40f629cfda8556a4c67b16821c4d more intuitive key mappings --- diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 0f06772..c06839e 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -247,13 +247,17 @@ globalkeys = awful.util.table.join( awful.key({ modkey, }, "Left", awful.tag.viewprev ), awful.key({ modkey, }, "Right", awful.tag.viewnext ), awful.key({ modkey, }, "Escape", awful.tag.history.restore), + awful.key({ modkey, "Shift" }, "Right", function () awful.screen.focus( 1) end), + awful.key({ modkey, "Shift" }, "Left", function () awful.screen.focus(-1) end), + awful.key({ modkey, "Shift" }, "h", awful.tag.viewprev ), + awful.key({ modkey, "Shift" }, "l", awful.tag.viewnext ), - awful.key({ modkey, }, "j", + awful.key({ modkey, }, "k", function () awful.client.focus.byidx( 1) if client.focus then client.focus:raise() end end), - awful.key({ modkey, }, "k", + awful.key({ modkey, }, "j", function () awful.client.focus.byidx(-1) if client.focus then client.focus:raise() end @@ -261,10 +265,10 @@ globalkeys = awful.util.table.join( awful.key({ modkey, }, "w", function () mymainmenu:show(true) end), -- 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( 1) end), - awful.key({ modkey, "Control" }, "k", function () awful.screen.focus(-1) end), + awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( 1) end), + awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( -1) end), + awful.key({ modkey, "Control" }, "k", function () awful.screen.focus( 1) end), + awful.key({ modkey, "Control" }, "j", function () awful.screen.focus(-1) end), awful.key({ modkey, }, "u", awful.client.urgent.jumpto), awful.key({ modkey, }, "Tab", function ()