diff options
| author | Blista Kanjo | 2021-12-18 00:31:31 -0500 |
|---|---|---|
| committer | Blista Kanjo | 2021-12-18 00:31:31 -0500 |
| commit | 43269b3fdc5e556d2dc9dd4adbe75b36f91dcc4d (patch) | |
| tree | 6150e415ae66db505a6dc632fcbf671c6fc0d0bf /awesome/rc.lua | |
| parent | 014e9402a9e4d87e30f02d64ba3328dbde4d6d74 (diff) | |
now added window manipulation via index instead of direction
Diffstat (limited to 'awesome/rc.lua')
| -rw-r--r-- | awesome/rc.lua | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/awesome/rc.lua b/awesome/rc.lua index 1a718ea..be0986b 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -241,16 +241,30 @@ globalkeys = gears.table.join( {description = "focus previous by index", group = "client"} ), + -- Change window focus in maximized layout (alternate keybinds) + awful.key({ modkey, "Mod1" }, "j", + function () + awful.client.focus.byidx(1) + end, + {description = "focus next by index", group = "client"} + ), + awful.key({ modkey, "Mod1" }, "k", + function () + awful.client.focus.byidx(-1) + end, + {description = "focus previous by index", group = "client"} + ), + -- -------------------------------------------------------------- awful.key({ modkey, }, "Menu", function () mymainmenu:show() end, {description = "show main menu", group = "awesome"}), - -- Old Layout manipulation - --[[awful.key({ modkey, "Control" }, "Down", function () awful.client.swap.byidx( 1) end, + -- Move Window by Index + awful.key({ modkey, "Control" }, "j", function () awful.client.swap.byidx( 1) end, {description = "swap with next client by index", group = "client"}), - awful.key({ modkey, "Control"}, "Up", function () awful.client.swap.byidx( -1) end, - {description = "swap with previous client by index", group = "client"}),]]-- + awful.key({ modkey, "Control"}, "k", function () awful.client.swap.byidx( -1) end, + {description = "swap with previous client by index", group = "client"}), -- Move window by direction in tiling layout awful.key({ modkey, "Control" }, "Down", function (c) awful.client.swap.global_bydirection("down") c:raise() end, |
