Commit be929ebe authored by Thomas Eppers's avatar Thomas Eppers
Browse files

added host and port to later execution of mpc

parent 6cc8077d
......@@ -13,7 +13,7 @@ MPC_PORT="6600" # default port
# check if mpc is playing
PLAYING=`mpc -h $MPC_HOST -p $MPC_PORT status | awk 'NR==2' | grep playing`
if [[ $PLAYING ]]; then
mpc pause # pause mpd
mpc -h $MPC_HOST -p $MPC_PORT pause # pause mpd
# play snippet
......@@ -23,7 +23,7 @@ mpv $SNIPPET --volume=$VOLUME
#resume if was playing
if [[ $PLAYING ]]; then
mpc play
mpc -h $MPC_HOST -p $MPC_PORT play
#end script
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment