[download]

local/bin/music-menu

   1 #!/bin/bash
   2 
   3 music || mocp -S &
   4 s=$(music | sed 1q | cut -d ' ' -f 2-)
   5 
   6 printf '%s\n' pause play stop prev next 'seek -10' 'seek +10' |
   7 xargs -I % icon music-% % | menu -i music -p "$s" |
   8 cut -d ' ' -f 2- | xargs -r music