From 8b0cb0bb57112bd15bc7ac04e6952d857dadcbca Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sat, 28 Dec 2024 10:12:50 +0300 Subject: Add set-window-width action --- niri-ipc/src/lib.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'niri-ipc/src') diff --git a/niri-ipc/src/lib.rs b/niri-ipc/src/lib.rs index 6bbc00f2..bf66d3a8 100644 --- a/niri-ipc/src/lib.rs +++ b/niri-ipc/src/lib.rs @@ -362,6 +362,22 @@ pub enum Action { MoveColumnToMonitorDown {}, /// Move the focused column to the monitor above. MoveColumnToMonitorUp {}, + /// Change the width of a window. + #[cfg_attr( + feature = "clap", + clap(about = "Change the width of the focused window") + )] + SetWindowWidth { + /// Id of the window whose width to set. + /// + /// If `None`, uses the focused window. + #[cfg_attr(feature = "clap", arg(long))] + id: Option, + + /// How to change the width. + #[cfg_attr(feature = "clap", arg())] + change: SizeChange, + }, /// Change the height of a window. #[cfg_attr( feature = "clap", -- cgit