0x79 - a blog

Work in progress.

Media Keys for Spotify Client on Ferora

Users of the lpf-spotify-client on fedora do not automatically have the media keys bound to the client. You can do that by sending dbus commands to the spotify process (dbus is already installed as a dependency of systemd)

Just bind the following commands to your media keys in system settings.

Play/Pause:

dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause

Stop:

dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop

Next:

dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next

Previous:

dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous

Source: https://wiki.archlinux.org/index.php/spotify