From 37ec5242640b432c57a3f8a97ae3ebcc46b9e3f3 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sat, 16 Sep 2023 12:14:02 +0400 Subject: Add by-index workspace commands and binds --- src/input.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/input.rs') diff --git a/src/input.rs b/src/input.rs index 72cf9f77..310b4f82 100644 --- a/src/input.rs +++ b/src/input.rs @@ -217,6 +217,11 @@ impl State { // FIXME: granular self.niri.queue_redraw_all(); } + Action::MoveWindowToWorkspace(idx) => { + self.niri.monitor_set.move_to_workspace(idx); + // FIXME: granular + self.niri.queue_redraw_all(); + } Action::FocusWorkspaceDown => { self.niri.monitor_set.switch_workspace_down(); // FIXME: granular @@ -227,6 +232,11 @@ impl State { // FIXME: granular self.niri.queue_redraw_all(); } + Action::FocusWorkspace(idx) => { + self.niri.monitor_set.switch_workspace(idx); + // FIXME: granular + self.niri.queue_redraw_all(); + } Action::ConsumeWindowIntoColumn => { self.niri.monitor_set.consume_into_column(); // FIXME: granular -- cgit