aboutsummaryrefslogtreecommitdiff
path: root/niri-ipc/src
diff options
context:
space:
mode:
authorAnnika Hannig <annika@hannig.cc>2025-03-02 12:09:44 +0100
committerIvan Molodetskikh <yalterz@gmail.com>2025-03-10 23:17:36 -0700
commit8737067af530c95ff8039685b236b1f31297b699 (patch)
treeeaf811d84c737bbb548eac9fc535ccc9d102f2e1 /niri-ipc/src
parent50a99f635648c9de0d63d59dc5b7ea8d92cbe1fa (diff)
downloadniri-8737067af530c95ff8039685b236b1f31297b699.tar.gz
niri-8737067af530c95ff8039685b236b1f31297b699.tar.bz2
niri-8737067af530c95ff8039685b236b1f31297b699.zip
added move window to monitor by id
Diffstat (limited to 'niri-ipc/src')
-rw-r--r--niri-ipc/src/lib.rs12
1 files changed, 11 insertions, 1 deletions
diff --git a/niri-ipc/src/lib.rs b/niri-ipc/src/lib.rs
index 680734cc..d4886819 100644
--- a/niri-ipc/src/lib.rs
+++ b/niri-ipc/src/lib.rs
@@ -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,