feat: show muted state of default sink

This commit is contained in:
Nydragon 2025-01-31 22:06:01 +01:00
parent d528b78753
commit eceaf35d34
Signed by: nydragon
SSH key fingerprint: SHA256:WcjW5NJPQ8Dx4uQDmoIlVPLWE27Od3fxoe0IUvuoPHE
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
.direnv/ .direnv/
result/

View file

@ -41,7 +41,7 @@ BButton {
// TODO: Make icon depend on sink type and volume level // TODO: Make icon depend on sink type and volume level
Image { Image {
id: icon id: icon
source: "root:/assets/speaker.png" source: Quickshell.iconPath(audiow.sink?.audio.muted ? "audio-volume-muted" : "audio-volume-high")
width: parent.width * (2 / 3) width: parent.width * (2 / 3)
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter