12 lines
265 B
Bash
Executable File
12 lines
265 B
Bash
Executable File
#!/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
|