From 0c3223ac72f3bee35c954764c2012f0d495deeb0 Mon Sep 17 00:00:00 2001 From: Said Kadrioski Date: Thu, 28 Aug 2025 03:42:04 +0200 Subject: Add cycle back feature for presets of column/window width/height. --- niri-ipc/src/lib.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'niri-ipc') diff --git a/niri-ipc/src/lib.rs b/niri-ipc/src/lib.rs index 10d88de7..f01a1923 100644 --- a/niri-ipc/src/lib.rs +++ b/niri-ipc/src/lib.rs @@ -677,6 +677,8 @@ pub enum Action { }, /// Switch between preset column widths. SwitchPresetColumnWidth {}, + /// Switch between preset column widths backwards. + SwitchPresetColumnWidthBack {}, /// Switch between preset window widths. SwitchPresetWindowWidth { /// Id of the window whose width to switch. @@ -685,6 +687,14 @@ pub enum Action { #[cfg_attr(feature = "clap", arg(long))] id: Option, }, + /// Switch between preset window widths backwards. + SwitchPresetWindowWidthBack { + /// Id of the window whose width to switch. + /// + /// If `None`, uses the focused window. + #[cfg_attr(feature = "clap", arg(long))] + id: Option, + }, /// Switch between preset window heights. SwitchPresetWindowHeight { /// Id of the window whose height to switch. @@ -693,6 +703,14 @@ pub enum Action { #[cfg_attr(feature = "clap", arg(long))] id: Option, }, + /// Switch between preset window heights backwards. + SwitchPresetWindowHeightBack { + /// Id of the window whose height to switch. + /// + /// If `None`, uses the focused window. + #[cfg_attr(feature = "clap", arg(long))] + id: Option, + }, /// Toggle the maximized state of the focused column. MaximizeColumn {}, /// Change the width of the focused column. -- cgit