Konversation comes with a very good now playing script residing in /usr/share/apps/konversation/scripts/media. It's made in Python and has support for many audio players, among these being Amarok, JuK or XMMS. However, if you only use Amarok and want a real simple now playing script, you can make one in Bash. Just create the file anp.bash in your ~/.kde/share/apps/konversation/scripts/ directory, chmod 755 it and copy the following in it:
nowPlaying="$(dcop amarok default nowPlaying)"
dcop $PORT default say $SERVER "$TARGET" "$out"
Then open Konversation and go to Settings -> Configure Konversation... -> Command Aliases and add anp as the Alias and /exec anp.bash as the Replacement. You can execute it with the command /ANP in any channel or query window. Note that the example is a very basic one, so if Amarok is not running the message which will appear will only be 'Rocks! '.
Updated: Jun 23, 2008 (Created: May 27, 2008)