aboutsummaryrefslogtreecommitdiff
path: root/.config/awesome/rc.lua
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-06-29 23:19:47 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-06-29 23:19:47 +0530
commit17b9514edb976334cc635f24916350907c1c80d8 (patch)
tree3617a63fe9520966129ecea74ad119ae71492c8e /.config/awesome/rc.lua
parent84d4bbe6249a5cd4b06b42e8b19376eae3358826 (diff)
fixed window swapping not working in awesome
Diffstat (limited to '.config/awesome/rc.lua')
-rw-r--r--.config/awesome/rc.lua16
1 files changed, 12 insertions, 4 deletions
diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua
index 0103914..e3ffc11 100644
--- a/.config/awesome/rc.lua
+++ b/.config/awesome/rc.lua
@@ -250,10 +250,18 @@ globalkeys = gears.table.join(
end),
-- swapping clients with hjkl
- awful.key({ modkey }, "j", awful.client.swap.bydirection("down")),
- awful.key({ modkey }, "k", awful.client.swap.bydirection("up")),
- awful.key({ modkey }, "h", awful.client.swap.bydirection("left")),
- awful.key({ modkey }, "l", awful.client.swap.bydirection("right")),
+ awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.bydirection("down")
+ if client.focus then client.focus:raise() end
+ end),
+ awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.bydirection("up")
+ if client.focus then client.focus:raise() end
+ end),
+ awful.key({ modkey, "Shift" }, "h", function () awful.client.swap.bydirection("left")
+ if client.focus then client.focus:raise() end
+ end),
+ awful.key({ modkey, "Shift" }, "l", function () awful.client.swap.bydirection("right")
+ if client.focus then client.focus:raise() end
+ end),
awful.key({ not_modkey, }, "j",
function ()