Skip to content

Instantly share code, notes, and snippets.

@RodolfoSilva
Forked from jbonney/spotify_keybindings
Created November 16, 2016 01:28
Show Gist options
  • Save RodolfoSilva/0eafa603080f8cbe9fd6940b01b89a22 to your computer and use it in GitHub Desktop.
Save RodolfoSilva/0eafa603080f8cbe9fd6940b01b89a22 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