#!/bin/sh

if xmmsctrl playing; then
 if xmmsctrl paused; then
  xmmsctrl stop
 else
  xmmsctrl pause
 fi
else
 xmmsctrl play
fi

