View Single Post
Win7Mac's Avatar
Community Council | Posts: 664 | Thanked: 1,648 times | Joined on Apr 2012 @ Hamburg
#756
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 and removing the {network-name? } around it.
Ok, then I'm back to something like this for signal-strength
Code:
#!/bin/sh

percent=$(qdbus --system com.nokia.csd /com/nokia/csd/csnet com.nokia.csd.CSNet.SignalStrength.SignalPercent)
if [ $percent -eq -1 ]; then echo -n "{{red}}Flugmodus an ✈"; fi
if [ $percent -ge 20 ]; then echo -n "{{yellow}}$percent % {{=$(($percent/100)).$((($percent%100)/10))$(($percent%10))}}"; fi
if [ $percent -le 19 && -ge 1 ]; then echo -n "{{red}}$percent % {{=$(($percent/100)).$((($percent%100)/10))$(($percent%10))}}"; fi
But it doesn't update as often, how can that be achieved?

And how do I call network-name with a script?
__________________
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