From 0f0bb6cfea68dc55b0ca3857fce32d8142deaeed Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Fri, 10 Oct 2025 13:58:21 -0400 Subject: [PATCH] Update volume.sh to work with pipewire on hyprland --- bin/volume.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/volume.sh b/bin/volume.sh index 84eef4b..d64fc6a 100755 --- a/bin/volume.sh +++ b/bin/volume.sh @@ -10,7 +10,7 @@ function get_volume { } function is_mute { - [ $(pamixer --get-mute) = 'true'] + [ $(pamixer --get-mute) = 'true' ] } function send_notification { @@ -59,7 +59,7 @@ case $1 in ;; mute) # Toggle mute - #amixer -D pulse set Master 1+ toggle > /dev/null + wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle if is_mute; then DIR=$(dirname "$0") $DIR/notify-send.sh -i "/usr/share/icons/Papirus/48x48/status/notification-audio-volume-muted.svg" --replace=555 -u normal "Mute" -t 2000