View Single Post
JonWW's Avatar
Posts: 623 | Thanked: 289 times | Joined on Jan 2010 @ UK
#1232
Originally Posted by Robb View Post
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?
I've been meaning to get back to you on this one; change the command to this:
Code:
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}'
and also change the "Beecon Status Background colour >= 3" to #808080808080

The problem is that when on charge awk exits with 255 not -1 as you would expect, even so junk text should not be displayed even if it exits with 255.

This is a bug in QBW I would say. Create a QBW with the only command as:
Code:
exit 255
and you get the same error.
 

The Following User Says Thank You to JonWW For This Useful Post: