From d15960d930758132c869067773eae71e89575e9d Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 16 Nov 2025 00:15:26 +0100 Subject: [PATCH] wbar: make volume tooltip show muted state --- .../quickshell/ii/modules/waffle/bar/SystemButton.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dots/.config/quickshell/ii/modules/waffle/bar/SystemButton.qml b/dots/.config/quickshell/ii/modules/waffle/bar/SystemButton.qml index 2a74ca171..53caca6ed 100644 --- a/dots/.config/quickshell/ii/modules/waffle/bar/SystemButton.qml +++ b/dots/.config/quickshell/ii/modules/waffle/bar/SystemButton.qml @@ -85,11 +85,13 @@ BarButton { BarToolTip { extraVisibleCondition: root.shouldShowTooltip && volumeHoverArea.containsMouse text: Translation.tr("Speakers (%1): %2") // - .arg(Audio.sink?.nickname || Audio.sink?.description || Translation.tr("Unknown")) // - .arg(`${Math.round(Audio.sink?.audio.volume * 100) || 0}%`) // + .arg(Audio.sink?.nickname || Audio.sink?.description || Translation.tr("Unknown")) // + .arg(Audio.sink?.audio.muted ? Translation.tr("Muted") : `${Math.round(Audio.sink?.audio.volume * 100) || 0}%`) // } BarToolTip { extraVisibleCondition: root.shouldShowTooltip && batteryHoverArea.containsMouse - text: Translation.tr("Battery: %1%2").arg(`${Math.round(Battery.percentage * 100) || 0}%`).arg(Battery.isPluggedIn ? (" " + Translation.tr("(Plugged in)")) : "") + text: Translation.tr("Battery: %1%2") // + .arg(`${Math.round(Battery.percentage * 100) || 0}%`) // + .arg(Battery.isPluggedIn ? (" " + Translation.tr("(Plugged in)")) : "") } }