diff options
| author | Said Kadrioski <said@kadrioski.de> | 2025-08-28 03:42:04 +0200 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-08-29 09:13:52 +0300 |
| commit | 0c3223ac72f3bee35c954764c2012f0d495deeb0 (patch) | |
| tree | 5877b977aa4000f0fdb8ba22c9dbdc85062193f8 /niri-ipc/src | |
| parent | 1ffda91e0cc3938af1a9d4f1f1b6a87afa3c210f (diff) | |
| download | niri-0c3223ac72f3bee35c954764c2012f0d495deeb0.tar.gz niri-0c3223ac72f3bee35c954764c2012f0d495deeb0.tar.bz2 niri-0c3223ac72f3bee35c954764c2012f0d495deeb0.zip | |
Add cycle back feature for presets of column/window width/height.
Diffstat (limited to 'niri-ipc/src')
| -rw-r--r-- | niri-ipc/src/lib.rs | 18 |
1 files changed, 18 insertions, 0 deletions
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<u64>, }, + /// 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<u64>, + }, /// 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<u64>, }, + /// 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<u64>, + }, /// Toggle the maximized state of the focused column. MaximizeColumn {}, /// Change the width of the focused column. |
