aboutsummaryrefslogtreecommitdiff
path: root/src/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 78f9fc0e..65e2fd14 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -2,7 +2,7 @@ use std::ffi::OsString;
use std::path::PathBuf;
use clap::{Parser, Subcommand};
-use niri_ipc::Action;
+use niri_ipc::{Action, OutputAction};
use crate::utils::version;
@@ -63,6 +63,21 @@ pub enum Msg {
#[command(subcommand)]
action: Action,
},
+ /// Change output configuration temporarily.
+ ///
+ /// The configuration is changed temporarily and not saved into the config file. If the output
+ /// configuration subsequently changes in the config file, these temporary changes will be
+ /// forgotten.
+ Output {
+ /// Output name.
+ ///
+ /// Run `niri msg outputs` to see the output names.
+ #[arg()]
+ output: String,
+ /// Configuration to apply.
+ #[command(subcommand)]
+ action: OutputAction,
+ },
/// Request an error from the running niri instance.
RequestError,
}