sad

simple audio daemon
git clone git://git.2f30.org/sad
Log | Files | Refs | LICENSE

sad-playlist (262B)


      1 #!/bin/sh
      2 sock="/tmp/sad-sock"
      3 
      4 song=$(echo playlist | nc -U "$sock" | \
      5 	grep -v '^OK$' | grep -v '^ERR ' | \
      6 	dmenu -l 20 -i -p 'Search: ')
      7 if test x"$song" != x""; then
      8 	id=$(printf '%s' "$song" | cut -d ':' -f 1)
      9 	printf 'play %s\n' "$id" | nc -U "$sock"
     10 fi