Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

2nd attempt to fix lua params

Lua just don't like 0's as param
  • Loading branch information...
commit 3e2e4fa2fb43d80f6f92caec428032e983cf0897 1 parent 5186b4c
android-808 android-808 authored

Showing 2 changed files with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. +4 4 conkycolors/scripts/conkySLS.lua
  2. +1 1  src/conkyrc_sls.c
8 conkycolors/scripts/conkySLS.lua
@@ -888,7 +888,7 @@ function conky_main(color, theme, drawbg, weather_code, battery_value)
888 888 -- BATTERY
889 889 for i=1,2 do
890 890 settings={
891   - value=tonumber(conky_parse("${battery_percent BAT" .. tostring(battery_value) .. "}")),
  891 + value=tonumber(conky_parse("${battery_percent " .. battery_value .. "}")),
892 892 value_max=100 ,
893 893 x=xp , y=yp ,
894 894 divisions=29 ,
@@ -905,7 +905,7 @@ function conky_main(color, theme, drawbg, weather_code, battery_value)
905 905 end
906 906 for i=1,4 do
907 907 settings={
908   - value=tonumber(conky_parse("${battery_percent BAT" .. tostring(battery_value) .. "}")),
  908 + value=tonumber(conky_parse("${battery_percent " .. battery_value .. "}")),
909 909 value_max=100 ,
910 910 x=xp , y=yp ,
911 911 divisions=30 ,
@@ -922,7 +922,7 @@ function conky_main(color, theme, drawbg, weather_code, battery_value)
922 922 end
923 923 for i=1,2 do
924 924 settings={
925   - value=tonumber(conky_parse("${battery_percent BAT" .. tostring(battery_value) .. "}")),
  925 + value=tonumber(conky_parse("${battery_percent " .. battery_value .. "}")),
926 926 value_max=100 ,
927 927 x=xp , y=yp ,
928 928 divisions=29 ,
@@ -938,7 +938,7 @@ function conky_main(color, theme, drawbg, weather_code, battery_value)
938 938 yp = yp + 5
939 939 end
940 940 settings = {
941   - txt=conky_parse("${battery_percent BAT" .. tostring(battery_value) .. "}") .. '%',
  941 + txt=conky_parse("${battery_percent " .. battery_value .. "}") .. '%',
942 942 x=200 , y=235 ,
943 943 txt_weight=1 , txt_size=14 ,
944 944 txt_fg_colour=bgc , txt_fg_alpha=1 ,
2  src/conkyrc_sls.c
@@ -125,7 +125,7 @@ void conkyrc_sls () {
125 125 fprintf(fp,"%s ", weather_code );
126 126
127 127 //BATTERY
128   - fprintf(fp,"%i ", battery_value );
  128 + fprintf(fp,"BAT%i ", battery_value );
129 129
130 130 fprintf(fp,"\n");
131 131 fprintf(fp,"\n");

0 comments on commit 3e2e4fa

Please sign in to comment.
Something went wrong with that request. Please try again.