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

10 lines
225 B
Bash
Executable File

#!/bin/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