18 lines
299 B
Plaintext
18 lines
299 B
Plaintext
|
#!/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
|