GithubHelp home page GithubHelp logo

pianobar.el's Introduction

Pianobar.el

You will first have to download and install pianobar, which can be found here: http://6xq.net/html/00/17.html

I had some trouble with the port version on my Mac so I had to download the source and compile it though it was a while ago so the issue may be fixed.

Once you set up pianobar you will have to download the elisp file and place it in your load directory with the following command:

(add-to-list 'load-path "/path/to/pianobar.el")
(autoload 'pianobar "pianobar" nil t)

The second line will lazy load the file when you run the command M-x pianobar

You can set the username, password, and station variables to login automatically when you run pianobar with the following:

(setq pianobar-username "MYEMAIL")
(setq pianobar-password "MYPASSWORD")
(setq pianobar-station "0")

Also if the executable “pianobar” is not on your path you will need to set the variable pianobar-program-command. You can set this with (setq 'pianobar-program-command "/path/to/pianobar")

Running

Pianobar mode tries to be as unobtrusive as possible so as to not interrupt you while working. It functions much like itunes for emacs in that there is a prefix key (by default f7) that starts any pianobar command. These are globally set so you have them in any mode in any buffer. If you already have f7 bound to something else you can just change the value of the variable “pianobar-key”. When the song changes you should get a notification in the message area and if the function “growl” is defined it will notify via growl of the new song. The following are commonly used commands for running pianobar:

  • Pausing [f7] p (or [f7] SPC)
  • Next Song [f7] n
  • Love Song [f7] +
  • Hate Song [f7] -

This mode is still a work in progress so a lot of the commands will have to have some interaction with the “pianobar” process buffer.

You can switch to this buffer at any time by pressing C-x b and switching to the pianobar buffer.

pianobar.el's People

Contributors

jrh0090 avatar

Watchers

James Cloos avatar John Kitchin avatar  avatar

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.