mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
feat: event-stream event for when a screenshot is taken (#2565)
* feat: event-stream event for when a screenshot is taken * ScreenshotTaken --> ScreenshotCaptured * review comments * fix: screenshot completion event path serializatation * fixes --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user