9 lines
197 B
Fish
Executable file
9 lines
197 B
Fish
Executable file
#!/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%"
|