From c8e4174a5dad5384f4939cb5ec91cc3524ba0a73 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 1 Nov 2020 13:06:58 -0300 Subject: Fix: switch j and k swap/focus indexes --- config.dot/awesome.link/globalkeys.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config.dot/awesome.link/globalkeys.lua b/config.dot/awesome.link/globalkeys.lua index 6b964f9..62899b2 100644 --- a/config.dot/awesome.link/globalkeys.lua +++ b/config.dot/awesome.link/globalkeys.lua @@ -7,13 +7,13 @@ globalkeys = awful.util.table.join( awful.key({ modkey, }, "j", function () - awful.client.focus.byidx( 1) + awful.client.focus.byidx(-1) end, {description = "focus next by index", group = "client"} ), awful.key({ modkey, }, "k", function () - awful.client.focus.byidx(-1) + awful.client.focus.byidx( 1) end, {description = "focus previous by index", group = "client"} ), @@ -21,10 +21,10 @@ globalkeys = awful.util.table.join( {description = "show main menu", group = "awesome"}), -- Layout manipulation - awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end, {description = "swap with next client by index", group = "client"}), - awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end, {description = "swap with previous client by index", group = "client"}), - awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end, {description = "focus the next screen", group = "screen"}), - awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end, {description = "focus the previous screen", group = "screen"}), + awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( -1) end, {description = "swap with next client by index", group = "client"}), + awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( 1) end, {description = "swap with previous client by index", group = "client"}), + awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative(-1) end, {description = "focus the next screen", group = "screen"}), + awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative( 1) end, {description = "focus the previous screen", group = "screen"}), awful.key({ modkey, }, "u", awful.client.urgent.jumpto, {description = "jump to urgent client", group = "client"}), --- Default tab behavior -- cgit v1.2.3