One can configure the play/pause key on his/her keyboard to start/pause music of any music player that supports this function.
I'm writing a program that should trigger these events. Currently the program calls:
rhythmbox-client --play
To start playing music. The problem with this approach is that the user for instance can use Nuvola player
.
How can I trigger a play/pause event?