|
2013-03-23
, 17:05
|
|
Posts: 6,436 |
Thanked: 12,701 times |
Joined on Nov 2011
@ Ängelholm, Sweden
|
#732
|
Please share complete script.Code:~ $ develsh ~ $ qdbus --system com.nokia.csd.CSNet /com/nokia/csd/csnet com.nokia.csd.CSNet.RadioAccess.Technology
#!/bin/sh echo -n $(develsh -c "qdbus --system com.nokia.csd.CSNet /com/nokia/csd/csnet com.nokia.csd.CSNet.RadioAccess.Technology")
The Following User Says Thank You to coderus For This Useful Post: | ||
|
2013-03-23
, 20:17
|
|
Posts: 2,021 |
Thanked: 1,060 times |
Joined on Apr 2010
@ Hong Kong
|
#733
|
|
2013-03-23
, 20:45
|
|
Community Council |
Posts: 664 |
Thanked: 1,648 times |
Joined on Apr 2012
@ Hamburg
|
#734
|
#!/bin/sh mode=$(develsh -c "qdbus --system com.nokia.csd.CSNet /com/nokia/csd/csnet com.nokia.csd.CSNet.RadioAccess.Technology") if [[ $mode -e GSM ]] then print "{{yellow}}2G" fi if [[ $mode -e UMTS ]] then print "{{yellow}}3G" fi
|
2013-03-23
, 21:23
|
Posts: 277 |
Thanked: 319 times |
Joined on Jan 2010
|
#735
|
qdbus --system com.nokia.csd.CSNet /com/nokia/csd/csnet com.nokia.csd.CSNet.RadioAccess.SelectionMode
I'm also thinking about a modified script, something like this
Please correct to make it work.Code:#!/bin/sh mode=$(develsh -c "qdbus --system com.nokia.csd.CSNet /com/nokia/csd/csnet com.nokia.csd.CSNet.RadioAccess.Technology") if [[ $mode -e GSM ]] then print "{{yellow}}2G" fi if [[ $mode -e UMTS ]] then print "{{yellow}}3G" fi
#!/bin/sh tech=$(qdbus --system com.nokia.csd.CSNet /com/nokia/csd/csnet com.nokia.csd.CSNet.RadioAccess.Technology) gsm='<</usr/share/themes/blanco/meegotouch/icons/icon-s-status-gsm.png>>' umts='<</usr/share/themes/blanco/meegotouch/icons/icon-s-status-3g.png>>' if [ $tech == "GSM" ] then echo -n $gsm fi if [ $tech == "UMTS" ] then echo -n $umts fi
#!/bin/sh DT=$(qdbus --system com.nokia.csd.CSNet /com/nokia/csd/csnet com.nokia.csd.CSNet.RadioAccess.DataTechnology) NT=$(qdbus --system com.nokia.icd2.context /org/maemo/contextkit/Internet/NetworkType org.maemo.contextkit.Property.Get | sed q) wlan='<</usr/share/themes/blanco/meegotouch/icons/icon-s-status-wlan.png>>' umts='<</usr/share/themes/blanco/meegotouch/icons/icon-s-status-3g.png>>' egprs='<</usr/share/themes/blanco/meegotouch/icons/icon-s-status-25g.png>>' gprs='<</usr/share/themes/blanco/meegotouch/icons/icon-s-status-gsm.png>>' hspa='<</usr/share/themes/blanco/meegotouch/icons/icon-s-status-35g.png>>' 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
|
2013-03-23
, 22:02
|
|
Community Council |
Posts: 664 |
Thanked: 1,648 times |
Joined on Apr 2012
@ Hamburg
|
#736
|
|
2013-03-23
, 22:26
|
|
Posts: 2,021 |
Thanked: 1,060 times |
Joined on Apr 2010
@ Hong Kong
|
#737
|
|
2013-03-24
, 19:33
|
Posts: 239 |
Thanked: 70 times |
Joined on Oct 2010
@ Germany
|
#738
|
|
2013-03-25
, 19:52
|
Posts: 32 |
Thanked: 7 times |
Joined on Apr 2012
@ Panamá
|
#739
|
|
2013-03-26
, 13:10
|
|
Community Council |
Posts: 664 |
Thanked: 1,648 times |
Joined on Apr 2012
@ Hamburg
|
#740
|
#!/bin/sh percent=$(qdbus --system com.nokia.csd /com/nokia/csd/csnet com.nokia.csd.CSNet.SignalStrength.SignalPercent) tech=$(qdbus --system com.nokia.csd.CSNet /com/nokia/csd/csnet com.nokia.csd.CSNet.RadioAccess.Technology) if [[ $percent -ge 20 && $tech == "GSM" ]] then echo -n "{{yellow}}$percent % {{=$(($percent/100)).$((($percent%100)/10))$(($percent%10))}} <</usr/share/themes/blanco/meegotouch/icons/icon-s-status-gsm-yellow.png>>" else if [[ $percent -le 19 && $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 20 && $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 19 && $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
#!/bin/sh DT=$(qdbus --system com.nokia.csd.CSNet /com/nokia/csd/csnet com.nokia.csd.CSNet.RadioAccess.DataTechnology) NT=$(qdbus --system com.nokia.icd2.context /org/maemo/contextkit/Internet/NetworkType 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>>' 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
#!/bin/sh status=$(qdbus --system org.freedesktop.Hal /org/freedesktop/Hal/devices/bme org.freedesktop.Hal.Device.GetProperty battery.charge_level.percentage) if [[ $status -eq 100 ]] then echo -n "{{green}}$status % {{=1.0}}" fi if [[ $status -ge 80 && $status -le 99 ]] then echo -n "{{green}}$status % {{=$(($status/100)).$((($status%100)/10))$(($status%10))}} <</usr/share/themes/blanco/meegotouch/icons/icon-s-status-battery8-green.png>>" fi if [[ $status -ge 70 && $status -le 79 ]] then echo -n "{{green}}$status % {{=$(($status/100)).$((($status%100)/10))$(($status%10))}} <</usr/share/themes/blanco/meegotouch/icons/icon-s-status-battery7-green.png>>" fi if [[ $status -ge 60 && $status -le 69 ]] then echo -n "{{green}}$status % {{=$(($status/100)).$((($status%100)/10))$(($status%10))}} <</usr/share/themes/blanco/meegotouch/icons/icon-s-status-battery6-green.png>>" fi if [[ $status -ge 50 && $status -le 59 ]] then echo -n "{{green}}$status % {{=$(($status/100)).$((($status%100)/10))$(($status%10))}} <</usr/share/themes/blanco/meegotouch/icons/icon-s-status-battery5-green.png>>" fi if [[ $status -ge 40 && $status -le 49 ]] then echo -n "{{green}}$status % {{=$(($status/100)).$((($status%100)/10))$(($status%10))}} <</usr/share/themes/blanco/meegotouch/icons/icon-s-status-battery4-green.png>>" fi if [[ $status -ge 30 && $status -le 39 ]] then echo -n "{{yellow}}$status % {{=$(($status/100)).$((($status%100)/10))$(($status%10))}} <</usr/share/themes/blanco/meegotouch/icons/icon-s-status-battery3-yellow.png>>" fi if [[ $status -ge 20 && $status -le 29 ]] then echo -n "{{yellow}}$status % {{=$(($status/100)).$((($status%100)/10))$(($status%10))}} <</usr/share/themes/blanco/meegotouch/icons/icon-s-status-battery2-yellow.png>>" fi if [[ $status -ge 10 && $status -le 19 ]] then echo -n "{{red}}$status % {{=$(($status/100)).$((($status%100)/10))$(($status%10))}} <</usr/share/themes/blanco/meegotouch/icons/icon-s-status-battery1-red.png>>" fi if [[ $status -ge 1 && $status -le 9 ]] then echo -n "{{red}}$status % {{=$(($status/100)).$((($status%100)/10))$(($status%10))}} <</usr/share/themes/blanco/meegotouch/icons/icon-s-status-battery-low-red.png>>" fi
print ('{{blue}}'+event_date+' '+event_time+' '+title+' '+<</usr/share/themes/blanco/meegotouch/icons/icon-s-calendar.png>>)
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