Created
October 23, 2011 02:48
-
-
Save RustingSword/1306790 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
song=$(echo -n `mocp -Q %song 2> /dev/null`) | |
artist=$(echo -n `mocp -Q %artist 2> /dev/null`) | |
if [[ "$song" != "" ]] | |
then | |
if [[ "$artist" != "" ]] | |
then | |
echo -n "\${color white} Now Playing: \${color green} $song - $artist" | |
else | |
echo -n "\${color white} Now Playing: \${color green} $song" | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment