From 0ac7c52a27fd0a2e0a8fdfdfebe95ccaa5b7963f Mon Sep 17 00:00:00 2001 From: buffet Date: Mon, 25 Oct 2021 17:30:19 +0000 Subject: [PATCH] Add arrow key binds --- .../awesome/configuration/keys/global.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/awesome/.config/awesome/configuration/keys/global.lua b/awesome/.config/awesome/configuration/keys/global.lua index d97fc40..f343520 100644 --- a/awesome/.config/awesome/configuration/keys/global.lua +++ b/awesome/.config/awesome/configuration/keys/global.lua @@ -64,11 +64,28 @@ globalKeys = gears.table.join( {description = "focus previous by index", group = "client"} ), + awful.key({ modkey, }, "Down", + function () + awful.client.focus.byidx( 1) + end, + {description = "focus next by index", group = "client"} + ), + awful.key({ modkey, }, "Up", + function () + awful.client.focus.byidx(-1) + end, + {description = "focus previous by index", group = "client"} + ), + -- 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, "Shift" }, "Down", function () awful.client.swap.byidx( 1) end, + {description = "swap with next client by index", group = "client"}), + awful.key({ modkey, "Shift" }, "Up", 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,