aboutsummaryrefslogtreecommitdiff
path: root/niri-ipc
diff options
context:
space:
mode:
Diffstat (limited to 'niri-ipc')
-rw-r--r--niri-ipc/src/lib.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/niri-ipc/src/lib.rs b/niri-ipc/src/lib.rs
index 30704b40..1f09e912 100644
--- a/niri-ipc/src/lib.rs
+++ b/niri-ipc/src/lib.rs
@@ -292,6 +292,18 @@ pub enum Action {
ExpelWindowFromColumn {},
/// Center the focused column on the screen.
CenterColumn {},
+ /// Center a window on the screen.
+ #[cfg_attr(
+ feature = "clap",
+ clap(about = "Center the focused window on the screen")
+ )]
+ CenterWindow {
+ /// Id of the window to center.
+ ///
+ /// If `None`, uses the focused window.
+ #[cfg_attr(feature = "clap", arg(long))]
+ id: Option<u64>,
+ },
/// Focus the workspace below.
FocusWorkspaceDown {},
/// Focus the workspace above.