From a5d58d670bde166ff8bca8a83bb6f1136c7fa67b Mon Sep 17 00:00:00 2001 From: Duncan Overbruck Date: Thu, 13 Mar 2025 03:05:55 +0100 Subject: Add focus-column (by index) action --- niri-ipc/src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'niri-ipc/src') diff --git a/niri-ipc/src/lib.rs b/niri-ipc/src/lib.rs index d4886819..c7dd2083 100644 --- a/niri-ipc/src/lib.rs +++ b/niri-ipc/src/lib.rs @@ -249,6 +249,14 @@ pub enum Action { FocusColumnRightOrFirst {}, /// Focus the next column to the left, looping if at start. FocusColumnLeftOrLast {}, + /// Focus a column by index. + FocusColumn { + /// Index of the column to focus. + /// + /// The index starts from 1 for the first column. + #[cfg_attr(feature = "clap", arg())] + index: usize, + }, /// Focus the window or the monitor above. FocusWindowOrMonitorUp {}, /// Focus the window or the monitor below. -- cgit