Conky Desktop Widget for Raspberry Pi

So what is Conky? Conky is a free, light-weight system monitor for X, that displays any kind of information on your desktop and works on Raspberry Pi. It is highly configurable and is able to monitor many system variables including the status of the CPU, memory, swap space, disk storage, temperatures, processes, and much more.

Features:

Conky can display more than 300 built-in objects, including support for:

  • A plethora of OS stats (uname, uptime, CPU usagemem usage, disk usage, “top” like process stats, and network monitoring, just to name a few).
  • Built-in IMAP and POP3 support.
  • Built-in support for many popular music players (MPDXMMS2BMPxAudacious).
  • Can be extended using built-in Lua support, or any of your own scripts and programs (more).
  • Built-in Imlib2 and Cairo bindings for arbitrary drawing with Lua (more).
  • Runs on Linux, FreeBSD, OpenBSD, DragonFlyBSD, NetBSD, Solaris, Haiku OS, and macOS and much much more.

There is a great installation guide over at Nova Spirit Tech. I have copied it for your convenience below.

How to Install Conky:

I am sorry to say that there is no GUI install for Conky so we are going to have it install it from the command line. Open a terminal window and copy and paste the BLUE CODE below:

sudo apt-get install conky -y

Now download the conky configuration file

wget -O /home/pi/.conkyrc https://raw.githubusercontent.com/novaspirit/rpi_conky/master/rpi3_conkyrc

To autostart conky on boot we will need to create 2 files:

1. will be a shell script to delay the boot process of conky.

2. will be the conky desktop files to allow lxdesktop to start the shell script

To create the shell script

sudo nano /usr/bin/conky.sh

Paste this into the conky.sh file

#!/bin/sh
(sleep 4s && conky) &
exit 0

Now create the conky.desktop file for the autostart process

sudo nano /etc/xdg/autostart/conky.desktop

Then paste this into the file

[Desktop Entry]
Name=conky
Type=Application
Exec=sh /usr/bin/conky.sh
Terminal=false
Comment=system monitoring tool.
Categories=Utility;

The last thing to do is to reboot to make sure everything is working. As you can see from the following picture it is!

I have included the video below for your step by step installation. In the above picture, I installed it on my Raspberry Pi 3B+. In the video below I installed it on my Raspberry Pi Zero WH.