local/bin/lyrics: Init
parent
c819f4cd5d
commit
852af09dfe
|
@ -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
|
Loading…
Reference in New Issue