From d9e5006bacea40f629cfda8556a4c67b16821c4d Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sat, 5 Sep 2009 11:26:44 +0200 Subject: [PATCH] more intuitive key mappings --- .config/awesome/rc.lua | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) 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 () -- 2.39.2