Linux has a wealth of utilities to help you monitor what your system is up to. You can run commands, use the proc file system and get the exact state of your system. All this information is of little use if you cannot display it efficiently. You would need a system monitor right?
Well let’s take a look at one of my favorite Linux system monitor apps on my system, a system monitor unmatched and unsurpassed by any other when it comes to customization and features. It’s called Conky.
Conky can display the stats and information on your desktop or within another window, but trust me, you would want to display it on your desktop!
Here are some screenshots of Conky displaying information to give you an idea of what can be achieved with this app.
Look in your distributions package manager to install Conky. Most likely it is in there, if not head over to the Conky download page.
Once installed you can run Conky via the terminal and it will give you a default look containing a bunch of stats. While it is plenty of information, this is not what we are looking for. Let’s begin customizing the looks, shall we?
Customizing Conky comes down to the contents of a configuration file contained in your home directory – “.conkyrc”. Open it up in your preferred text editor. Things get a little geeky here, so you might want to read this part again if you fail to get a point. While I will try my best to explain what to include in conkyrc, it is not possible to list every option that Conky offers, just because there are a hell of a lot of them!
The .conkyrc has two major sections: The first would control what Conky looks like and the second tells it what to display.
Add the following text to the file to create a basic configuration:
The part of the file before “TEXT” specifies the appearance of the monitor and any thing after “TEXT” is displayed on your monitor either as it is or interpreted as a command or a special conky name which expands to something useful.
The various options used so far are self explanatory. “own_window_type desktop” is what makes Conky draw on your desktop and “own_window_transparent yes” makes the background transparent. Try removing any of these and restart Conky to see what effect it has.
“time” is a built in Conky object that gives you the current system time. Refer to the manual for more of such objects. Running Conky at this point will display the time in the lower right corner of the screen (you might have to minimize all windows).
So far so good, but hardly the awesomeness factor we were looking for. If you are new to Conky I would suggest fetching some example configuration files, try them and see which ones are closest to what you are going for. Then you can begin editing it and customize it to death!
Conky supports many built in objects that you can add to your conkyrc file. These include the so-called variables, like time which we used above, built in graphs and some widgets. You can use these built in objects to display usage statistics such as text or graphs, display the current track and a variety of other things.
You also get full control over the font and colors used to display the text so you can match them with your wallpaper. If you find something missing, well you can run an external command and have its output displayed in the monitor. Coupled with the power of shell scripts, grep, awk and sort, you can pretty much get your system monitor to display anything you can imagine.
While this may seem a lot of work at first, trust me the amount of customization that you can achieve with Conky is well worth the effort. Moreover, there are plenty of examples out there on the Internet, and people generally wouldn’t mind and often freely encourage you to copy their conkyrc file. My conkyrc is a mixture of such examples with some custom settings here and there.
For the lazy geeks
Pick up some conkyrc’s or get inspired here:
- Ubuntu Forums
- Conky Project Page
- There is also a sample conkyrc included with the default install, you would have to extract it from /usr/share/doc/conky/example/conkyrc.sample.gz
Jealous Windows or Mac users?
Just play around, and hack some conkyrc’s of your own. Then share them here with us and let’s see what you have been up to!
Do you know of anything similar that you have been using and think is better? Share with us in the comments.