From cc4acdf24a0864e061e7ea54d6b3589402f2082d Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Mon, 15 Jan 2024 10:31:44 +0400 Subject: Add move-column-to-workspace* binds As opposed to move-window-to-workspace* --- src/input.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/input.rs') diff --git a/src/input.rs b/src/input.rs index 6ba3b196..ae6fdb96 100644 --- a/src/input.rs +++ b/src/input.rs @@ -458,6 +458,22 @@ impl State { // FIXME: granular self.niri.queue_redraw_all(); } + Action::MoveColumnToWorkspaceDown => { + self.niri.layout.move_column_to_workspace_down(); + // FIXME: granular + self.niri.queue_redraw_all(); + } + Action::MoveColumnToWorkspaceUp => { + self.niri.layout.move_column_to_workspace_up(); + // FIXME: granular + self.niri.queue_redraw_all(); + } + Action::MoveColumnToWorkspace(idx) => { + let idx = idx.saturating_sub(1) as usize; + self.niri.layout.move_column_to_workspace(idx); + // FIXME: granular + self.niri.queue_redraw_all(); + } Action::FocusWorkspaceDown => { self.niri.layout.switch_workspace_down(); // FIXME: granular -- cgit