Configure Spotify Audio Keybindings for Linux

I have slowly switched myself to primarly using Linux over the last year. One of the things I met early on was Spotify apparently did not catch the keyboard media keys to control music. After some hunting I found an article from the archlinux wiki that gave me a good place to start.

To hookup the basics, just place the following into your ~/.xbindkeysrc

# Spotify Keys
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop"
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next"
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous"

More Reading
comments powered by Disqus