diff options
Diffstat (limited to 'src/cli.rs')
| -rw-r--r-- | src/cli.rs | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -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, } |
