Quick start

Install Conky, save a starter config, and build your first desktop widget.

Conky is a lightweight system monitor that shows live information on your desktop. Keep a clock, CPU and memory usage, disk space, or network activity in view. A plain text file controls what appears as text, bars, or graphs and how the widget looks.

1. Install and run Conky

Install Conky with your Linux distribution's package manager. On Debian or Ubuntu, run sudo apt install conky. If you're using the AppImage instead, make it executable and use its path in place of conky in the commands below.

Open a terminal on your desktop and run:

conky

If you don't see the widget, move or minimize the terminal in case it's covering it. Desktop output requires a build with X11 or Wayland support. Press Ctrl+C in the terminal to stop Conky.

2. Save a copy of the built-in configuration

Export the built-in configuration to a separate file so you can read or edit it without touching your usual setup. If default.conf already exists, choose a different filename: > replaces any existing file at that path.

mkdir -p ~/.config/conky
conky --print-config > ~/.config/conky/default.conf

Run Conky with the copy by passing its path to -c. If your build doesn't support --print-config, skip to the next step.

conky -c ~/.config/conky/default.conf

3. Build a small widget

Stop Conky, then create a new file called ~/.config/conky/first-widget.conf in a text editor. Paste in this configuration and save it:

conky.config = {
  own_window = true,
  alignment = 'top_right',
  update_interval = 1,
}

conky.text = [[
Clock: ${time %H:%M}
CPU: $cpu%
Memory: $mem / $memmax ${membar 6}
]]

Run your new widget:

conky -c ~/.config/conky/first-widget.conf

A Conky configuration is a Lua file, but you don't need to program in Lua to edit these two parts. In the settings, lines starting with -- are comments.

  • conky.config controls how Conky runs and looks. Put settings inside { } as name = value pairs separated by commas. Quote text values like 'top_right', but not numbers or true and false. own_window = true gives the widget its own window, and update_interval = 1 refreshes it every second.
  • conky.text controls what the widget displays. Put labels and line breaks between [[ and ]]. Conky replaces variables like $cpu with live values and leaves surrounding text, such as the % after $cpu, as written. Use ${name arguments} when a variable takes arguments: ${time %H:%M} shows hours and minutes, and ${membar 6} draws a memory bar 6 pixels high.

Try changing update_interval to 2 and adding Disk: ${fs_used /} on a new line before ]]. Save and restart Conky with the same -c command. The widget now updates every two seconds and shows the space used on the filesystem mounted at /.

Without -c, Conky looks for ~/.config/conky/conky.conf first. Save your widget to that path to use it by default. If conky.conf already exists, back it up before replacing it.

Where to go next

Only run configurations you trust. A Conky configuration can run commands on your computer.