Skip to content

Show the currently playing music/itunes song in menubar

License

Notifications You must be signed in to change notification settings

etern/music-now-playing.spoon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Music(itunes) Now Playing

Build GitHub issues GitHub all releases

A menu bar app which shows currently playing song on Music.app:

Playing:

screenshot

Paused:

screenshot2

Click on the bar toggles the playback. It is also possible to setup shortcuts to play next/previous track and toggle the playback - see below.

Installation

  • install Hammerspoon - a powerfull automation tool for OS X

    • Manually:

      Download the latest release, and drag Hammerspoon.app from your Downloads folder to Applications.

    • Homebrew:

      brew install hammerspoon --cask

  • download music-now-playing.spoon, unzip and double click on a .spoon file. It will be installed under ~/.hammerspoon/Spoons folder.

  • open ~/.hammerspoon/init.lua and add the following snippet, adding your parameters:

-- music now playing
hs.loadSpoon("music-now-playing")
spoon['music-now-playing']:start()
spoon['music-now-playing']:bindHotkeys(
  {
    next={ {"ctrl", "alt"}, "Right"},
    prev={ {"ctrl", "alt"}, "Left"},
    playpause={ {"ctrl", "alt"}, "p"}
  }
)

The config above sets up the following shortcuts:

  • Ctrl Alt → - play next track
  • Ctrl Alt ← - play previous track
  • Ctrl Alt P - play/pause

About

Show the currently playing music/itunes song in menubar

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Lua 100.0%