diff --git a/.local/scripts/volumenotify.fish b/.local/scripts/volumenotify.fish index 723d603..aee45eb 100755 --- a/.local/scripts/volumenotify.fish +++ b/.local/scripts/volumenotify.fish @@ -4,4 +4,10 @@ set volume (string match -r '[0-9]+.[0-9]+' (wpctl get-volume @DEFAULT_AUDIO_SIN set volume (math --scale 0 --scale-mode round "$volume * 100") -notify-send -c 'status' -h int:value:$volume "Volume" "$volume%" +if string match '*[MUTED]' (wpctl get-volume @DEFAULT_AUDIO_SINK@) + set text "muted" +else + set text "$volume%" +end + +notify-send -c 'status' -h int:value:$volume "Volume" "$text"