From f0c0b9c09ca403f4c2c2148e82762dc2e1d35400 Mon Sep 17 00:00:00 2001 From: backbone Date: Thu, 3 Mar 2022 15:00:25 +0300 Subject: [PATCH] Move to up/down/left/right screen --- rc.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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",