diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2026-03-06 19:30:48 +0100 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2026-03-06 19:30:48 +0100 |
| commit | 16a7fb7e8cfb9a682e411891c0cb81e0aa0a1b15 (patch) | |
| tree | 51e39719158102da5e23491acb90e68950d19a50 /accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml | |
| parent | 72abd9db7c907fc1a6ef7bf8d2483649aa3bc949 (diff) | |
| download | nixos-16a7fb7e8cfb9a682e411891c0cb81e0aa0a1b15.tar nixos-16a7fb7e8cfb9a682e411891c0cb81e0aa0a1b15.tar.gz nixos-16a7fb7e8cfb9a682e411891c0cb81e0aa0a1b15.tar.bz2 nixos-16a7fb7e8cfb9a682e411891c0cb81e0aa0a1b15.tar.xz nixos-16a7fb7e8cfb9a682e411891c0cb81e0aa0a1b15.zip | |
niri: screenshare indicators
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml')
| -rw-r--r-- | accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml b/accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml index 6dbff134..cd4ed125 100644 --- a/accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml +++ b/accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml | |||
| @@ -74,6 +74,10 @@ Singleton { | |||
| 74 | eventWindowFocusTimestampChanged(event.WindowFocusTimestampChanged); | 74 | eventWindowFocusTimestampChanged(event.WindowFocusTimestampChanged); |
| 75 | else if (event.CastsChanged) | 75 | else if (event.CastsChanged) |
| 76 | root.casts = event.CastsChanged.casts | 76 | root.casts = event.CastsChanged.casts |
| 77 | else if (event.CastStartedOrChanged) | ||
| 78 | eventCastStartedOrChanged(event.CastStartedOrChanged); | ||
| 79 | else if (event.CastStopped) | ||
| 80 | eventCastStopped(event.CastStopped); | ||
| 77 | else if (event.Ok && !eventStreamSocket.acked) { eventStreamSocket.acked = true; } | 81 | else if (event.Ok && !eventStreamSocket.acked) { eventStreamSocket.acked = true; } |
| 78 | else if (event.OverviewOpenedOrClosed) {} | 82 | else if (event.OverviewOpenedOrClosed) {} |
| 79 | else if (event.ConfigLoaded) {} | 83 | else if (event.ConfigLoaded) {} |
| @@ -203,4 +207,10 @@ Singleton { | |||
| 203 | return win; | 207 | return win; |
| 204 | }); | 208 | }); |
| 205 | } | 209 | } |
| 210 | function eventCastStartedOrChanged(data) { | ||
| 211 | root.casts = [...Array.from(root.casts).filter(cast => cast.stream_id !== data.cast.stream_id), data.cast]; | ||
| 212 | } | ||
| 213 | function eventCastStopped(data) { | ||
| 214 | root.casts = Array.from(root.casts).filter(cast => cast.stream_id !== data.stream_id); | ||
| 215 | } | ||
| 206 | } | 216 | } |
