forked from Shinonome/dots-hyprland
add placeholder when volume mixer is empty
This commit is contained in:
@@ -18,6 +18,12 @@ Singleton {
|
||||
readonly property real hardMaxValue: 2.00 // People keep joking about setting volume to 5172% so...
|
||||
property string audioTheme: Config.options.sounds.theme
|
||||
property real value: sink?.audio.volume ?? 0
|
||||
property bool micBeingAccessed: Pipewire.links.values.filter(link =>
|
||||
!link.source.isStream && !link.source.isSink && link.target.isStream
|
||||
).length > 0
|
||||
onMicBeingAccessedChanged: {
|
||||
print(micBeingAccessed)
|
||||
}
|
||||
function friendlyDeviceName(node) {
|
||||
return (node.nickname || node.description || Translation.tr("Unknown"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user