#!/usr/bin/env sh wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle if pactl get-source-mute @DEFAULT_SOURCE@ | grep yes; then # Muted mpv "$XDG_CONFIG_HOME/waybar/mute.wav" --volume=60 else # Not muted mpv "$XDG_CONFIG_HOME/waybar/unmute.wav" --volume=60 fi