#!/bin/sh 
#
# $Id: now-playing.sh,v 1.1 2003/12/23 00:46:52 dope Exp dope $
#
# Copyright by Christian Schneider <strcat@gmx.net>
#
# Filename: ~/bin/now-playing.sh
# Purpose:  Create a "np: <song>" or "np: nothing" - Line (need Xmms).
#  irssi: /bind meta-m now-playing.sh
#  irssi: <ESC>-m
#  irssi: np: Manowar - Kings Of Metal
#
# Last modified: [ 2004-10-23 15:54:45 ]

JEHOVA="`fortune unamerican-o`"
PLAYING="~/.now_playing"
FOO="`/bin/ls -l ~/.now_playing | awk '{print $5}'`"
if [ $FOO -ne 1 ]
#if test $FOO -ne 1
then
	echo "np: `cat ~/.now_playing`"
else
	echo "np: nothing :/ (`echo `fortune unamerican-o``)"
fi
