Code Monkey home page Code Monkey logo

counsel-spotify's Introduction

Counsel Spotify

Little Emacs package to control Spotify app through an Ivy interface.

If I have seen further it is by standing on the shoulders of giants. Isaac Newton

This package is basically a port of helm-spotify and helm-spotify-plus with an Ivy interface. Many thanks to the authors of those for their amazing work!

Dependencies

Ivy

Notes on Spotify Web API authentication

You'll need to register an application in Spotify in order to obtain a client id and a client secret. Then, you'll have to set the variables counsel-spotify-client-id and counsel-spotify-client-secret variables with your credentials to start using the search feature

How to use it

This package exposes these search functions:

  • counsel-spotify-search-track
  • counsel-spotify-search-album
  • counsel-spotify-search-artist
  • counsel-spotify-search-playlist
  • counsel-spotify-search-tracks-by-album
  • counsel-spotify-search-tracks-by-artist

The options are fetched from Spotify REST API. Hitting RET while selecting an option will start playing that track or album (depending on what the search were). Also, hitting M-o will prompt a tiny menu with some more actions to choose from (for example, choosing to play the entire album a song belongs to)

Controllers

There are defined some basic controllers for the Spotify App

Action Function
Play counsel-spotify-play
Toggle play/pause counsel-spotify-toggle-play-pause
Next song counsel-spotify-next
Previous song counsel-spotify-previous

What if I want to use another Spotify client (like Mopidy or Spotifyd)?

Well, in that case I think you would be interested in two variables:

  • counsel-spotify-service-name is the name of the DBUS service counsel-spotify calls to handle the reproduction of a song
  • counsel-spotify-use-system-bus-p for some clients that use the system bus instead of the session

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.