Giter VIP home page Giter VIP logo

pianokeys's Introduction

PianoKeys — Control Pianobar using your Mac's media keys

I was really annoyed that I couldn't control Pianobar using the media keys on my Mac, so I wrote an app that does it.

Features

  • Pause/play will do what it's supposed to
  • Hold the pause/play key to "love" a track
  • Fast forward will also do what it's supposed to
  • Hold the fast forward key to "ban" a track
  • PianoKeys will automatically terminate after Pianobar closes

Building

You should be able to just open the Xcode project and build. I developed the app using Xcode 4.2.

Installation

The installation requires a few steps, but it's pretty easy to get up and running, here's what you need to do:

  1. Add this to your Pianobar configuration file (~/.config/pianobar/config)

     fifo = /Users/USERNAME/.config/pianobar/ctl
    
  2. Create the file pipe

     mkfifo /Users/$USER/.config/pianobar/ctl
    
  3. If you have Xcode: Install the application using Xcode from terminal

     # From the project root directory
     xcodebuild -configuration Release install  # installs into /usr/local/bin
    
  4. If you downloaded the binary: Copy the pianokeys binary into your $PATH (e.g. /usr/local/bin)

     cp ./pianokeys /usr/local/bin
    
  5. (Optional) Create a cool alias to start PianoKeys when you start Pianobar

     # Add this to your shell's rc file (e.g. ~/.bashrc)
     alias pianobar='pianokeys && pianobar'
    

That's it! You should be able to start pianokeys and pianobar together.

Note: PianoKeys will terminate itself if Pianobar is not running after 5 seconds— just keep that in mind when starting it up.

pianokeys's People

Contributors

idom818 avatar shayne avatar alexfornuto 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.