Update volume.sh to work with pipewire on hyprland

This commit is contained in:
Alex Selimov 2025-10-10 13:58:21 -04:00
parent 0bca13c5c5
commit 0f0bb6cfea
Signed by: aselimov
GPG key ID: 3DDB9C3E023F1F31

View file

@ -10,7 +10,7 @@ function get_volume {
} }
function is_mute { function is_mute {
[ $(pamixer --get-mute) = 'true'] [ $(pamixer --get-mute) = 'true' ]
} }
function send_notification { function send_notification {
@ -59,7 +59,7 @@ case $1 in
;; ;;
mute) mute)
# Toggle mute # Toggle mute
#amixer -D pulse set Master 1+ toggle > /dev/null wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
if is_mute; then if is_mute; then
DIR=$(dirname "$0") 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 $DIR/notify-send.sh -i "/usr/share/icons/Papirus/48x48/status/notification-audio-volume-muted.svg" --replace=555 -u normal "Mute" -t 2000