Spotify controls for Mjolnir.
Lua
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
mjolnir.lb.spotify-0.2-1.rockspec
spotify.lua

README.md

Install

$ luarocks install mjolnir.lb.spotify

Require

local spotify = require "mjolnir.lb.spotify"

Documentation

After requiring, usage is super simple. Bind a few Spotify actions to some hotkeys. For me, my keyboard has pause, play, and next commands, so displaying the current song is the main thing I need. To accomplish that, it's just a matter of something like this:

hotkey.bind(mash, 'space', spotify.displayCurrentTrack)

Full documentation should be included in Dash's "Mjolnir" docset.