diff options
Diffstat (limited to 'niri-ipc')
| -rw-r--r-- | niri-ipc/src/lib.rs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/niri-ipc/src/lib.rs b/niri-ipc/src/lib.rs index e11624f5..f8d39365 100644 --- a/niri-ipc/src/lib.rs +++ b/niri-ipc/src/lib.rs @@ -167,7 +167,13 @@ pub enum Action { /// Open the screenshot UI. Screenshot {}, /// Screenshot the focused screen. - ScreenshotScreen {}, + ScreenshotScreen { + /// Write the screenshot to disk in addition to putting it in your clipboard. + /// + /// The screenshot is saved according to the `screenshot-path` config setting. + #[cfg_attr(feature = "clap", arg(short = 'd', long, action = clap::ArgAction::Set, default_value_t = true))] + write_to_disk: bool, + }, /// Screenshot a window. #[cfg_attr(feature = "clap", clap(about = "Screenshot the focused window"))] ScreenshotWindow { @@ -176,6 +182,11 @@ pub enum Action { /// If `None`, uses the focused window. #[cfg_attr(feature = "clap", arg(long))] id: Option<u64>, + /// Write the screenshot to disk in addition to putting it in your clipboard. + /// + /// The screenshot is saved according to the `screenshot-path` config setting. + #[cfg_attr(feature = "clap", arg(short = 'd', long, action = clap::ArgAction::Set, default_value_t = true))] + write_to_disk: bool, }, /// Close a window. #[cfg_attr(feature = "clap", clap(about = "Close the focused window"))] |
