A menu bar app which shows currently playing song on Spotify:
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 spotify-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:
-- Spotify current song
hs.loadSpoon("spotify-now-playing")
spoon['spotify-now-playing']:start()
spoon['spotify-now-playing']:bindHotkeys(
{
next={ {"alt"}, "."},
prev={ {"alt"}, ","},
playpause={ {"alt"}, "/"}
}
)
The config above sets up the ollowing shortcuts:
- ⌥ + , - play next track
- ⌥ + . - play previous track
- ⌥ + / - play/pause