Manipulating amarok remotely using dcop and ssh
Following my friend Ian's recommendation, I moved all of my music onto an amarok installation a couple of years back. Great program, great features, simple to use, nicer for multi-user installations since the database can be shared, able to have automagic playlists like what-haven't-I-listened-to-in-awhile, etc. I can't recommend it highly enough.
Often, I play music from our desktop but work on my laptop. With purely random playlists, two problems arise when listening remotely:
Ack! That's horrible. Next song, please.- What song is this exactly?
Amarok provides an dcop interface that allows CLI access to lots of information. If your remote SSH shell isn't part of the same dcop session (not likely), you need an extra bit of magic to use it.
In my setup, I can answer those two problems with these commands:
- dcop --user `whoami` --all-sessions amarok player next
- dcop --user `whoami` --all-sessions amarok player nowPlaying
No comments:
Post a Comment