First and foremost this thread isn't meant to be a place to display your screeshots of conky or to discuss the inner workings of the conky configuration itself. You can find that thread here at:
Post your Screenshots of Conky and the files that created it or in one of the following:
Ubuntu Forums:
.#! Crunchbang Linux Forum:
Thanks Ghoti If you see and error, have an addition, please PM me and I'll pop it in here giving due credit.
When I started using Conky, I was using Ubuntu (GNOME) with
metacity, when I switched to Xubuntu I found that my setup method, described below, worked beautifully with Xubuntu (Xfce), as did ALL my conky files.
Preamble:
What is CONKY? - Conky is a system monitor for X originally based on the torsmo code.
Since its original conception, Conky has changed a fair bit from its predecessor. Conky can display just about anything, either on your root desktop or in its own window. Conky has many built-in objects, as well as the ability to execute programs and scripts, then display the output from stdout.
Here's some further reading to help you "configure" your conky if you are interested:
So lets move on to:
A Beginners Guide to Setting up ConkyCHAPTER I
Setting Up A Conky
First you need the file "conky" and I'd suggest you look at curl, lm-sensors and hddtemp as well, described below. You may as well get them now, I'll bet you will in the future if you don't:
sudo aptitude install conky
CURL - Get a file from an HTTP, HTTPS or FTP server
curl is a client to get files from servers using any of the supported protocols. The command is designed to work without user interaction or any kind of interactivity.
curl offers a busload of useful tricks like proxy support, user authentication, ftp upload, HTTP post, file transfer resume and more.
LM-SENSORS - utilities to read temperature/voltage/fan sensors
Lm-sensors is a hardware health monitoring package for Linux. It allows you to access information from temperature, voltage, and fan speed sensors. It works with most newer systems.
This package contains programs to help you set up and read data from lm-sensors.
Homepage:
http://www.lm-sensors.orghddtemp - hard drive temperature monitoring utility
The hddtemp program monitors and reports the temperature of PATA, SATA
or SCSI hard drives by reading Self-Monitoring Analysis and Reporting
Technology (S.M.A.R.T.) information on drives that support this feature.
If you want all four, it's easy:
sudo aptitude install conky curl lm-sensors hddtemp
OK, so you have the file(s).
Now to use conky, open a terminal and type:
conky
and you'll see a little window open and display a basic conky. That's the default conky found in: /etc/conky/conky.conf
But you want it on your desktop all the time and customized for your system, not in a pop-up window.
I'm going to be using gedit, you may have mousepad or kate. I use Xfce, but have gedit installed because I open multiple files in a tabbed environment. I'm also suggesting a directory and file names, one is hidden, use whatever you like, I'm using my setup here as an example only.
STEP 1 - Create a conky- Create a directory in /home called /Conky
- Create an empty file called; conkymain:
gedit ~/Conky/conkymain
- Paste a conky file from one of the posts in the threads above that you like into that empty file and save it.
Believe it or not that's it, you now have a working (maybe not configured correctly) conky.
In terminal type (the
-c is telling conky to load and run the file that follows):
conky -c ~/Conky/conkymain
and you'll see it, it may not be perfect for your setup, that's why I suggest you go to the threads mentioned above or even the default file: /etc/conky/conky.conf
The point is, you now have a working conky
STEP 2 - Setting up conky to autostart on boot.- Create a hidden file ~/.startconky
gedit ~/.startconky
- In this empty file paste the following:
#!/bin/bash
sleep 0 && # 0 good for Xfce - use 20 to 30 for Gnome
conky -c ~/Conky/conkymain &
#sleep 0 &&
#conky -c ~/Conky/conkyforecast &
If you are using GNOME or KDE you'll need to change sleep 0 to sleep 20 or better, depending on your system. This gives your desktop (Metacity, Compiz, etc.) time to load itself and not over write an existing conky. The start conky command will be delayed by that time and not start until after your desktop is running.
I left two extra lines in there (commented out) for future reference if you ever want to run more than one conky. That's why I'm suggesting the ~/.startconky here. Once you start with conky, in my opinion, it's addictive and you may want more than one running. This way you are prepared.
Now you must make
~/.startconky executable. There are two methods:
Terminal:chmod a+x ~/.startconky
File Manager:Right click on
~/.startconky > Properties > Permissions > check the box necessary to make it executable.
OK, so now you have conkymain working and a way to start it and a second one for future reference inside your ~/.startconky file.
Getting Ubuntu to
Autostart conky.
In Ubuntu:- System -> Preferences -> Sessions -> Startup Programs
- Click on the ADD button:
In Xubuntu:- Applications > Settings > Settings Manager > Autostarted Apps
- Click on the ADD button:
Continuing in Ubuntu and Xubuntu:- Name: Conky <<-- anything you want
- Description: <<--- anything you want (mine is blank)
- Command: <<-- see the "Open Icon" click on that. When your home folder shows, right click to show hidden files if not visible ... and find the hidden file: .startconky. Highlight it and click [ OK ].
- Close
- Now: [Ctrl]+[Alt]+[Backspace] to restart your session and conky will start in xx seconds, depending on your sleep command.
In KubuntuI am NOT a KDE user and have never seen it but I found this at the bottom of;
http://ubuntuforums.org/archive/index.php/t-19154.html:
NOTE: If things have changed since 2006 or there is an alternative way for KDE please PM me and I'll post it here with due credit.
CHAPTER II
A Multiple Conky Setup
Ok, you have your conky set up, you've configured it the way you want it's working properly for your system.
Now you want to put a second conky on your desktop, for example: weather. If you followed the example above you have a
~/.startconky file with a second entry commented out, called
conkyforecast. Uncomment those lines and you are ready to create an run a second conky.
Create that file the same way you created
conkymain. When you get the blank file up I "suggest" copying your "conkymain" file into it and deleting everything
below TEXT and change the "alignment" line for example:
alignment top_right # top_right, top_left, bottom_left, bottom_right
to:
alignment bottom_left # top_right, top_left, bottom_left, bottom_right
so they don't overlap each other.
Add what ever you want conky to display below TEXT, save it. Then edit the
~/.startconky file
removing the # before the last two lines and make sure the last line points to your second file:
#!/bin/bash
sleep 0 && # 0 good for Xfce - use 30 to 60 for Gnome, compiz, etc.
conky -c ~/Conky/conkymain &
sleep 0 &&
conky -c ~/Conky/conkyforecast &
Now:
killall conky
conky -c ~/.startconky
to see the results.
More on conky:OK that will get you started, now comes the fun part ... configuring it to your own personal tastes and machine.
Have a Nice day
Bruce
PS: If you see errors or have other conky resources that you feel might be helpful here please PM me.
-----
Dedicated to all the wonderful people that helped me with conky, you know who you are.
Thank you !EDITS:- 31 Jul 08 - Corrected ~/.startconky
- 01 Aug 08 - Added: Conky Gmail Revisited
- 15 Aug 08 - Added: "Getting Ubuntu to Autostart conky" section title.
- 06 Nov 08 - Added more scripts to the list
- 26 Nov 08 - Added info for running two or more scripts.
- 27 Nov 08 - Added links, better late than never. Thanks Sealbhach
- 28 Nov 08 - Added hddtemp
- 02 Jan 09 - Added Link to: Howto: setup Conky in Hardy and Ibex