View Single Post
Posts: 277 | Thanked: 319 times | Joined on Jan 2010
#724
Originally Posted by Win7Mac View Post
This works partial. I can't get the " %" after $percent to show up ...
Use echo instead of printf, or use %% with printf to get a single "%".

Originally Posted by Win7Mac View Post
...and when I switch on flightmode it breaks the script and nothing is shown except "}".
This works for me. I have no idea why it doesn't for you.

That's because the {cell-signal-strength} property isn't there when in Flightmode.

To correct it:

{cell-signal-strength?{script: sh signalbar.sh}}{{red}}{cell-signal-strength!Flugmodus an ✈}

You can drop the -1 evaluation from your script, too, if you want.



In case somebody who knows missed this:

Does anyone know how to get the current cellular radio mode (2g or 3g)?

Last edited by slarti; 2013-03-21 at 21:23. Reason: found the reason
 

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