Adding xfce4 Keyboard Shortcuts for Clementine or Spotify

xfce4 has default media key settings for Pragha music player. Although, if you use clementine music player you can use keyboard shortcuts to control it with DBus and MPRIS.

Clementine is known as org.mpris.clementine and you can add the following entries to your Keyboard Settings > Application Shortcuts

If you use spotify, it is registered as org.mpris.MediaPlayer2.spotify on qdbus.

qdbus org.mpris.clementine /Player org.freedesktop.MediaPlayer.Next
qdbus org.mpris.clementine /Player org.freedesktop.MediaPlayer.Pause
qdbus org.mpris.clementine /Player org.freedesktop.MediaPlayer.Prev

Leave a Reply

Scroll to Top