Cloudapp, git-open, lyrics & showme scripts.

This commit is contained in:
Artem Sapegin
2013-01-10 14:57:25 +04:00
parent dede296618
commit e3bddfe05f
4 changed files with 203 additions and 0 deletions

14
bin/lyrics Executable file
View 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"