Cloudapp, git-open, lyrics & showme scripts.
This commit is contained in:
14
bin/lyrics
Executable file
14
bin/lyrics
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# lyrics.sh
|
||||
#
|
||||
# A fine piece of work by @febuiles
|
||||
# https://gist.github.com/1549979
|
||||
|
||||
artist=`osascript -e'tell application "iTunes"' -e'get artist of current track' -e'end tell'`
|
||||
title=`osascript -e'tell application "iTunes"' -e'get name of current track' -e'end tell'`
|
||||
|
||||
song=`curl -G --data-urlencode "artist=$artist" \
|
||||
--data-urlencode "title=$title" -s http://makeitpersonal.co/lyrics`
|
||||
|
||||
echo -e "$artist - $title\n$song"
|
Reference in New Issue
Block a user