Update all bin-scripts to include a description.

The description will always be on the third line.

Signed-off-by: Jacob Kiers <jacob@alphacomm.nl>
This commit is contained in:
Jacob Kiers
2014-04-30 11:06:35 +02:00
parent 4fc8d0f296
commit 4ec08fcd76
7 changed files with 17 additions and 9 deletions

View File

@ -1,14 +1,14 @@
#!/bin/bash
#
# lyrics.sh
# Returns the lyrics of the current track playing in Spotify.
#
# 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'`
artist=`osascript -e'tell application "Spotify"' -e'get artist of current track' -e'end tell'`
title=`osascript -e'tell application "Spotify"' -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"
echo -e "$artist - $title\n$song"