Showing posts with label pidgin. Show all posts
Showing posts with label pidgin. Show all posts

Thursday, October 15, 2009

Update online status with what you are listening

It may not seem as easy as it actually is, that's why I decided to share it.
Here it is a bash script that once executed updates pidgin's status with the name of the track running Rhythmbox music player


#!/bin/bash

while [ 1 ]
do
out=$( rhythmbox-client --no-start --print-playing)
#echo "I'm now listening to $out"
echo `/usr/bin/purple-remote "setstatus?status=available&message=Listening to $out"`
sleep 5
done