forked from Shinonome/dots-hyprland
add service for privacy indicators
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
pragma Singleton
|
||||
pragma ComponentBehavior: Bound
|
||||
import qs.modules.common
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Services.Pipewire
|
||||
|
||||
/**
|
||||
* Screensharing and mic activity.
|
||||
*/
|
||||
Singleton {
|
||||
id: root
|
||||
|
||||
property bool screenSharing: Pipewire.linkGroups.values.filter(pwlg => pwlg.source.type === PwNodeType.VideoSource).map(pwlg => pwlg.target)
|
||||
property bool micActive: Pipewire.linkGroups.values.filter(pwlg => pwlg.source.type === PwNodeType.AudioSource && pwlg.target.type === PwNodeType.AudioInStream).map(pwlg => pwlg.target)
|
||||
}
|
||||
Reference in New Issue
Block a user