diff options
| author | Aberter Yan <aberter0x3f@disroot.org> | 2025-05-01 20:36:33 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-05-01 11:06:34 -0700 |
| commit | eb590c53460c24a23024db192a3132687aabc06d (patch) | |
| tree | d0a8f4171c7b6c9b9d009e2175cfe97bcffee703 /niri-ipc | |
| parent | 02baad91aca414a9adb9e77b4967d63bb366fb1b (diff) | |
| download | niri-eb590c53460c24a23024db192a3132687aabc06d.tar.gz niri-eb590c53460c24a23024db192a3132687aabc06d.tar.bz2 niri-eb590c53460c24a23024db192a3132687aabc06d.zip | |
Implement --focus for MoveColumnToWorkspace/Up/Down
Diffstat (limited to 'niri-ipc')
| -rw-r--r-- | niri-ipc/src/lib.rs | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/niri-ipc/src/lib.rs b/niri-ipc/src/lib.rs index 4a0bc8e2..325cdef0 100644 --- a/niri-ipc/src/lib.rs +++ b/niri-ipc/src/lib.rs @@ -438,14 +438,35 @@ pub enum Action { focus: bool, }, /// Move the focused column to the workspace below. - MoveColumnToWorkspaceDown {}, + MoveColumnToWorkspaceDown { + /// Whether the focus should follow the target workspace. + /// + /// If `true` (the default), the focus will follow the column to the new workspace. If + /// `false`, the focus will remain on the original workspace. + #[cfg_attr(feature = "clap", arg(long, action = clap::ArgAction::Set, default_value_t = true))] + focus: bool, + }, /// Move the focused column to the workspace above. - MoveColumnToWorkspaceUp {}, + MoveColumnToWorkspaceUp { + /// Whether the focus should follow the target workspace. + /// + /// If `true` (the default), the focus will follow the column to the new workspace. If + /// `false`, the focus will remain on the original workspace. + #[cfg_attr(feature = "clap", arg(long, action = clap::ArgAction::Set, default_value_t = true))] + focus: bool, + }, /// Move the focused column to a workspace by reference (index or name). MoveColumnToWorkspace { /// Reference (index or name) of the workspace to move the column to. #[cfg_attr(feature = "clap", arg())] reference: WorkspaceReferenceArg, + + /// Whether the focus should follow the target workspace. + /// + /// If `true` (the default), the focus will follow the column to the new workspace. If + /// `false`, the focus will remain on the original workspace. + #[cfg_attr(feature = "clap", arg(long, action = clap::ArgAction::Set, default_value_t = true))] + focus: bool, }, /// Move the focused workspace down. MoveWorkspaceDown {}, |
