View Single Post
dr_frost_dk's Avatar
Posts: 1,503 | Thanked: 2,688 times | Joined on Oct 2010 @ Denmark
#172
for % showing and no color use this

Code:
x=$(hal-device | grep voltage.current | awk '{printf "%4.0f",$3}')
if [ $x -ge 4050 ];then
echo $x | awk '{printf "%3.1f", 85 + ($1 - 4050) / 12}{print "%"}'
fi
if [ $x -ge 3900 -a $x -lt 4050 ];then
echo $x | awk '{printf "%3.1f", 70 + ($1 - 3900) / 10}{print "%"}'
fi
if [ $x -ge 3800 -a $x -lt 3900 ];then
echo $x | awk '{printf "%3.1f", 50 + ($1 - 3800) / 5}{print "%"}'
fi
if [ $x -ge 3660 -a $x -lt 3800 ];then
echo $x | awk '{printf "%3.1f", 15 + ($1 - 3660) / 4}{print "%"}'
fi
if [ $x -ge 3600 -a $x -lt 3660 ];then
echo $x | awk '{printf "%3.1f", 5 + ($1 - 3600) / 6}{print "%"}'
fi
if [ $x -lt 3600 ];then
echo $x | awk '{printf "%3.1f", ($1 - 3300) / 60}{print "%"}'
fi
you might have to change beecon to snippet, this is the fist setting when you open options on the beecon (tool sign), this will ensure that there will be no background color change, the colors are set by the 'exit 0' codes

I personally like the color "warning" instead of having to concentrate on looking at %

and power wise im a bit of a 'pig' since i made the dual japod battery, no checking if i have bluetooth or 3G turned off and always using my brightness level 3 (custom brightness), and still i have not been in the 'crap i have to limit myself' situation

The battery testing thread is about done, would be nice to have a big mugen battery on the list also, but no one have PM me to donate or lend me one if they just have one laying around.

Im busy now looking at the next HW mod, this new mod is about increasing the SD storage capacity, will make a new thread if i can make it work.
 

The Following 3 Users Say Thank You to dr_frost_dk For This Useful Post: