changes related to temperature and layout
[monky] / lua_scripts / text.lua
index ad81b99..f8415b8 100644 (file)
@@ -92,12 +92,23 @@ function conky_draw_text()
                                bold=true,
                                font_name="Nokia Pure",
                                h_align="r",
-                               x=800,
+                               x=850,
                                y=15,
                                reflection_alpha=0,
                                reflection_length=0,
                                colour={{0,col0,0.75},{1,colbg,0.75}},
-
+               },
+               {
+                               text="Conky v"..conky_parse("$conky_version").." - Lance Colton",
+                               font_size=16,
+                               bold=true,
+                               font_name="Nokia Pure",
+                               h_align="r",
+                               x=850,
+                               y=28,
+                               reflection_alpha=0,
+                               reflection_length=0,
+                               colour={{0,col0,0.75},{1,colbg,0.75}},
                }, 
                {
                                text=conky_parse("$freq MHz"),
@@ -115,7 +126,7 @@ function conky_draw_text()
                },
                {
                    text=conky_parse("${battery_temp}").."\194\176",--yes i had to do the degree symbol like that...
-                       x=794,
+                    x=845,
                    y=69,
                    v_align="m",
                    h_align="r",
@@ -125,10 +136,23 @@ function conky_draw_text()
                                orientation="nn",
                reflection_alpha=0,
                reflection_length=0,                    
-        }, 
+        },
+               {
+                   text=conky_parse("${battery_rate}mA"),
+                    x=750,
+                   y=69,
+                   v_align="m",
+                   h_align="l",
+                   font_name="Nokia Pure",
+                   font_size=14,
+                       colour={{0,col0,1},{0.5,colbg,1}},
+                               orientation="nn",
+               reflection_alpha=0,
+               reflection_length=0,                    
+        },
                {
-                   text=conky_parse("${battery_short} ${battery_volts}mV"),
-                       x=794,
+                   text=conky_parse("${battery_short}   ${battery_volts}mV"),
+                    x=845,
                    y=45,
                    v_align="m",
                    h_align="r",
@@ -153,7 +177,7 @@ function conky_draw_text()
         {
                    text=conky_parse('${cpu}').."%",
                        x=223,
-                   y=65,
+                   y=67,
                    v_align="t",
                    h_align="l",
                    font_name="Nokia Pure",
@@ -164,9 +188,9 @@ function conky_draw_text()
                reflection_length=0,                    
         },  
         {
-                   text=conky_parse('${memperc}').."%",
+                   text=conky_parse('${memperc}').."% RAM",
                    x=223,
-                   y=91,
+                   y=101,
                    v_align="t",
                    font_name="Nokia Pure",
                    font_size=18,
@@ -178,7 +202,7 @@ function conky_draw_text()
         {
                    text=conky_parse('${fs_used /} / ${fs_size /} (${fs_free /})'),
                    x=5,
-                   y=115,
+                   y=125,
                    v_align="t",
                    font_name="Nokia Pure",
                    font_size=16,
@@ -190,7 +214,7 @@ function conky_draw_text()
         {
                    text="/",
                    x=220,
-                   y=114,
+                   y=124,
                    v_align="t",
                    font_name="Nokia Pure",
                    font_size=18,
@@ -203,7 +227,7 @@ function conky_draw_text()
         {
                    text=conky_parse('${fs_used /home} / ${fs_size /home} (${fs_free /home})'),
                    x=5,
-                   y=135,
+                   y=145,
                    v_align="t",
                    font_name="Nokia Pure",
                    font_size=16,
@@ -215,7 +239,7 @@ function conky_draw_text()
         {
                    text="/home",
                    x=220,
-                   y=134,
+                   y=144,
                    v_align="t",
                    font_name="Nokia Pure",
                    font_size=18,
@@ -228,7 +252,7 @@ function conky_draw_text()
         {
                    text=conky_parse('${fs_used /home/user/MyDocs} / ${fs_size /home/user/MyDocs} (${fs_free /home/user/MyDocs})'),
                    x=5,
-                   y=155,
+                   y=165,
                    v_align="t",
                    font_name="Nokia Pure",
                    font_size=16,
@@ -241,7 +265,7 @@ function conky_draw_text()
         {
                    text="MyDocs",
                    x=220,
-                   y=154,
+                   y=164,
                    v_align="t",
                    font_name="Nokia Pure",
                    font_size=18,
@@ -251,8 +275,35 @@ function conky_draw_text()
                                reflection_alpha=0,
                                reflection_length=0,
                                DrawMe=conky_parse("${if_mounted /home/user/MyDocs}1$endif")
+        },        
+        {
+                   text="DiskIO",
+                   x=520,
+                   y=101,
+                   v_align="t",
+                   font_name="Nokia Pure",
+                   font_size=18,
+                       colour={{0,0xcc6600,1},{1,col0,1}},
+                       bold=true,
+                               orientation="ww",
+                               reflection_alpha=0,
+                               reflection_length=0,
+        },
+        {
+                   text="Charge Rate",
+                   x=720,
+                   y=101,
+                   v_align="t",
+                   font_name="Nokia Pure",
+                   font_size=18,
+                       colour={{0,0xFF0000,1},{1,col0,1}},
+                       bold=true,
+                               orientation="ww",
+                               reflection_alpha=0,
+                               reflection_length=0,
         },
- --[[       {
+        
+ --[[   {
                    text=conky_parse('${fs_used /media/mmc1} / ${fs_size /media/mmc1} (${fs_free /media/mmc1})'),
                    x=5,
                    y=175,
@@ -282,8 +333,8 @@ function conky_draw_text()
                ]]
         {
                    text=conky_parse('${wireless_essid wlan0}'),
-                       x=375,
-                   y=201,
+                       x=427,
+                   y=202,
                    h_align="c",
                    v_align="m",
                    font_name="Nokia Pure",
@@ -296,9 +347,9 @@ function conky_draw_text()
         },
         {
                    text="GPRS",
-                       x=430,
+                       x=427,
                    y=201,
-                   h_align="l",
+                   h_align="c",
                    v_align="m",
                    font_name="Nokia Pure",
                    font_size=18,
@@ -310,9 +361,9 @@ function conky_draw_text()
         },
         {
                    text=conky_parse('${wireless_link_qual_perc wlan0}')..'%',
-                       x=400,
-                   y=228,
-                   h_align="l",
+                       x=427,
+                   y=226,
+                   h_align="c",
                    v_align="m",
                    font_name="Nokia Pure",
                    font_size=14,