tweak volumenotify

This commit is contained in:
Never Gude 2026-03-16 19:35:45 +01:00
parent 8c80c5ecd2
commit be306c83e5

View file

@ -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") 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"