From 8867d417fce527dce7155fb18b26e2ab9a269c6c Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 26 Oct 2021 18:55:55 +0200 Subject: bindings: factor out shifting current client up/down --- bindings.lua | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'bindings.lua') diff --git a/bindings.lua b/bindings.lua index e1b68c8..999edd5 100644 --- a/bindings.lua +++ b/bindings.lua @@ -120,24 +120,8 @@ function M.create(workspace) function () awful.layout.inc(-1, nil, workspace.layouts) end), -- move to upper/lower page - awful.key({ modkey, "Shift" }, "j", - function () - if client.focus then - local c = client.focus - local s = c.screen - workspace:client_move_relative(c, 1) - timer.delayed_call(awful.screen.focus, s) - end - end), - awful.key({ modkey, "Shift" }, "k", - function () - if client.focus then - local c = client.focus - local s = c.screen - workspace:client_move_relative(c, -1) - timer.delayed_call(awful.screen.focus, s) - end - end), + awful.key({ modkey, "Shift" }, "j", function() workspace:shift_cur_client(1) end), + awful.key({ modkey, "Shift" }, "k", function() workspace:shift_cur_client(-1) end), -- swap two screens awful.key({ modkey, "Control" }, "q", function() workspace:swap_screens(1) end), -- cgit v1.2.3