music (305B)
#!/bin/bash
MPC="mpc -h 127.0.0.1 -p 6664 "
IS_PLAYING=$($MPC status | awk '{if($0 ~ /playing|paused/){printf "Y"}else{printf "N"}}')
if [[ "$IS_PLAYING" =~ Y ]]; then
	echo $($MPC status | awk '{if(NR==1){x=$0}if(NR==2){y=$0}}END{printf x" "y;}' | sed -E 's/\.mp3//g' )
else
	echo "no music playing"
fi