forward

Example 3.5. /home/cweiske/scripts/forward

#!/bin/sh
if [ `dcop | grep kaffeine -c` = '1' ]
then
    dcop kaffeine PlaybackControl posPlus
elif [ `pgrep tvtime` ]
then
    tvtime-command CHANNEL_UP
elif [ `dcop | grep kwintv -c` -gt 0 ]
then
    dcop kwintv KWinTVIface channelUp
else
    #xmms forward
    xmms -f
fi