View Single Post
Win7Mac's Avatar
Community Council | Posts: 664 | Thanked: 1,648 times | Joined on Apr 2012 @ Hamburg
#1003
Originally Posted by fhutt View Post
A signal strength logo or bar would be great. Even better, a status line similar to the status bar at the top of the home screen would be even better.
Originally Posted by fhutt View Post
I actually thought of another wish (fairly important). A flight mode indicator.
Here's a solution for both in one script (signal.sh):
Code:
#!/bin/sh

percent=$(qdbus --system com.nokia.csd /com/nokia/csd/csnet com.nokia.csd.CSNet.SignalStrength.SignalPercent)
tech=$(develsh -c "qdbus --system com.nokia.csd.CSNet /com/nokia/csd/csnet com.nokia.csd.CSNet.RadioAccess.Technology")
if [[ $percent -ge 15 && $tech == "GSM" ]]
then echo -n "{{yellow}}$percent % {{=$(($percent/100)).$((($percent%100)/10))$(($percent%10))}} <</usr/share/themes/blanco/meegotouch/icons/icon-s-status-gsm-yellow2.png>>"
else if [[ $percent -le 14 && $tech == "GSM" ]]
then echo -n "{{red}}$percent % {{=$(($percent/100)).$((($percent%100)/10))$(($percent%10))}} <</usr/share/themes/blanco/meegotouch/icons/icon-s-status-gsm-red.png>>"
fi
fi
if [[ $percent -ge 15 && $tech == "UMTS" ]]
then echo -n "{{yellow}}$percent % {{=$(($percent/100)).$((($percent%100)/10))$(($percent%10))}} <</usr/share/themes/blanco/meegotouch/icons/icon-s-status-3g-yellow.png>>"
else if [[ $percent -le 14 && $tech == "UMTS" ]]
then echo -n "{{red}}$percent % {{=$(($percent/100)).$((($percent%100)/10))$(($percent%10))}} <</usr/share/themes/blanco/meegotouch/icons/icon-s-status-3g-red.png>>"
fi
fi
In Billboard put this line:
Code:
{cell-signal-strength?{script: home/user/signal.sh}}{{red}}{cell-signal-strength!Flightmode on <</usr/share/themes/blanco/meegotouch/icons/icon-s-status-flight-mode-red.png>>}
I edited all of the icons (leave the "-color" for the default icons).

The script updates every couple of seconds so expect a slight increase of battery drain.
__________________
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
 

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