#!/bin/sh # Prints the currently playing song from amaroK for Konversation. PORT=$1; SERVER=$2; TARGET=$3; TITLE=$(dcop amarok player title); ALBUM=$(dcop amarok player album); ARTIST=$(dcop amarok player artist); YEAR=$(dcop amarok player year); GENRE=$(dcop amarok player genre); TYPE=$(dcop amarok player type); BITRATE=$(dcop amarok player bitrate); TIME=$(dcop amarok player totalTime); CURTIME=$(dcop amarok player currentTime); echo "/me np: ${TITLE} [${CURTIME}/${TIME}] - ${ALBUM} - ${YEAR} by ${ARTIST} | ${GENRE} | ${TYPE} | ${BITRATE} kbps"| while read line; do dcop $PORT default say $SERVER "$TARGET" "$line"; done # Vey easy to tune, so do whatever you like with it ;-) and preferably share it with the rest of us!