scripts: (battery) color and urgent on discharge

Change the script to consider color and urgent flag only on discharge.

Refs #12