From 20577d184c030a23a6b384b8570f583bb32f14d2 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 25 Apr 2026 15:24:42 +0200 Subject: wf-recorder --- accounts/gkleen@sif/shell/quickshell/UnixIPC.qml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'accounts/gkleen@sif/shell/quickshell/UnixIPC.qml') 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 { root.onCommandMpris(command.Mpris); else if (command.Notifications) root.onCommandNotifications(command.Notifications); + else if (command.ScreenRecord) + root.onCommandScreenRecord(command.ScreenRecord); else console.warn("UnixIPC: Command not handled:", JSON.stringify(command)); } @@ -94,4 +96,11 @@ Scope { notif.dismiss(); } } + + function onCommandScreenRecord(command) { + if (command.Toggle) + ScreenRecord.active = !ScreenRecord.active; + else + console.warn("UnixIPC.ScreenRecord: Command not handled:", JSON.stringify(command)); + } } -- cgit v1.2.3