From ca2f901197dd36520cc6de31aa1d4277caf72d6d Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 2 Dec 2020 18:06:14 +0100 Subject: bindings: add keys for switching to empty page on given desk --- bindings.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bindings.lua b/bindings.lua index faf133d..1e6e03c 100644 --- a/bindings.lua +++ b/bindings.lua @@ -198,6 +198,15 @@ function M.create(workspace) workspace:view(screen, i) end), + -- View empty (or first) page on desktop + awful.key({ modkey, "Control" }, "#" .. keycode, + function () + local screen = mouse.screen + local desk = workspace.desktops[i] + local page_idx = desk:find_empty_page() or 1 + workspace:view(screen, i, page_idx) + end), + -- Move focused client to empty (or first, if all non-empty) -- page on desktop awful.key({ modkey, "Shift" }, "#" .. keycode, -- cgit v1.2.3