![]() |
2010-11-13
, 08:31
|
Posts: 429 |
Thanked: 217 times |
Joined on Apr 2010
@ Dubai
|
#92
|
[0-9]|1[0-9])color="red";; [2-3][0-9])color="purple";; [4-5][0-9])color="yellow";; [6-7][0-9])color="bblue";; *)color="white";;
![]() |
2010-11-13
, 17:52
|
Posts: 68 |
Thanked: 20 times |
Joined on Jan 2010
@ Chicago
|
#93
|
![]() |
2010-11-13
, 18:29
|
Posts: 429 |
Thanked: 217 times |
Joined on Apr 2010
@ Dubai
|
#94
|
![]() |
2010-11-13
, 22:01
|
Posts: 35 |
Thanked: 4 times |
Joined on Jul 2008
@ São Paulo-Brasil
|
#96
|
![]() |
2010-11-13
, 22:06
|
Posts: 429 |
Thanked: 217 times |
Joined on Apr 2010
@ Dubai
|
#97
|
![]() |
2010-11-15
, 21:08
|
Posts: 306 |
Thanked: 566 times |
Joined on Jan 2010
@ Romania
|
#98
|
there is something i dont get...
what does this mean?
Code:[0-9]|1[0-9])color="red";; [2-3][0-9])color="purple";; [4-5][0-9])color="yellow";; [6-7][0-9])color="bblue";; *)color="white";;
s1="com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_led_pattern_" s3="activate string:Pattern" case `lshal|grep percentage|tr -s " "|cut -d " " -f 4|sort -n|head -1` in [0-9]|1*)color=red;; [2-3]*)color=purple;; [4-5]*)color=yellow;; [6-7]*)color=bblue;; *)color=white;;esac; for somecolor in white bblue yellow purple red; do [ "$color" = "$somecolor" ] && s2="" || s2="de" todo="$s1$s2$s3$somecolor" dbus-send --system --type=method_call --dest=$todo done exit
The Following User Says Thank You to blue_led For This Useful Post: | ||
![]() |
2010-11-16
, 08:10
|
Posts: 429 |
Thanked: 217 times |
Joined on Apr 2010
@ Dubai
|
#99
|
![]() |
Tags |
bakuur, battery, indicator, notification |
|
add word Pattern
convert all variables to strings
corrected IF line
colored lines must be one line
Last edited by blue_led; 2010-11-12 at 23:28.