Add skip-confirmation flag to the quit action

This commit is contained in:
Ivan Molodetskikh
2024-02-12 07:53:06 +04:00
parent d6b116d229
commit 67182129ff
5 changed files with 50 additions and 18 deletions
+5 -1
View File
@@ -48,7 +48,11 @@ pub enum Response {
#[cfg_attr(feature = "clap", command(subcommand_help_heading = "Actions"))]
pub enum Action {
/// Exit niri.
Quit,
Quit {
/// Skip the "Press Enter to confirm" prompt.
#[cfg_attr(feature = "clap", arg(short, long))]
skip_confirmation: bool,
},
/// Power off all monitors via DPMS.
PowerOffMonitors,
/// Spawn a command.