aboutsummaryrefslogtreecommitdiff
path: root/niri-ipc/src
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-12-28 10:12:50 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2024-12-30 20:12:37 +0300
commit8b0cb0bb57112bd15bc7ac04e6952d857dadcbca (patch)
treec0a9cd138e768e7596d8cd324be65024fbb35756 /niri-ipc/src
parenta24a6e4e3c441389fd7731320f47e61e567e237f (diff)
downloadniri-8b0cb0bb57112bd15bc7ac04e6952d857dadcbca.tar.gz
niri-8b0cb0bb57112bd15bc7ac04e6952d857dadcbca.tar.bz2
niri-8b0cb0bb57112bd15bc7ac04e6952d857dadcbca.zip
Add set-window-width action
Diffstat (limited to 'niri-ipc/src')
-rw-r--r--niri-ipc/src/lib.rs16
1 files changed, 16 insertions, 0 deletions
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<u64>,
+
+ /// How to change the width.
+ #[cfg_attr(feature = "clap", arg())]
+ change: SizeChange,
+ },
/// Change the height of a window.
#[cfg_attr(
feature = "clap",