aboutsummaryrefslogtreecommitdiff
path: root/niri-ipc/src
diff options
context:
space:
mode:
Diffstat (limited to 'niri-ipc/src')
-rw-r--r--niri-ipc/src/lib.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/niri-ipc/src/lib.rs b/niri-ipc/src/lib.rs
index 05c3a2ec..afe9a6d2 100644
--- a/niri-ipc/src/lib.rs
+++ b/niri-ipc/src/lib.rs
@@ -1483,6 +1483,14 @@ pub enum Event {
/// For example, the config file couldn't be parsed.
failed: bool,
},
+ /// A screenshot was captured.
+ ScreenshotCaptured {
+ /// The file path where the screenshot was saved, if it was written to disk.
+ ///
+ /// If `None`, the screenshot was either only copied to the clipboard, or the path couldn't
+ /// be converted to a `String` (e.g. contained invalid UTF-8 bytes).
+ path: Option<String>,
+ },
}
impl FromStr for WorkspaceReferenceArg {