Add center-window by-id action

This commit is contained in:
Ivan Molodetskikh
2024-12-29 22:44:19 +03:00
parent 6cb5135f34
commit 6c897d5201
7 changed files with 88 additions and 4 deletions
+12
View File
@@ -292,6 +292,18 @@ pub enum Action {
ExpelWindowFromColumn {},
/// Center the focused column on the screen.
CenterColumn {},
/// Center a window on the screen.
#[cfg_attr(
feature = "clap",
clap(about = "Center the focused window on the screen")
)]
CenterWindow {
/// Id of the window to center.
///
/// If `None`, uses the focused window.
#[cfg_attr(feature = "clap", arg(long))]
id: Option<u64>,
},
/// Focus the workspace below.
FocusWorkspaceDown {},
/// Focus the workspace above.