#!/bin/sh

# Get the current value
CURRENT_VALUE=`cat $HOME/Choices/backlight`
MIN_VALUE=0

#If it is not already at the min, decrement it one and save it.
if [ $CURRENT_VALUE = $MIN_VALUE ]; then
NEW_VALUE=$(($CURRENT_VALUE))
else
NEW_VALUE=$(($CURRENT_VALUE-1))
fi

setfl $NEW_VALUE
echo $NEW_VALUE > $HOME/Choices/backlight 
