Add move-window-to-floating/tiling actions

This commit is contained in:
Ivan Molodetskikh
2024-12-28 10:13:30 +03:00
parent 8b0cb0bb57
commit ad50dd21fe
5 changed files with 104 additions and 0 deletions
+16
View File
@@ -454,6 +454,22 @@ pub enum Action {
#[cfg_attr(feature = "clap", arg(long))]
id: Option<u64>,
},
/// Move the focused window to the floating layout.
MoveWindowToFloating {
/// Id of the window to move.
///
/// If `None`, uses the focused window.
#[cfg_attr(feature = "clap", arg(long))]
id: Option<u64>,
},
/// Move the focused window to the tiling layout.
MoveWindowToTiling {
/// Id of the window to move.
///
/// If `None`, uses the focused window.
#[cfg_attr(feature = "clap", arg(long))]
id: Option<u64>,
},
/// Toggles the focus between the floating and the tiling layout.
SwitchFocusBetweenFloatingAndTiling {},
}