diff --git a/rc.lua b/rc.lua index cfb4c2a..3bd8163 100644 --- a/rc.lua +++ b/rc.lua @@ -540,10 +540,14 @@ globalkeys = gears.table.join( {description = "swap with next client by index", group = "client"}), awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( -1) end, {description = "swap with previous client by index", group = "client"}), - awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative( 1) end, - {description = "focus the next screen", group = "screen"}), - awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative(-1) end, - {description = "focus the previous screen", group = "screen"}), + awful.key({ modkey, "Control" }, "u", function () awful.screen.focus_bydirection("up", awful.screen.focused()) end, + {description = "focus the screen above", group = "screen"}), + awful.key({ modkey, "Control" }, "m", function () awful.screen.focus_bydirection("down", awful.screen.focused()) end, + {description = "focus the screen below", group = "screen"}), + awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_bydirection("left", awful.screen.focused()) end, + {description = "focus the left screen", group = "screen"}), + awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_bydirection("right", awful.screen.focused()) end, + {description = "focus the right screen", group = "screen"}), awful.key({ modkey, }, "u", awful.client.urgent.jumpto, {description = "jump to urgent client", group = "client"}), awful.key({ modkey, }, "Tab",