This is a list of Conky's global configuration options. These belong in the
conky.config section of your configuration file, before conky.text.
The default configuration file location is ~/.config/conky/conky.conf or
${sysconfdir}/conky/conky.conf. On most systems, $sysconfdir is /etc,
and you can find the sample config file there in
/etc/conky/conky.conf.
Copy the sample configuration to ~/.config/conky/conky.conf to customize
it. The wiki has more example configurations.
Optional arguments are generally denoted with parentheses, for example
(optional).
Predefine a color for use inside conky.text segments.
Replace N with a digit between 0 and 9, inclusive. When specifying
the color value in hex, omit the leading #.
A comma-separated list of strings to use as the bars in a graph rendered
to the console or shell. The first list item is used for the minimum bar
height and the last item is used for the maximum, for example
",_,=,#".
Specify a default width for bars. If not specified, the
default value is 0, which causes the bar to expand to fit the width of
your Conky window. With a text-only backend (e.g.
output_backend= 'console') the default value
will be 10 for the text version of the bar.
Specify a default width for graphs. If not specified, the
default value is 0, which causes the graph to expand to fit the width
of your Conky window. With a text-only backend (e.g.
output_backend= 'console') the text
version of the graph will actually have no width and you will need to
set a sensible default or set the height and width of each graph
individually.
Specify a display to connect to. On X11, this is an X display string
(e.g. ":0"). On Wayland, this can be a wl_output name (e.g. "DP-2"),
output description, 0-based output index, an absolute socket path, or
"wayland-N"/":N" with an optional ".output" selector (e.g.
"wayland-0.DP-2" or ":0.1"); custom relative socket names can be set via
WAYLAND_DISPLAY. Output placement on Wayland requires wlr-layer-shell.
For Wayland layer surfaces, if the selected output disappears, Conky
lets the compositor choose an output. When the original output
reappears, Conky requests it again.
Boolean, blend when rendering drawn image? Some images blend
incorrectly breaking alpha with ARBG visuals. This provides a possible
work around by disabling blending.
If enabled, values which are in bytes will be printed in
human readable format (i.e., KiB, MiB, etc). If disabled, the number
of bytes is printed instead.
Minimum interval in seconds between shared file system statistics updates
for the fs_* variables. Accepts finite, nonnegative numbers, including
fractional seconds. Set to 0 to refresh on every Conky update.
Refreshes happen on the first Conky update at or after the interval has
elapsed, so they cannot run faster than update_interval
(or update_interval_on_battery when active).
For example, an interval of 5 with an update_interval of 3 normally refreshes
every 6 seconds. Newly referenced paths are read immediately.
Lower values increase file system polling and may delay updates on slow
or network file systems. The default preserves the 13-second interval.
Gap, in pixels, between right or left border of screen, same
as passing -x at command line, e.g. gap_x 10. For other position
related stuff, see alignment.
Gap, in pixels, between top or bottom border of screen, same
as passing -y at command line, e.g. gap_y 10. For other position
related stuff, see alignment.
How strict should if_up be when testing an interface for
being up? The value is one of up (default), link or address, to check for the
interface being solely up, being up and having link or being up,
having link and an assigned IP address.
Defaultup
imap=hostuserpass-i interval (in seconds)-f 'folder'-p port-e 'command'-r retries
Default global IMAP server. Default port is 143, default folder is 'INBOX',
default interval is 5 minutes, and default number of retries before giving
up is 5. If the password is supplied as '*', you will be prompted to enter
the password when Conky starts.
Runs for each request when output_backend is
set to 'http'. Return a table with a body string, an optional
status number (default: 200), and an optional headers table
mapping header names to values. If the hook is unset or returns an
unusable value, Conky serves its default HTML page.
Conky adds the conky_ prefix to function_name if it is missing.
List of Lua script paths to load at startup in order to provide Lua
functions for other hooks. Listed files are loaded (executed) before
'lua_startup_hook' and can (but shouldn't) run code in global scope.
Paths are ';' (semicolon) separated, and can be relative to the config
file path, or absolute.
The paths were previously ' ' (space) separated, this functionality is
still supported if ';' isn't found, but is deprecated and will be removed
in future versions. Empty paths are skipped so './example file.lua;' is
valid.
This function, if defined, will be called by Conky upon receiving mouse
events from X or Wayland. A table containing event information will be
passed to this function as the first argument. Use this hook for detecting
mouse input and acting on it. Conky requires that the function declaration
has a 'conky_' prefix to prevent accidental calls to the wrong function.
Wayland layer surfaces pass pointer input through to whatever is beneath
them when no mouse hook is configured. Regular Wayland toplevels keep
their normal input behavior.
This function, if defined, will be called by Conky at
shutdown or when the configuration is reloaded. Use this hook to clean
up after yourself, such as freeing memory which has been allocated by
external libraries via Lua. Conky puts 'conky_' in front of
function_name to prevent accidental calls to the wrong function unless
you place 'conky_' in front of it yourself.
This function, if defined, will be called by Conky at
startup or when the configuration is reloaded. Use this hook to
initialize values, or for any run-once applications. Conky puts
'conky_' in front of function_name to prevent accidental calls to the
wrong function unless you place 'conky_' in front of it yourself.
When a line in the output contains 'width' chars and the end
isn't reached, the next char will start on a new line. If you want to
make sure that lines don't get broken, set 'width' to 0.
Valid backends are x11, wayland, ncurses, http, console, and
file; availability of each depends on compile-time options.
Only one primary backend (x11, wayland, or ncurses) is active at a
time. When several are requested, Conky keeps the one best suited to the
current session: wayland under a Wayland compositor, x11 under X11 or
XWayland.
The non-primary backends http, console (stdout), and file may be
combined freely with a primary backend.
When unset, Conky infers a sensible backend from the session environment.
This replaces the deprecated out_to_x, out_to_wayland,
out_to_ncurses, out_to_http, and out_to_console settings, which
remain accepted for backwards compatibility.
Run conky --doctor with a trusted configuration to see which backends
Conky would try and which requested backends are missing from the build.
The report does not verify that a backend can initialize.
Set the background colour of the window. Takes a hex value with
optional alpha (e.g. '#fff', '#8000', '#8fff'), or a valid
RGB name (see /usr/lib/X11/rgb.txt).
The alpha channel controls background opacity. For example, '#0000'
is fully transparent and '#f000' is fully opaque black.
An 8-digit value uses the #AARRGGBB form (alpha first), e.g.
'#E6000000' for ~90% opaque black. Note this differs from the CSS
#RRGGBBAA order; writing '#000000E6' would set alpha to 0.
Semi-transparent backgrounds require a compositor on X11.
If own_window is set, you may specify comma separated window
manager hints to affect the way Conky displays.
Following hints are some of the standard WM specification ones:
above indicates that conky should be on top of most windows.
below indicates that conky should be below most windows.
skip_pager indicates that conky should not be included on a
Pager. Implied ifown_window_type is 'dock' or 'panel'.
skip_taskbar indicates that conky should not be included on a
taskbar. Implied ifown_window_type is 'dock' or 'panel'.
sticky indicates that the Window Manager SHOULD keep conky's
position fixed on the screen, even when the virtual desktop scrolls.
undecorated indicates that conky shouldn't have any window
decorations (e.g. title bar). Implied ifown_window_type is
'dock' or 'panel'.
Notes:
Use own_window_type='desktop' setting as another way to implement many of these hints implicitly.
If you use own_window_type='override', window manager hints have no meaning and are ignored.
Under Wayland these hints are translated to a wlr-layer-shell placement
(the compositor must support that protocol). A normal or utility
window that would otherwise be a regular toplevel is instead mounted as
a layer surface when any of below, above or sticky is set:
below/above pick the bottom/top layer, while sticky (shown across
all workspaces), skip_taskbar and skip_pager are intrinsic to layer
surfaces. undecorated is implicit since layer surfaces are never
decorated.
Boolean, X11 only. If set, the window's input region is rebuilt after
every frame from the alpha channel of what was drawn, so clicks on
fully transparent pixels fall through to the window underneath, while
text and graphics still receive clicks. The region is built from
4x4 pixel cells, so gaps between glyphs stay clickable.
Requires own_window, double_buffer,
an ARGB visual (a compositing window manager), a build with Xshape
support and server SHAPE version 1.1 or newer. If a requirement is
unavailable, the normal window input policy is preserved and a warning
is logged once.
Use a fully transparent own_window_color
(e.g. '#0000'), otherwise the whole window counts as opaque.
This makes otherwise click-through undecorated windows interactive,
e.g. for lua_mouse_hook or dragging with the window manager.
Disabling this option restores the normal input policy. A reload that
newly needs an available ARGB visual recreates an existing opaque window.
Set the wlr-layer-shell namespace of the Wayland window. Compositors
such as KWin classify the surface from this (lowercased); KWin
recognizes 'desktop', 'dock', 'notification', 'tooltip',
'on-screen-display', 'dialog', 'splash' and 'utility'. Other values
are treated as a normal window. When unset, 'conky' is used. To keep
conky visible during Show Desktop while staying above the wallpaper,
set this to 'desktop' and keep own_window_type
at 'normal'. On KDE Plasma, 'dock' is elevated by the slide effect
(shouldElevate() in slide.cpp) while switching virtual desktops,
so 'desktop' keeps conky in the background throughout.
Specifies the type of window conky is displayed as. Under X11 this
requires own_window to be set; under Wayland it selects the
wlr-layer-shell layer the surface is mounted on (and, for dock/panel,
whether it reserves screen space via an exclusive zone). Available types:
normal mode makes conky show as normal window. This mode can be
configured with use of own_window_hints setting.
desktop windows are special windows that have no window decorations,
are always visible on the desktop, do not appear in pager or taskbar,
and are sticky across all workspaces. Many DEs include desktop windows
for background, icons and desktop menu, in those cases it might be
better to use normal or one of the below options, as those will cover
conky when they're clicked on.
dock windows are placed on screen edges. They're the same as desktop
in most respects, but render on top of desktop windows and below
normal ones. Conky doesn't define struts for this window type, but
some WMs might still implicitly avoid placing windows on top of it.
panel windows are similar to dock windows, but they also reserve
space along a workarea edge (like taskbars), preventing maximized
windows from overlapping them. The edge is chosen based on final conky
position and size, and workarea dimensions, to ensure normal windows
have most free space available. For WMs that "cut out" entirely covered
screens from reserved area, the edge will be chosen based on alignment
setting. On X11, window managers supporting _GNOME_WM_STRUT_AREA
(such as recent Marco and Metacity) can reserve an internal monitor
edge without blocking adjacent monitors. The panel must fit within
one monitor; small gaps to the nearest edge are included. Other
window managers retain the EWMH strut behavior, which may reserve
additional space at internal edges.
Under Wayland the reserved edge is always derived from
alignment; a fully centered (mm) alignment has no edge to reserve
against, so use an edge-aligned value (e.g. tm, bm, ml, mr).
utility windows are persistent utility windows (e.g. a palette or
toolbox). They appear on top of other windows (in the same group), but
otherwise behave much like normal windows.
override windows are drawn directly on root window (desktop
background) and are not under the control of the window manager. These
will not work with DEs which draw desktop icons via custom
panels/windows as those will cover conky.
own_window_hints are ignored for override windows.
Semi-transparent backgrounds do not work with override windows
because compositors typically do not composite override-redirect
windows. Full transparency (alpha 0) may work via pseudo-transparency.
To make conky mount on root window, set own_window to false.
Minimum field width for percentage values when
use_spacer is left or right. Values are still
printed as whole numbers (%u); there are no fractional decimals.
When spacer alignment is enabled, width is at least 3 so that
1/10/100 align. 0 means no extra width beyond that minimum
(or no padding at all when use_spacer is none).
pop3=hostuserpass-i interval (in seconds)-p port-e 'command'-r retries
Default global POP3 server. Arguments are: host user pass [-i interval (in seconds)] [-p port] [-e 'command'] [-r retries].
Default port is 110, default interval is 5 minutes, and default number
of retries before giving up is 5. If the password is supplied as '*',
you will be prompted to enter the password when Conky starts.
Define a template for later use inside conky.text segments.
Substitute N by a digit between 0 and 9, inclusively. The value of the
variable is being inserted into the stuff inside conky.text at the
corresponding position, but before some substitutions are applied:
Size of the standard text buffer in bytes.
This buffer is used for intermediary text, such as individual lines,
output from $exec vars, and various other variables. Increasing the
size of this buffer can drastically reduce Conky's performance, but
will allow for more text display per variable. The size of this buffer
cannot be smaller than the default value of 256 bytes.
Adds spaces around certain objects to stop them from moving
other things around. May be none (default) or left or right.
The old true/false values are deprecated and default to right/none
respectively. Note that this only helps if you are using a mono font,
such as Bitstream Vera Sans Mono.
Select a monitor by its zero-based index on X11. With RandR 1.5 or later,
if that monitor disappears, Conky uses an available monitor. It returns
to the original monitor when it reappears, even if its index has changed.