Skip to content

Instantly share code, notes, and snippets.

@KeizerDev
Forked from jbonney/spotify_keybindings
Created May 11, 2016 21:35
Show Gist options
  • Save KeizerDev/3996270ca1861d2a9bf9f7bb902c4763 to your computer and use it in GitHub Desktop.
Save KeizerDev/3996270ca1861d2a9bf9f7bb902c4763 to your computer and use it in GitHub Desktop.
Spotify - Linux key bindings. From XFCE / Ubuntu keyboard shortcuts configuration, assign the control command to their key. http://shkspr.mobi/blog/2011/12/linux-spotify-keybindings/
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause" XF86AudioPlay
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop" XF86AudioStop
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next" XF86AudioNext
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous" XF86AudioPrevious
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment