added move window to monitor by id

This commit is contained in:
Annika Hannig
2025-03-02 12:09:44 +01:00
committed by Ivan Molodetskikh
parent 50a99f6356
commit 8737067af5
3 changed files with 49 additions and 2 deletions

View File

@@ -475,8 +475,18 @@ pub enum Action {
MoveWindowToMonitorPrevious {},
/// Move the focused window to the next monitor.
MoveWindowToMonitorNext {},
/// Move the focused window to a specific monitor.
/// Move a window to a specific monitor.
#[cfg_attr(
feature = "clap",
clap(about = "Move the focused window to a specific monitor")
)]
MoveWindowToMonitor {
/// Id of the window to move.
///
/// If `None`, uses the focused window.
#[cfg_attr(feature = "clap", arg(long))]
id: Option<u64>,
/// The target output name.
#[cfg_attr(feature = "clap", arg())]
output: String,