helmuthdu/conky_colors — pull request #25 by android-808 (2012-09-27 13:33:28+00:00)
Title: Fixes for #17 & #23

Firstly #23:
As correctly identified by jdarnold, the same values were being sent to conkyYahooWeater in default mode, regardless of the --unit=X parameter. This fixes that by changing the last parameter from c to f when units=true

#17:
Unfortunately this one is a bit of a mess. The code itself is OK, the commit log is a bit of mess. Serves me right for not checking diff correctly before uploading, resulting in much wasted time. Basically it modifies the generated conkyrc in SLS mode to provide another value to the main function in conkySLS.lua specifying which battery to use. It works OK when using BAT0, need someone to test with different battery values.

There is room for improvement in the second fix. The generated battery string could be created and stored in a local value at the beginning of the battery section and then just referenced where needed to avoid an allocation & assignment everywhere it is used.