aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-11-01 13:06:58 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-11-01 13:06:58 -0300
commitc8e4174a5dad5384f4939cb5ec91cc3524ba0a73 (patch)
tree75d4c9a6c5aacca0c27774ea9c74fc3f98278b47
parent2569ef8a0e09f66a330e5dec4b9aa20cb8688c2f (diff)
downloadawesome-c8e4174a5dad5384f4939cb5ec91cc3524ba0a73.tar.gz
awesome-c8e4174a5dad5384f4939cb5ec91cc3524ba0a73.tar.bz2
Fix: switch j and k swap/focus indexes
-rw-r--r--config.dot/awesome.link/globalkeys.lua12
1 files 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