Created
April 9, 2012 18:19
-
-
Save mwerner/2345205 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
artist_name=`arch -i386 osascript -e'tell application "Spotify"' -e'get artist of current track' -e'end tell'` | |
song_title=`arch -i386 osascript -e'tell application "Spotify"' -e'get name of current track' -e'end tell'` | |
artist=`echo $artist_name | sed "s/[[:space:]]/%20/g"` | |
title=`echo $song_title | sed "s/[[:space:]]/%20/g"` | |
song=`curl -s "http://makeitpersonal.co/lyrics?artist=$artist&title=$title"` | |
echo -e "$artist_name - $song_title\n$song" | less |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment