local/bin/lyrics: Init

master
Pierre Neidhardt 2018-07-18 11:11:10 +02:00
parent c819f4cd5d
commit 852af09dfe
1 changed files with 17 additions and 0 deletions

17
.local/bin/lyrics Executable file
View File

@ -0,0 +1,17 @@
#!/bin/sh
if [ "$1" = "-h" ]; then
cat <<EOF>&2
Usage: ${0##*/} [FILES]
Without arguments, call clyrics on the currently playing track in Emms.
EOF
exit
fi
if [ $# -eq 0 ]; then
clyrics $(emacsclient -e '(emms-track-description (emms-playlist-current-selected-track))')
else
clyrics "$@"
fi