lyrics 299 B

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