Can somebody confirm that the beecon attached in file (or in previous post) shows strange text during charging? Maybe someone knows why? Cause in test window this text is not there? where is it from?
hal-device bme | awk -F"[. ]" '$5 == "is_charging" {chrg = $7}; $5 == "percentage" {perc = $7} END if (chrg == "false") {print perc "%"; exit (perc>10 ? 0 : perc>3 ? 1 : 2)} else {print "Chrg"; exit 3}'
exit 255