From be306c83e5255b8b969b2c2330d34c31c0e8c489 Mon Sep 17 00:00:00 2001 From: Never Gude Date: Mon, 16 Mar 2026 19:35:45 +0100 Subject: [PATCH] tweak volumenotify --- .local/scripts/volumenotify.fish | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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"