I'd like to do the same thing as is described here, but using shell scripting (preferably in bash) instead of python. It seems like such a thing should be possible using dbus-monitor, but I'm not very familiar with dbus, and it's not clear to me how to take the concepts described in the solution to the python question and apply them to the dbus-monitor tool.
Join Stack Overflow to learn, share knowledge, and build your career.
|
|
||||
|
|
|
Here's the simplest way I could find:
It produces output like this:
It also prints the currently playing song when started up. If that is not what you want, look at the contents of The main difference between the Python version and this bash version is that the Python version uses DBus to get the playing song information. I couldn't find a good way to do that using bash, but |
|||||||||||||
|