#! /bin/bash
if [[ "$(pgrep mocp)" -eq 0 ]];
then
    mocp -M "${XDG_CONFIG_HOME}"/moc -S
    if [[  $1 -eq 0 ]];
    then
        mocp -M "${XDG_CONFIG_HOME}"/moc -v 12
    else
        mocp -M "${XDG_CONFIG_HOME}"/moc -v "$1"
    fi
    mocp -M "${XDG_CONFIG_HOME}"/moc -p
    mymocp&
else
    mocp -M "${XDG_CONFIG_HOME}"/moc -G
fi