• Tip Jar

Command Line Lyrics Viewer


If you are a fan of command line music players like Cmus, Pianobar, or Shell-fm you may have wondered how to get lyrics for the song you are playing. There is a program called lyvi that does just that. Originally called cmus-lyrics it was created to display lyrics for music playing in Cmus, the program has been expanded to handle Shell-fm and Pianobar as well as several other CLI music players. It uses glyr to download lyrics. I am sure glyr may be packaged in future releases of Ubuntu, but as I am using Vinux 3.0 based on Ubuntu 10.04, I have to compile it. So here are instructions for getting the latest and greatest glyr:
sudo apt-get install cmake libglib2.0-dev libcurl3 libcurl4-openssl-dev libsqlite3-dev python3.1
git clone https://github.com/sahib/glyr.git
cd glyr/
sudo make install
Then, to get lyvi
git clone https://github.com/ok100/lyvi.git
cd lyvi/
git checkout glyrc
For the program to work you will need to have music playing in one of the players it supports, Cmus, Last.fm, or Pianobar. I recommend using a multitermnal program like screen or tmux. When you have music playing, to launch lyvi while in the lyvi directory type:
python3.1 lyvi
It will find and download the lyrics for the currently playing song. You can press the letter a to toggle through lyrics, artist information, and guitar tabs.
There are a couple of additional steps you need to take for it to work with either Pianobar or Shell-fm. The setup is very well documented in the README>MD file in the lyvi directory.
This program is very well written and is hours of fun.

Bookmark the permalink.

Comments are closed.

  • Tip Jar