diff options
| author | Duncan Overbruck <mail@duncano.de> | 2025-03-13 03:05:55 +0100 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-03-14 12:57:33 -0700 |
| commit | a5d58d670bde166ff8bca8a83bb6f1136c7fa67b (patch) | |
| tree | fbbf33348af1b22b4f1d3a214bdbee32a6985e18 /niri-ipc/src | |
| parent | b4922086ce298bb3d7806437c6dbea4a86f52c38 (diff) | |
| download | niri-a5d58d670bde166ff8bca8a83bb6f1136c7fa67b.tar.gz niri-a5d58d670bde166ff8bca8a83bb6f1136c7fa67b.tar.bz2 niri-a5d58d670bde166ff8bca8a83bb6f1136c7fa67b.zip | |
Add focus-column (by index) action
Diffstat (limited to 'niri-ipc/src')
| -rw-r--r-- | niri-ipc/src/lib.rs | 8 |
1 files changed, 8 insertions, 0 deletions
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. |
