Thread
:
[Support thread] Billboard Standby Screen
View Single Post
Boxeri
2013-01-08 , 18:38
Posts: 498 | Thanked: 836 times | Joined on Jun 2012 @ Finland
#
459
Hi
I would like to use the "color-battery-bar" property in such a way, that it would change color when battery level goes below 30%. I have tried to find it out myself, but as I know absolutely nothing about coding this is not easy.
I tried with
http://docs.python.org/2/tutorial/
and came up with idea of using an IF-statement. But I can't make it to work, maybe somebody could help me? I am way too lost here...
if [ {color-battery-bar} {battery} >30 ]
then
echo {{green}}"%"
else
echo {{red}}"%"
Quote & Reply
|
Boxeri
View Public Profile
Send a private message to Boxeri
Find all posts by Boxeri