forked from Shinonome/dots-hyprland
17 lines
550 B
QML
17 lines
550 B
QML
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)
|
|
}
|