From 993c5ce8afc78229fa42c2c7f90813eb40c34c54 Mon Sep 17 00:00:00 2001 From: Annika Hannig Date: Thu, 20 Feb 2025 20:25:43 +0100 Subject: Implement focus-monitor to focus a specific monitor by output. --- niri-ipc/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'niri-ipc') 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. -- cgit