Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to make a little bash script which I could call with a keyboard shortcut and which could detect which song is currently playing and vote it up or down, stuff like that. How can I get information about the currently playing song? And what about the previous song?

I'm using Banshee, but maybe there is a way to get currently playing song which works with multiple players? Or maybe a general way which can be tweaked to work on different players?

share|improve this question

1 Answer 1

Oops, another question made me think of looking in the manual... Apparently it's really simple to get info about the currently playing song using the --query-* commands. From the manual:

   --query-uri
          URI

   --query-artist
          Artist Name

   --query-album
          Album Title

   --query-title
          Track Title
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.