Force Media Keys to call Spotify on Linux Elementary OS or Ubuntu

- Credit: https://unsplash.com/photos/GIm5OV5rY0w
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.PlayPause
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
sudo apt install xbindkeys-config
xbindkeys-config
  • Enter a “Name” (ex: spotify-play)
  • Click on “Get Key” and press the corresponding key
    If it does not work, then go to your Settings >Keyboard > Shortcurts and in the Media section, assign the Action to the key
  • Enter the action as defined above
  • Press apply

--

--

--

Hello :). I’m an engineer in Computer Science. Passionate about UX and UI design, I love to study how to make the life of users better.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Optimizing My Developer Life

How to create a chatbot

How industry uses Jenkins ?

Part 2. Advanced Version of The Email Template Adaptation

How I broke (and fixed) docs.atomist.com

How Expensive Will It Be to Hire Ukrainian Web Developers in 2017?

Why did I choose Supabase over Firebase?

We have seen an explosive adoption of Containers and Container Management platforms in recent…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Laurent Chassot

Laurent Chassot

Hello :). I’m an engineer in Computer Science. Passionate about UX and UI design, I love to study how to make the life of users better.

More from Medium

MANUAL RECONSTRUCTION OF CALL STACK

What is HAProxy and how to install and configure in Linux

Writeup for lab polosmb3 | Network Services | TryHackMe

How to manage Exim Mail Queue in WHM?