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?