A complete cmus setup with lyrics, cover arts and tag edit setup. It also downloads the lyrics to
/home/USERNAME/lyrics
in {$ARTIS}_{$TITLE}_lyrics_1.txt
format for future use
You can change them all to .lrc files if you want. And cover art for cmus which will be
in track's folder.
I usually have this setup open in one of workspaces in one of my monitors. You can see a sample picture at the end.
Except cmus-plugins.sh all other files can be found here and there in github.(I forgot where I got them,I would have linked them otherwise) I have modified them except cmus-feh.sh and cmus_edit_tag. cmus_edit_tag can be found in cmus's official github page.(Dig a bit deep)
Follow below steps:
- Install glyrc
sudo apt install glyrc
or compile from source Glyr. - Install cmus
sudo apt install cmus
. - Install wget
sudo apt install wget
(used to fetch lyrics). - Install jq
sudo apt install jq
(used to fetch lyrics). - Install awk
sudo apt install mawk
(used to fetch lyrics). - Install mp3infor
sudu apt install mp3info
(used to edit tag of mp3 files). - Install feh
sudo apt install feh
(used to display cover art). - Install terminator
sudo apt install terminator
(try your own terminal see if it works, need to change it for your own setup in the files). - Download the file:
git clone https://github.com/at8i/cmus-setup
. - cd into the folder:
cd cmus-setup
. - Make all the file executable and move the into
/usr/local/bin
.
sudo apt install glyrc cmus wget jq mawk terminator feh &&
git clone https://github.com/at8i/cmus-setup &&
cd cmus-setup &&
sudo chmod +x cmus-artget.sh cmus_edit_tag cmus_plugins.sh cmus-lyrics cmus-feh.sh &&
sudo mv -f cmus-artget.sh cmus_edit_tag cmus_plugins.sh cmus-lyrics cmus-feh.sh /usr/local/bin/
Now all your files are in place.
Follow steps below to setup your status display program in cmus:
- Open terminal and execute
cmus
. - In cmus execute this command:
:set status_display_program=/usr/local/bin/cmus_plugins.sh
- Restart cmus and play a song now you should be able to see cover art and lyrics. Position lyrics terminator window wherever you want.
Follow steps below to be able to edit tag of the tracks you want:
- Open cmus in a terminal.
- And execute this command but use any other binding instead of 0:
:bind -f common 0 shell /usr/local/bin/cmus_edit_tag
- Now restart cmus.
- If you press your binding for edit tag command, a window will pop up and you can edit the fields and press enter at the end to save and quit or ctrl-C to cancel the changes and quit.
You may want to take these into consideration.
- If you are using Gnome desktop cmus status extension is recommended.
- Coverart-get is slow , it will take 30 secdons to find and download the cover art. So wait 30 sec and then play the song once more and you should be able to see the art cover. Don't worry it is working, give it some time.
- Lyrics will not be shown until a song is played.(An infinite loop bug for non-English songs were solved in this way)