summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/shell/quickshell/UnixIPC.qml
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2026-04-25 15:24:42 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2026-04-25 15:24:42 +0200
commit20577d184c030a23a6b384b8570f583bb32f14d2 (patch)
treebfb7fc21d27f31218b838ede80795f525b1952fd /accounts/gkleen@sif/shell/quickshell/UnixIPC.qml
parent395ca23e9599460cdfa91c34ae52296edf7cfd41 (diff)
downloadnixos-20577d184c030a23a6b384b8570f583bb32f14d2.tar
nixos-20577d184c030a23a6b384b8570f583bb32f14d2.tar.gz
nixos-20577d184c030a23a6b384b8570f583bb32f14d2.tar.bz2
nixos-20577d184c030a23a6b384b8570f583bb32f14d2.tar.xz
nixos-20577d184c030a23a6b384b8570f583bb32f14d2.zip
wf-recorderflakes
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/UnixIPC.qml')
-rw-r--r--accounts/gkleen@sif/shell/quickshell/UnixIPC.qml9
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}