You can install the pypi package using pip3 install rofi-spotify
.
Make sure wherever it is installed to is on your path. You can check with pip3 show rofi-spotify
.
Arch users can install the rofi-spotify-git package.
Clone this repo somewhere, then run:
pip3 install -r requirements.txt
You may wish to use the provided script, in which case it needs to be marked as executable:
chmod +x bin/rofi-spotify
On first run the script should automatically tell you what to do in order to register your app on the Spotify developer page and create a configuration file.
If installed using a package manager, a script should have automatically been put on your path:
rofi-spotify # Normal usage
rofi-spotify -h # See help
If not, you can either do:
python3 main.py
# or
bin/rofi-spotify
By default, the different possible options are shown.
Short | Long | Description | Default |
---|---|---|---|
-h | --help | Shows CLI help and exits | - |
-a | --add-to-playlist | Add current track to a playlist | - |
-st | --search-track | Search for a track | - |
-i | --case-sensitive | Enable case sensitivity | False |
-r ... | --args ... | Command line arguments for rofi. Separate each argument with a space. | - |
If you have suggestions, bugs or other issues specific to this software, file them here. Or just send me a pull request.