diff options
| author | Annika Hannig <annika@hannig.cc> | 2025-02-20 20:25:43 +0100 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-03-10 23:17:36 -0700 |
| commit | 993c5ce8afc78229fa42c2c7f90813eb40c34c54 (patch) | |
| tree | 7cd666d7a1c6f241ac11a9fb6777690d0cd744af /niri-ipc | |
| parent | 47dd338340e2c8c17ce210579bcdcf8f320d755e (diff) | |
| download | niri-993c5ce8afc78229fa42c2c7f90813eb40c34c54.tar.gz niri-993c5ce8afc78229fa42c2c7f90813eb40c34c54.tar.bz2 niri-993c5ce8afc78229fa42c2c7f90813eb40c34c54.zip | |
Implement focus-monitor to focus a specific monitor by output.
Diffstat (limited to 'niri-ipc')
| -rw-r--r-- | niri-ipc/src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/niri-ipc/src/lib.rs b/niri-ipc/src/lib.rs index 5d4bee78..444349ec 100644 --- a/niri-ipc/src/lib.rs +++ b/niri-ipc/src/lib.rs @@ -457,6 +457,12 @@ pub enum Action { FocusMonitorPrevious {}, /// Focus the next monitor. FocusMonitorNext {}, + /// Focus a monitor by name. + FocusMonitor { + /// Name of the output to focus. + #[cfg_attr(feature = "clap", arg())] + output: String, + }, /// Move the focused window to the monitor to the left. MoveWindowToMonitorLeft {}, /// Move the focused window to the monitor to the right. |
