Recently Written · git

sad

sad (2f30.org simple audio daemon) with a Cygwin/OSS port on branch cygwin

git clone https://github.com/equwal/sad

Log | Files | Refs


scripts/sad-playlist (262 bytes)

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