So, I wanted to make a system by which I (or anyone else) could publish Lua widgets and make it as easy as possible to build them into Conky. Ive come up with a simple Lua script into which you can drop widget code blocks, some simple configuration info, and display them all with just a single call in Conky. That way, you only need one .conkyrc and one conky_widgets.lua script for all your widgety needs!
The .tar.gz file attached contains the basic Conky Widgets script; you will need one or more code blocks to make it work. For more info, please see the Conky Blog:
[link]The screenshot preview was created using a combination of my "Air" clock and four semi-circle rings. The widget code blocks for those widgets are contained in the packages below:
+
[link]+
[link]Changelog:
+ v1.1 -- Simplified calls to widgets by implementing a global drawing surface, and included imlib2 by default (03.11.2009)
+ v1.0 -- Original release (30.10.2009)
To fix this I just copy/pasted the entire clockwise ring function and only changed
cairo_arc(cr,xc,yc,r,angle_0,angle_0+pct_arc)
to
cairo_arc(cr,xc,yc,r,angle_f-pct_arc,angle_f)
(Just the first line after "-- Draw indicator ring"). It now functions exactly as a counter-clockwise ring should, but with the same start and end definitions as the clockwise rings. That is, where the indicator bar is attached is the end angle, which still needs to be more positive than the start angle.
Also, thanks for the work you've done, I love it!