View Single Post
Win7Mac's Avatar
Community Council | Posts: 664 | Thanked: 1,648 times | Joined on Apr 2012 @ Hamburg
#762
Originally Posted by thp View Post
You can't nest {} like that in Billboard. I'll see what I can do for future versions. You can work around that by doing the checking in the script.
As {cell-signal-strength} gets updated most often in BB, it'd be nice to be able to tie any script to it.
Calling it via script only like in 1.0.7 doesn't update that often.

Originally Posted by slarti View Post
It does work when the property is not empty.
There really is no such thing as calling an empty state of a service?

So I merged {network-name} into data-mode.sh and have a strange output... when no network present:

With this script
Code:
#!/bin/sh

DT=$(develsh -c "qdbus --system com.nokia.csd.CSNet /com/nokia/csd/csnet com.nokia.csd.CSNet.RadioAccess.DataTechnology")
NT=$(develsh -c "qdbus --system com.nokia.icd2.context /org/maemo/contextkit/Internet/NetworkType org.maemo.contextkit.Property.Get | sed q")
NN=$(develsh -c "qdbus --system com.nokia.icd2.context /org/maemo/contextkit/Internet/NetworkName org.maemo.contextkit.Property.Get | sed q")
wlan='<</usr/share/themes/blanco/meegotouch/icons/icon-s-status-wlan-cyan.png>>'
umts='<</usr/share/themes/blanco/meegotouch/icons/icon-s-status-3g-yellow.png>>'
egprs='<</usr/share/themes/blanco/meegotouch/icons/icon-s-status-25g-yellow.png>>'
gprs='<</usr/share/themes/blanco/meegotouch/icons/icon-s-status-gsm-red.png>>'
hspa='<</usr/share/themes/blanco/meegotouch/icons/icon-s-status-35g-green.png>>'
echo -n "$NN "
if [ $NT == "WLAN" ]
then echo -n $wlan
else if [ $DT == "GPRS" ]
then echo -n $gprs
else if [ $DT == "EGPRS" ]
then echo -n $egprs
else if [ $DT == "UMTS" ]
then echo -n $umts
else if [ $DT == "HSPA" ]
then echo -n $hspa
fi
fi
fi
fi
fi
So what workaround, put a dummy dbus service and adjust the output of it?


Also, I wonder what happens with shades of a color in LPM, like here:
Attached Images
 
__________________
Nokia 5110 > 3310 > 6230 > N70 > N9 BLACK 64GB
Hildon Foundation Board member
Maemo Community e.V. co-creator, founder and director since Q4/2016
Current Maemo Community Council member

Last edited by Win7Mac; 2013-03-28 at 11:44.