aboutsummaryrefslogtreecommitdiff
path: root/niri-ipc/src
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-09-12 11:53:10 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2024-09-12 02:32:44 -0700
commitc3cb42f04d065c0e481ca66ae2a3edce7c5aac74 (patch)
treea6a63c2e8ec94ffeee9e7b02a3d68ab8df5480fc /niri-ipc/src
parentd0e624e6153e1a22ea0737e6830ed4edd7333304 (diff)
downloadniri-c3cb42f04d065c0e481ca66ae2a3edce7c5aac74.tar.gz
niri-c3cb42f04d065c0e481ca66ae2a3edce7c5aac74.tar.bz2
niri-c3cb42f04d065c0e481ca66ae2a3edce7c5aac74.zip
Add SwitchPresetWindowHeight by id
Diffstat (limited to 'niri-ipc/src')
-rw-r--r--niri-ipc/src/lib.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/niri-ipc/src/lib.rs b/niri-ipc/src/lib.rs
index 9d36ddea..13365522 100644
--- a/niri-ipc/src/lib.rs
+++ b/niri-ipc/src/lib.rs
@@ -351,7 +351,13 @@ pub enum Action {
/// Switch between preset column widths.
SwitchPresetColumnWidth {},
/// Switch between preset window heights.
- SwitchPresetWindowHeight {},
+ SwitchPresetWindowHeight {
+ /// Id of the window whose height to switch.
+ ///
+ /// If `None`, uses the focused window.
+ #[cfg_attr(feature = "clap", arg(long))]
+ id: Option<u64>,
+ },
/// Toggle the maximized state of the focused column.
MaximizeColumn {},
/// Change the width of the focused column.