diff options
| author | Kainoa Kanter <kainoa@t1c.dev> | 2025-10-25 23:33:49 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-26 06:33:49 +0000 |
| commit | e6f3c538da0c646bda43fcde7ef7dc3b771e0c8b (patch) | |
| tree | 935a519695fecc6998790bb628c85c1d6db52262 /niri-ipc/src | |
| parent | 4310c20c320d040f3df7a93de4064e452a1876ae (diff) | |
| download | niri-e6f3c538da0c646bda43fcde7ef7dc3b771e0c8b.tar.gz niri-e6f3c538da0c646bda43fcde7ef7dc3b771e0c8b.tar.bz2 niri-e6f3c538da0c646bda43fcde7ef7dc3b771e0c8b.zip | |
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>
Diffstat (limited to 'niri-ipc/src')
| -rw-r--r-- | niri-ipc/src/lib.rs | 8 |
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 { |
