diff options
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/UnixIPC.qml')
| -rw-r--r-- | accounts/gkleen@sif/shell/quickshell/UnixIPC.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/UnixIPC.qml b/accounts/gkleen@sif/shell/quickshell/UnixIPC.qml index 05a40dbc..3d950031 100644 --- a/accounts/gkleen@sif/shell/quickshell/UnixIPC.qml +++ b/accounts/gkleen@sif/shell/quickshell/UnixIPC.qml | |||
| @@ -39,6 +39,8 @@ Scope { | |||
| 39 | root.onCommandMpris(command.Mpris); | 39 | root.onCommandMpris(command.Mpris); |
| 40 | else if (command.Notifications) | 40 | else if (command.Notifications) |
| 41 | root.onCommandNotifications(command.Notifications); | 41 | root.onCommandNotifications(command.Notifications); |
| 42 | else if (command.ScreenRecord) | ||
| 43 | root.onCommandScreenRecord(command.ScreenRecord); | ||
| 42 | else | 44 | else |
| 43 | console.warn("UnixIPC: Command not handled:", JSON.stringify(command)); | 45 | console.warn("UnixIPC: Command not handled:", JSON.stringify(command)); |
| 44 | } | 46 | } |
| @@ -94,4 +96,11 @@ Scope { | |||
| 94 | notif.dismiss(); | 96 | notif.dismiss(); |
| 95 | } | 97 | } |
| 96 | } | 98 | } |
| 99 | |||
| 100 | function onCommandScreenRecord(command) { | ||
| 101 | if (command.Toggle) | ||
| 102 | ScreenRecord.active = !ScreenRecord.active; | ||
| 103 | else | ||
| 104 | console.warn("UnixIPC.ScreenRecord: Command not handled:", JSON.stringify(command)); | ||
| 105 | } | ||
| 97 | } | 106 | } |
