Lua API

Name | Type | Details
--- | --- | ---
conky_parse(string) | function | This function takes a string that is evaluated as per Conky's TEXT section, and then returns a string with the result.
conky_window | table | This table contains some information about Conky's window. The following table describes the values contained: drawable - Window's drawable (Xlib Drawable), requires Lua extras enabled at compile time. visual - Window's visual (Xlib Visual), requires Lua extras enabled at compile time. display - Window's display (Xlib Display), requires Lua extras enabled at compile time. width - Window width (in pixels). height - Window height (in pixels). border_inner_margin - Window's inner border margin (in pixels). border_outer_margin - Window's outer border margin (in pixels). border_width - Window's border width (in pixels). text_start_x - The x component of the starting coordinate of text drawing. text_start_y - The y component of the starting coordinate of text drawing. text_width - The width of the text drawing region. text_height - The height of the text drawing region. NOTE: This table is only defined when X support is enabled.
conky_build_info | string | A string containing the build info for this particular instance of Conky, including the version, build date, and architecture.
conky_build_date | string | A string containing the build date for this particular instance of Conky.
conky_build_arch | string | A string containing the build architecture for this particular instance of Conky.
conky_version | string | A string containing the version of the current instance of Conky.
conky_config | string | A string containing the path of the current Conky configuration file.