pipewire service, lock-aware applets, cpu overall chart, security comments
This commit is contained in:
parent
e7bf175169
commit
8628b4b27b
13 changed files with 183 additions and 208 deletions
36
shell/services/PipewireService.qml
Normal file
36
shell/services/PipewireService.qml
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
pragma Singleton
|
||||
|
||||
import QtQuick
|
||||
import Quickshell.Services.Pipewire
|
||||
|
||||
QtObject {
|
||||
id: root
|
||||
|
||||
readonly property var sink: Pipewire.defaultAudioSink
|
||||
readonly property real volume: sink?.audio?.volume ?? 0
|
||||
readonly property bool muted: sink?.audio?.muted ?? false
|
||||
|
||||
readonly property var sinks: {
|
||||
const list = [];
|
||||
if (Pipewire.nodes) {
|
||||
for (const node of Pipewire.nodes.values)
|
||||
if (!node.isStream && node.isSink)
|
||||
list.push(node);
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
readonly property var streams: {
|
||||
const list = [];
|
||||
if (Pipewire.nodes) {
|
||||
for (const node of Pipewire.nodes.values)
|
||||
if (node.isStream && node.audio)
|
||||
list.push(node);
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
property PwObjectTracker _tracker: PwObjectTracker {
|
||||
objects: [Pipewire.defaultAudioSink, ...root.streams]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue