dotfiles/.local/scripts/volumenotify.fish
2026-03-16 17:59:06 +01:00

7 lines
236 B
Fish
Executable file

#!/usr/bin/env fish
set volume (string match -r '[0-9]+.[0-9]+' (wpctl get-volume @DEFAULT_AUDIO_SINK@))
set volume (math --scale 0 --scale-mode round "$volume * 100")
notify-send -c 'status' -h int:value:$volume "Volume" "$volume%"