From eceaf35d3422e2304f16683ecaa64911f9758a1f Mon Sep 17 00:00:00 2001
From: Nydragon <contact@ccnlc.eu>
Date: Fri, 31 Jan 2025 22:06:01 +0100
Subject: [PATCH] feat: show muted state of default sink

---
 .gitignore          | 1 +
 src/AudioOutput.qml | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index 9b42106..3bad375 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 .direnv/
+result/
diff --git a/src/AudioOutput.qml b/src/AudioOutput.qml
index 4be354d..ec40eb6 100644
--- a/src/AudioOutput.qml
+++ b/src/AudioOutput.qml
@@ -41,7 +41,7 @@ BButton {
         // TODO: Make icon depend on sink type and volume level
         Image {
             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)
 
             anchors.horizontalCenter: parent.horizontalCenter