Search lyrics and copy them automatically from the terminal
UNIX-only: Linux, BSD, MacOS
This version is written in PHP and it requires PHP and Composer and a unix system, the song selector of Climax only works on Unix systems. Tested on Ubuntu (elementaryOS) but should work on others aswell.
It uses my php clipboard helper which requires xclip
or xsel
on Linux and pbcopy
and pbpaste
on Darwin
First, create client id, client secret and token from: https://genius.com/api-clients
Then clone this repository and install dependencies using:
git clone https://github.com/asvvvad/cply-php
cd cply-php
composer install
After that, edit cply with the keys at the begining of the file
Now you can run it using ./cply
To install it to the system it requires root you can use:
cd ..
sudo mv cply-php /usr/local/
sudo ln -sf /usr/local/cply-php/cply /usr/local/bin
sudo chmod +x /usr/local/bin/cply