Files
amazing-dotfiles/scripts/check-if-muted.sh
2026-02-22 20:49:19 +01:00

10 lines
233 B
Bash
Executable File

#!/usr/bin/env bash
MUTED=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | grep -iq muted; echo $?)
if [[ $MUTED -eq 0 ]]; then
notify-send "Audio muted" -a 'wp-vol' -t 1000
else
notify-send "Audio unmuted" -a 'wp-vol' -t 1000
fi