Integrate Pianobar with the Now Playing feature of macOS

Overview

PianobarNowPlayable Icon

PianobarNowPlayable - Integrate Pianobar with the Now Playing feature of macOS

Ever wanted to control Pianobar like you do most other music applications on macOS? So did I! Introducing, PianobarNowPlayable!

PianobarNowPlayable in Now Playing

PianobarNowPlayable runs in the menu bar and operates silently in the background, facilitating communication between Pianobar and macOS. You can find a few controls and settings if you click the icon (looks like the keys of a piano). These include some extra controls for pianobar (loving and banning songs), an option to launch at startup, and a way to swap the play pause button if it gets confused.

PianobarNowPlayable in Now Playing

A big thanks to the creator of PianoKeys. That app is what inspired me to create this one after it went unmaintained.

Features

  • Control Pianobar using the media keys from your keyboard or headphones
  • See the currently playing song from the Now Playing menu bar icon
  • Love or Ban songs from PianobarNowPlayable's menu bar icon
  • Automatically start PianobarNowPlayable with macOS

Setup and Installation

  1. Clone or download the repo
  2. Build the project with Xcode and move the app to wherever you want it
  3. Create the named pipe so PianobarNowPlayable can communicate with Pianobar
    mkfifo ~/.config/pianobar/ctl
  4. Copy the event command handler so Pianobar can communicate with PianobarNowPlayable
    cp pianobarNowPlayableEventCommand ~/.config/pianobar/
  5. Add these two lines to your pianobar config
    fifo = ~/.config/pianobar/ctl
    event_command = ~/.config/pianobar/pianobarNowPlayableEventCommand
    
  6. Run PianobarNowPlayable
  7. Run Pianobar

Known Issues

  • Only the default Pianobar key bindings for controls are supported right now
  • Play pause button state may be incorrect until the song switches
  • Interruptions like FaceTime and phone calls can play or pause Pianobar incorrectly
  • There is no playback information reported to the Now Playing widget

Contributing

I work on PianobarNowPlayable in my free time outside of work. If you come up with an idea, have questions, or found a bug, feel free to open up an issue. I'll respond when I have a chance. If you add a feature or fix an issue, please open up a PR! So long as the change looks good and works, I'd be happy to merge it in.

You might also like...
PiPifier - a macOS and iOS Safari extension that lets you use every HTML5 video in Picture in Picture mode
PiPifier - a macOS and iOS Safari extension that lets you use every HTML5 video in Picture in Picture mode

PiPifier is a macOS 10.12 and iOS Safari (action) extension that lets you use every HTML5 video in Picture in Picture mode macOS Download It'

A library to recreate the iOS Apple Music now playing transition
A library to recreate the iOS Apple Music now playing transition

DeckTransition DeckTransition is an attempt to recreate the card-like transition found in the iOS 10 Apple Music and iMessage apps. Hereʼs a GIF showi

Now playing controller from Apple Music, Mail & Podcasts Apple's apps.
Now playing controller from Apple Music, Mail & Podcasts Apple's apps.

SPStorkController About Controller as in Apple Music, Podcasts and Mail apps. Help if you need customize height or suppport modal style in iOS 12. Sim

Repository for the first challenge of the SwiftUI Animation Challenges. Create the likeable now playing animation from the Spotify app.
Repository for the first challenge of the SwiftUI Animation Challenges. Create the likeable now playing animation from the Spotify app.

Repository for the first challenge of the SwiftUI Animation Challenges. Create the likeable now playing animation from the Spotify app.

AudioPlayer is a simple class for playing audio in iOS, macOS and tvOS apps.
AudioPlayer is a simple class for playing audio in iOS, macOS and tvOS apps.

AudioPlayer AudioPlayer is a simple class for playing audio in iOS, macOS and tvOS apps.

a simple macOS menu bar application that shows you the lyrics of current playing spotify track.

lyricsify a simple macOS menu bar application that shows you the lyrics of current playing spotify track.

Paimon's now in your macOS menu bar
Paimon's now in your macOS menu bar

PaimonMenuBar Paimon's now in your menu bar! Demo What's this? Genshin Impact has got a complicated daily system, consisting of: 4 Daily commisions. 5

Soundable is a tiny library that uses AVFoundation to manage the playing of sounds in iOS applications in a simple and easy way

Soundable is a tiny library that uses AVFoundation to manage the playing of sounds in iOS applications in a simple and easy way. You can play

Repository with base samples for playing HLS/DASH with CMAF video, across as many platforms as possible. Includes steps for encoding and packaging your own test content.

Video Everything Repository with minimal samples for playing HLS/DASH with CMAF video, across as many platforms as possible. Content and License All t

