moc-lyrics
moc-lyrics is a simple bash script that fetches the lyrics of current song playing in MOC (music on console) music player.
Dependencies :
- Perl - Perl (Practical Extraction and Reporting Language) originally developed by Larry Wall is a family of high-level, general-purpose, interpreted, dynamic programming languages. Perl is available in repositories of almost every Linux distribution under the sun. Use your distribution's package manager to install it. Perl Module URI::Escape is needed.
- Wget - Wget is a free software package for retrieving files using HTTP, HTTPS and FTP, the most widely-used Internet protocols. Most Linux distributions have Wget in their package repositories so you can easily install Wget via the package manager of your distribution in case it is not installed on your system.
Installation :
Very easy.
Obtain sudo privileges and download moc-lyrics-master.zip,
sudo -s
wget --content-disposition https://github.com/hakerdefo/moc-lyrics/archive/master.zip
Extract it,
unzip moc-lyrics-master.zip
Make moc-lyrics executable and copy it to /usr/local/bin/ directory,
chmod 755 moc-lyrics-master/moc-lyrics
cp moc-lyrics-master/moc-lyrics /usr/local/bin/
And finally clean up the leftovers and drop sudo privileges,
rm moc-lyrics-master.zip
rm -rf moc-lyrics-master/
exit
Usage :
Run moc-lyrics and it will fetch and print lyrics of the song currently playing in MOC music player.
Credits :
Federico Builes - moc-lyrics wouldn't have been possible without wonderful makeitpersonal created by Federico.
License :
This work (moc-lyrics, by hakerdefo), identified by hakerdefo, is free of known copyright restrictions.