Schnouki / spop

A Spotify client running as a daemon, similar to mpd.
GNU General Public License v3.0
248 stars 17 forks source link

Welcome to spop!

spop is a Spotify client that works as a daemon (similar to the famous MPD). It is designed to be as simple and straightforward as possible: run it, control it with your keyboard and a few scripts, and just forget about it.

Features

Plugins

Right now, several plugins are available:

How to use

  1. Install libspotify (preferably using your favorite package manager)

  2. Download spop's source code:

    git clone git://github.com/Schnouki/spop.git
  3. Prepare your configuration file:

    mkdir -p ~/.config/spop
    cp spop/spopd.conf.sample ~/.config/spop/spopd.conf
    nano ~/.config/spop/spopd.conf
  4. Compile and run spop:

    cd spop
    ./build_and_run -fv
  5. Connect to the daemon and issue some commands:

    telnet localhost 6602
  6. If you want something more GUI-like, you can use dspop, which uses either dmenu or rofi:

    ./dspop/dspop

    Or, on Linux, you can enable the mpris2 plugin in the configuration file and use the media controls integrated with some desktop environments.

  7. If you want a really nice web interface, have a look at spop-web by Xemle.

If you want to install spop somewhere on your system, do the following steps:

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/where/to/install ..
make
sudo make install

Debian

Add Mopidy APT repository for libspotify from https://github.com/mopidy/libspotify-deb:

wget -q -O - http://apt.mopidy.com/mopidy.gpg | sudo apt-key add -
echo -e "deb http://apt.mopidy.com/ stable main contrib non-free\ndeb-src http://apt.mopidy.com/ stable main contrib non-free" | sudo tee /etc/apt/sources.list.d/mopidy.list
sudo apt-get update

Install required libraries via apt-get:

sudo apt-get install libjson-glib-dev libao-dev libdbus-glib-1-dev libnotify-dev libsoup2.4-dev libsox-dev libspotify-dev

Mac OSX

Install libspotify with Homebrew:

brew install https://raw.github.com/mopidy/homebrew-mopidy/master/libspotify.rb

Commands

At the moment, spop can not modify your playlists, so you will have to use the official Spotify client to manage them.

Except for that, the following commands are available:










Furthermore...

This doc is probably lacking a gazillion useful informations, so feel free to ask me if you have any question regarding spop!