What commands are invoked when I press my media keys (play / pause, next, previous)?
I had a look at simulate media keys in the terminal, and my requirement is the same, except I cannot use the approach in the answer. The answers simulates the keys themselves using
xdotools, which I cannot do because I have re-mapped what these keys do. What I want to know is the underlying mechanism in the OS which sends messages to apps which need to know multimedia keys are pressed. I suspect it may be related to dbus.
I had to re-map my media keys (play / pause, next, previous) to other commands this link contains some background.
I did this by removing the previous key-bindings for these media keys and re-assigning them in settings > keyboard > shortcuts.
I want to know the original command so that I can invoke
spotify-command ; original-command on the keypress instead of just invoking