Skip to content

Search lyrics and copy them automatically from the terminal

License

Notifications You must be signed in to change notification settings

asvvvad1/cply-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cply-php

Search lyrics and copy them automatically from the terminal

Requirements

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

Install

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

Usage:

asciicast