From 6303304a100a7c06d9ab1d0d0898ba02749b9d11 Mon Sep 17 00:00:00 2001 From: Aaron Tulino Date: Wed, 24 Dec 2025 14:12:47 -0700 Subject: [PATCH] Allow toggling mute with right-click on bar (#1147) --- .../DankBar/Widgets/ControlCenterButton.qml | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/quickshell/Modules/DankBar/Widgets/ControlCenterButton.qml b/quickshell/Modules/DankBar/Widgets/ControlCenterButton.qml index 4fa51332..b632782e 100644 --- a/quickshell/Modules/DankBar/Widgets/ControlCenterButton.qml +++ b/quickshell/Modules/DankBar/Widgets/ControlCenterButton.qml @@ -255,11 +255,14 @@ BasePill { MouseArea { anchors.fill: parent - acceptedButtons: Qt.NoButton + acceptedButtons: Qt.RightButton onWheel: function (wheelEvent) { root.handleVolumeWheel(wheelEvent.angleDelta.y); wheelEvent.accepted = true; } + onClicked: { + AudioService.toggleMute(); + } } } @@ -280,11 +283,14 @@ BasePill { MouseArea { anchors.fill: parent - acceptedButtons: Qt.NoButton + acceptedButtons: Qt.RightButton onWheel: function (wheelEvent) { root.handleMicWheel(wheelEvent.angleDelta.y); wheelEvent.accepted = true; } + onClicked: { + AudioService.toggleMicMute(); + } } } @@ -389,11 +395,14 @@ BasePill { MouseArea { id: audioWheelArea anchors.fill: parent - acceptedButtons: Qt.NoButton + acceptedButtons: Qt.RightButton onWheel: function (wheelEvent) { root.handleVolumeWheel(wheelEvent.angleDelta.y); wheelEvent.accepted = true; } + onClicked: { + AudioService.toggleMute(); + } } } @@ -415,11 +424,14 @@ BasePill { MouseArea { id: micWheelArea anchors.fill: parent - acceptedButtons: Qt.NoButton + acceptedButtons: Qt.RightButton onWheel: function (wheelEvent) { root.handleMicWheel(wheelEvent.angleDelta.y); wheelEvent.accepted = true; } + onClicked: { + AudioService.toggleMicMute(); + } } }