#!/bin/sh
# wecken.sh: Let xmms wake you up
# Requires running xmms
# Fr Feb 17 22:17:48 CET 2006
# Nico Schottelius

SLEEP=1

if [ `mpc |grep playing -c` = 1 ]; then
  mpc pause
else
  mpc play
fi

# Init music, begin quiet
echo volume 0 | xmms-shell
echo play | xmms-shell

# raise volume
i=0 

while [ $i -lt 100 ]; do
   echo volume $i | xmms-shell
   sleep $SLEEP
   i=$(($i+1))
done