Some code for playing with the Teenage Engineering Ortho Remote

ortho-remote C program for interfacing with the Teenage Engineering Ortho Remote. Currently only implemented for macOS Puts the remote into MIDI mode

A fully functional short video app project.Record a six secends video while playing prank sounds.

prankPro A fully functional short video app project How to Install 1. use coconapod to init your xcode environment. 2. change the app-keys in `applica

Example App for playing around with
Example App for playing around with

BookStore 👉 한글 버전 See new releases and search for programming books from IT Bookstore API This is a sample app to practice using Result type, stubbin

AIB indicates for your app users which audio is playing. Just like the Podcasts app.
AIB indicates for your app users which audio is playing. Just like the Podcasts app.

Audio Indicator Bars for iOS and tvOS Indicates for your app users which audio is playing. Just like the Podcasts app. Index Requirements and Details

Wordlebutimstupid - Fixed shortfall in intelligence when playing wordle
Wordlebutimstupid - Fixed shortfall in intelligence when playing wordle

wordlebutimstupid fixed shortfall in intelligence when playing wordle ⬛️⬛️⬛️⬛️⬛️

Codepath-flix - An iOS app that shows the movies currently playing in theaters
Codepath-flix - An iOS app that shows the movies currently playing in theaters

Flix App Submitted by: Luis Mora User Stories REQUIRED (10pts) (2pts) User sees

Playing with Core Image and Metal Shader Language for fun.
Playing with Core Image and Metal Shader Language for fun.

Playing with Core Image and Metal Shader Language for fun.

Professional Radio Station App - now supports Swift 5 / Xcode 10!
Professional Radio Station App - now supports Swift 5 / Xcode 10!

Swift Radio Swift Radio is an open source radio station app with robust and professional features. This is a fully realized Radio App built entirely i

Drawing and Geometry made easy on iOS - now in Swift 3.0

InkKit Swift Support Swift 4.0 InkKit is Swift 4.0 by default, so to use that just include InkKit in your podfile: pod 'InkKit' Swift 3.2 In order to

Owner
Dominic
Dominic
A fully functional short video app project.Record a six secends video while playing prank sounds.

prankPro A fully functional short video app project How to Install 1. use coconapod to init your xcode environment. 2. change the app-keys in `applica

huijimuhe 258 Jun 19, 2022
ABMediaView can display images, videos, as well as now GIFs and Audio!

Media view which subclasses UIImageView, and can display & load images, videos, GIFs, and audio and from the web, and has functionality to minimize from fullscreen, as well as show GIF previews for videos.

Andrew Boryk 80 Dec 20, 2022
A SwiftUI framework which makes it easy to integrate Video Call and Chat within a few lines of code.

Welcome to iStream! This SwiftUI Framework allows you to add Video Call and Chat to your project within a few lines of code. To use this Framework, yo

null 2 Aug 19, 2022
Camera and Microphone streaming library via RTMP, HLS for iOS, macOS, tvOS.

HaishinKit (formerly lf) Camera and Microphone streaming library via RTMP, HLS for iOS, macOS, tvOS. Issuesの言語は、日本語が分かる方は日本語でお願いします! Sponsored with ??

shogo4405 2.4k Dec 29, 2022
IINA is the modern video player for macOS.

IINA IINA is the modern video player for macOS. Website · Releases · Telegram Group Features Based on mpv, which provides the best decoding capacity o

Jesse Chan 0 Nov 2, 2021
Simple macOS app that applies Apple's Person Segmentation algorithm to a video.

Simple macOS app that applies Apple's Person Segmentation algorithm to a video.

Fabio 5 Dec 9, 2022
Yattee: video player for Invidious and Piped built for iOS 15, tvOS 15 and macOS Monterey

Video player with support for Invidious and Piped instances built for iOS 15, tvOS 15 and macOS Monterey.

Yattee 1k Dec 27, 2022
YouTube video player for iOS, tvOS and macOS

About XCDYouTubeKit is a YouTube video player for iOS, tvOS and macOS. Are you enjoying XCDYouTubeKit? You can say thank you with a tweet. I am also a

Cédric Luthi 2.9k Jan 7, 2023
Versatile Video Player implementation for iOS, macOS, and tvOS

News ?? - Since 2.1.3 VersaPlayer now supports iOS, macOS, and tvOS Example Installation Usage Basic Usage Adding Controls Advanced Usage Encrypted Co

Jose Quintero 723 Dec 26, 2022
Yattee: video player for Invidious and Piped built for iOS, tvOS and macOS

Video player for Invidious and Piped instances built for iOS, tvOS and macOS. Features Native user interface built with SwiftUI Multiple instances and

Yattee 1.1k Jan 8, 2023