A menu bar app which shows currently playing song on Music.app:
Playing:
Paused:
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.
-
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