aboutsummaryrefslogtreecommitdiff
path: root/niri-ipc/src
diff options
context:
space:
mode:
authorAnnika Hannig <annika@hannig.cc>2025-02-20 23:09:59 +0100
committerIvan Molodetskikh <yalterz@gmail.com>2025-03-10 23:17:36 -0700
commit50a99f635648c9de0d63d59dc5b7ea8d92cbe1fa (patch)
tree0c3b18d0715f5441860fa2be4d976deeec5d79d0 /niri-ipc/src
parent993c5ce8afc78229fa42c2c7f90813eb40c34c54 (diff)
downloadniri-50a99f635648c9de0d63d59dc5b7ea8d92cbe1fa.tar.gz
niri-50a99f635648c9de0d63d59dc5b7ea8d92cbe1fa.tar.bz2
niri-50a99f635648c9de0d63d59dc5b7ea8d92cbe1fa.zip
Implemented move-window-to-monitor and move-column-to-monitor
Diffstat (limited to 'niri-ipc/src')
-rw-r--r--niri-ipc/src/lib.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/niri-ipc/src/lib.rs b/niri-ipc/src/lib.rs
index 444349ec..680734cc 100644
--- a/niri-ipc/src/lib.rs
+++ b/niri-ipc/src/lib.rs
@@ -475,6 +475,12 @@ pub enum Action {
MoveWindowToMonitorPrevious {},
/// Move the focused window to the next monitor.
MoveWindowToMonitorNext {},
+ /// Move the focused window to a specific monitor.
+ MoveWindowToMonitor {
+ /// The target output name.
+ #[cfg_attr(feature = "clap", arg())]
+ output: String,
+ },
/// Move the focused column to the monitor to the left.
MoveColumnToMonitorLeft {},
/// Move the focused column to the monitor to the right.
@@ -487,6 +493,12 @@ pub enum Action {
MoveColumnToMonitorPrevious {},
/// Move the focused column to the next monitor.
MoveColumnToMonitorNext {},
+ /// Move the focused column to a specific monitor.
+ MoveColumnToMonitor {
+ /// The target output name.
+ #[cfg_attr(feature = "clap", arg())]
+ output: String,
+ },
/// Change the width of a window.
#[cfg_attr(
feature = "clap",