diff --git a/music b/music index f3391ce..e6ea615 100755 --- a/music +++ b/music @@ -1,6 +1,12 @@ #!/bin/sh -# TODO: what +# Start the mocp server if its not there yet + +proc_id=`pgrep moc` +if [ -z $proc_id ]; then + mocp --server +fi + if [ ! $1 = "" ]; then echo Args: $@ # start X pause volume_set