4 echo -n "CPU: ${7}% User ${8}% Nice ${9}% Sys ${10}% Int ${11}% Idle "
12 if [ $AC_STATUS -ne 255 -o $BAT_STATUS -lt 4 ]; then
13 if [ $AC_STATUS -eq 0 ]; then
14 echo -n "on battery (${BAT_LEVEL}%)"
21 AC_STRING="on backup AC: "
29 BAT_STRING="(no battery)"
32 BAT_STRING="(battery ${BAT_LEVEL}%)"
35 BAT_STRING="(battery unknown)"
39 FULL="${AC_STRING}${BAT_STRING}"
40 if [ "$FULL" != "" ]; then
48 # you probably want to reduce the sleep below if you enable this
49 #print_cpu `/usr/sbin/iostat -C`
50 print_apm `/usr/sbin/apm -alb`