dotfiles/.local/scripts/mpdvolumenotify.fish

10 lines
197 B
Fish
Raw Normal View History

2026-07-11 01:35:28 +02:00
#!/usr/bin/env fish
set volume (mpc status "%volume%" | string trim --chars " %")
if test $volume = "-1"
set volume "0"
end
notify-send -c 'status' -h int:value:$volume "MPD Volume" "$volume%"