#!/bin/sh

# Get the current value
CURRENT_VALUE=`cat $HOME/Choices/volume`
MAX_VALUE=100

#If it is not already at the max value, increment it one.
if [ $CURRENT_VALUE = $MAX_VALUE ]; then
NEW_VALUE=$(($CURRENT_VALUE))
else
NEW_VALUE=$(($CURRENT_VALUE+2))
fi

rexima vol $NEW_VALUE
echo $NEW_VALUE > $HOME/Choices/volume
