Thursday, November 17, 2005

Now Playing in Kopete...

Hi,
Follow these simple steps to display the song currently playing in XMMS as your status in Kopete.

1. Create the following script - kopete-status.sh


#!/bin/sh
STATUS=" `current |awk '{ print substr($0,index($0,":")+2, index($0,"(")) }'` "
dcop kopete default setAway "$STATUS"
echo "Kopete Status: $STATUS"




2. Issue chmod u+x kopete-status.sh to make the script executable and then finally issue
watch -n 5 ./kopete-status.sh.

We r done. Watch your Kopete status being updated every 5 secs to the song being played in XMMS.

Note: U must have this package also: http://www.xmms.org/files/plugins/xmms-extra/xmms-extra-0.1.tar.gz

No comments: