This is a Lua script written with Cairo bindings to display ring meters, just like the CircleMeter adesklet by kurcze. You can customise the size, thickness, placement, colour and transparency of the rings, as well as max value and start and end angles. The meter will work for any combination of "name" and "argument" for which Conky will return a value for ${name argument}. Some examples are ${mem_perc }, ${cpu cpu0}, ${time %H.%M.%S}, etc.
Instructions for customising the rings, and for how to call the script in Conky, are in the script itself.
This package contains a screenie for reference, [link] script, and the widget code block, for use with my Conky Widgets script.
Please note that Cairo bindings for Lua are only available in Conky 1.7.2+.
If you use this script, please leave me a note saying how you've used it!
Changelog: + v1.2 -- Added option for the ending angle of the rings (07.10.2009) + v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009) + v1.0 -- Original release (28.09.2009)
Thanks for this! I used your lua rings example in a small tool for Jboss that helps developers know when a certain kind of memory usage is going critical. Available on github. [link]
could you be so kind and let me know how to use your script? I've put the files ring_wb.txt and rings-v1.2.lua in my home folder (/home/zeitlos./scripts/) and added
[link]
The github project I mentioned is here: [link]
could you be so kind and let me know how to use your script? I've put the files ring_wb.txt and rings-v1.2.lua in my home folder (/home/zeitlos./scripts/) and added
# -- Lua Load -- #
lua_load /home/zeitlos/.scripts/<rings-v1.2.1.lua
lua_draw_hook_pre conky_ring_stats
...to my conky.rc-file. But what else do I have to put in my conky.rc file to get conky work and look like in the screen?
Thanks for your help!
Now, i'll try to customize it...
--
m y . g a l l e r y : [link]
m y . s p a c e : [link]
m y . l a s t f m : [link]