#!/bin/sh if [ "$1" = "-h" ]; then cat <&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