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:
conkyIf 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.confRun 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.conf3. 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.confA 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.configcontrols how Conky runs and looks. Put settings inside{ }asname = valuepairs separated by commas. Quote text values like'top_right', but not numbers ortrueandfalse.own_window = truegives the widget its own window, andupdate_interval = 1refreshes it every second.conky.textcontrols what the widget displays. Put labels and line breaks between[[and]]. Conky replaces variables like$cpuwith 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
- Configuration settings: change placement, fonts, and colors.
- Variables: find more readings, bars, and graphs to add.
- Lua API: draw custom graphics and extend Conky with Lua scripts.
Only run configurations you trust. A Conky configuration can run commands on your computer.