Conky clock and stats configuration

Conky is a really cool application able to display whatever info you throw at it, being that your CPU usage stats, free/used storage space, how many emails are in your inbox, if there are any updates available for you package manager, etc.

Previously, I have shown you how to configure openbox to get a real minimal desktop that its fast, lightweight and functional.

One thing missing on that page was some stats of the running system as well as a pretty clock, in this post I am going to show you how to put a conky-powered big and pretty desktop clock along with some info about your system and email/updates.

First off, if you don’t have conky, install it

sudo pacman -S conky

This is assuming you are using ArchLinux, if you are on other distro, just use your distro package manager to install the package.

Ok to start, take this file and extract it on your home folder (NOT in any directory, all files should be in /home/youruser)

Important note, conky configuration file is ~/.conky/.conkyrc, BUT WE ARE NOT GOING TO USE OR EDIT THAT file, we are going to use the ones provided in the above file for the stats and email/package updates, and another one for the clock. Later on this post I will show you how to make conky use another file different from the default one.

In order to check gmail, you need to edit the python script (gmail.py, provided in compressed file above), note that you have to input your username and password there.

Next open the file called conkyrc_archlinux¬† and on the line just after “TEXT” replace the path there with your own home folder.

Now to test it just type:

conky -c conkyrc_archlinux

on a terminal and your brand new widget will display some useful info in a very stylish format.

Next will be the clock, open the file called conkyrcclock, then replace all instances of /home/myuser with your own home path.

Now you should have everything setup and would need to just run your new conky clock configuration, go ahead and type in a terminal:

conky -c conkyrcclock

This will bring up the clock. The -c switch tells conky to use the specified configuration file (conkyrcclock) and not the default one (.conkyrc). So you should now have 2 conky instances running on your system (don’t worry, memory footprint is VERY small).

Now last step would be to add this 2 conky instances to your autostart so they open up as soon as you login.

If you have gnome/kde you have a GUI for this in your system settings page. For openbox you have to edit the autostart.sh located at ~/.config/openbox/autostart.sh and add the following:

conky -c conkyrc_archlinux &

conky -c conkyclockrc &

Here are a couple of screenshots, this is an openbox desktop, if you want a similar openbox desktop you can follow my openbox configuration guide:

2011 08 09 012558 1920x1080 scrot 150x150 Conky clock and stats configuration2011 08 09 013012 1920x1080 scrot 150x150 Conky clock and stats configuration

 

Have fun with your new widgets! If you have a question just ask in the comments below

 

 

2 Responses to “Conky clock and stats configuration”

  1. The file is corrupt in some way- its named .bz2, but shows as a zip file. Neither tar or unzip were willing to open it;
    tar -jxvf conkyconfigs.bz2
    tar: This does not look like a tar archive
    tar: Skipping to next header
    tar: Exiting with failure status due to previous errors

    unzip conkyconfigs.bz2
    Archive: conkyconfigs.bz2
    End-of-central-directory signature not found. Either this file is not
    a zipfile, or it constitutes one disk of a multi-part archive. In the
    latter case the central directory and zipfile comment will be found on
    the last disk(s) of this archive.
    unzip: cannot find zipfile directory in one of conkyconfigs.bz2 or
    conkyconfigs.bz2.zip, and cannot find conkyconfigs.bz2.ZIP, period.

Leave a Reply