PDA

View Full Version : Howto: Get a beautiful Conky 1.4.2 setup



Pages : [1] 2 3 4

seldon77
June 29th, 2006, 10:41 AM
Note: this thread is for setting up Conky on older versions of Ubuntu (EDGY, DAPPER and BREEZY). For current Ubuntu versions (Hardy and Ibex, etc), go to: see this How-to instead (http://ubuntuforums.org/showthread.php?p=6365702)


FOR EDGY, DAPPER, and BREEZY. NOTE: conky in current versions of Ubuntu is now fixed and up to date, and can be installed from the standard repo. afaik, you only need to install, insert a .conkyrc file similar to the one below, and afaik there is no longer a place in xorg.conf to load the 'dbe' module. Read later discussion for more info or if someone can update me at conky@pengo.us on the latest instructions for later versions I'll put them up, as a lot of people seem to use this thread.

Conky is an powerful desktop app that posts system monitoring info onto the root window. It is hard to set up properly (has unlisted dependencies, special command line compile options, and requires a mod to xorg.conf to stop it from flickering, and the apt-get version doesnt work properly). Most people can't get it working right, but its an AWESOME app if it can be set up right done!

With Version 1.4.2 there is no longer a need to load devilspie to hide the taskbar window.

Screenshot:

http://www.pengo.us/conky.jpg

1. Install required dependencies (make sure the universe repo is enabled)
Edgy/Breezy/Dapper:


sudo apt-get --assume-yes install wmctrl
If you want to build from scratch, also install libxext-dev build-essential checkinstall

2. Edgy: Install 'conky' from universe repo. ie:


sudo apt-get --assume-yes install conky
Dapper / Breezy: Download http://www.pengo.us/conky_1.4.2-0ubuntu1_i386.deb PLEASE DON'T LINK TO THIS FILE, as it's only on very limited bandwidth! ie:

cd
wget http://www.pengo.us/conky_1.4.2-0ubuntu1_i386.deb
sudo dpkg -i conky_1.4.2-0ubuntu1_i386.deb
This is a .deb file for Conky 1.4.2 now that works on Breezy/Dapper Ubuntu (the standard Debian 1.4.2 .deb doesn't work). Note that at the time of writing this how-to, the conky in the dapper ubuntu universe repository is very old and, in ways, broken.
Note that at the time of writing, version 1.4.2 is the latest version. If a later version has been released since the writing of this guide, you can build your own conky .deb file as follows. First, go to http://conky.sourceforge.net/ to download the latest version.


wget http://umn.dl.sourceforge.net/sourceforge/conky/conky-1.4.2.tar.gz

tar xvzf conky-1.4.2.tar.gz
rm conky-1.4.2.tar.gz
cd ~/conky-1.4.2
./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-xft --enable-seti --enable-double-buffer --enable-own-window --enable-proc-uptime --enable-mpd --enable-mldonkey --enable-x11 --enable-portmon --enable-infopipe
make
sudo checkinstall
Then answer the relevant questions that checkinstall gives. But, as stated above, you may only need to download the source and make it if this guide has become outdated and versions after 1.4.2 have been released.
3. Make a configuration file in your home directory (ie. /home/bob)


gedit /home/bob/.conkyrc
4. Paste the following code into the file and save / exit. If you know what you are doing, you can edit this file, or download other example configuration file on the net (but this one is probably the best!).


# UBUNTU-CONKY
# A comprehensive conky script, configured for use on
# Ubuntu / Debian Gnome, without the need for any external scripts.
#
# Based on conky-jc and the default .conkyrc.
# INCLUDES:
# - tail of /var/log/messages
# - netstat shows number of connections from your computer and application/PID making it. Kill spyware!
#
# -- Pengo
#

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer right

# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 3.0

# Minimum size of text area
# minimum_size 250 5

# Draw shades?
draw_shades no

# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
border_margin 9

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color grey

own_window_colour brown
own_window_transparent yes

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 10
gap_y 10

# stuff after 'TEXT' will be formatted on screen

TEXT
$color
${color orange}SYSTEM ${hr 2}$color
$nodename $sysname $kernel on $machine

${color orange}CPU ${hr 2}$color
${freq}MHz Load: ${loadavg} Temp: ${acpitemp}
$cpubar
${cpugraph 000000 ffffff}
NAME PID CPU% MEM%
${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}

${color orange}MEMORY / DISK ${hr 2}$color
RAM: $memperc% ${membar 6}$color
Swap: $swapperc% ${swapbar 6}$color

Root: ${fs_free_perc /}% ${fs_bar 6 /}$color
hda1: ${fs_free_perc /media/sda1}% ${fs_bar 6 /media/sda1}$color

${color orange}NETWORK (${addr eth0}) ${hr 2}$color
Down: $color${downspeed eth0} k/s ${alignr}Up: ${upspeed eth0} k/s
${downspeedgraph eth0 25,140 000000 ff0000} ${alignr}${upspeedgraph eth0
25,140 000000 00ff00}$color
Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0}
${execi 30 netstat -ept | grep ESTAB | awk '{print $9}' | cut -d: -f1 | sort | uniq -c | sort -nr}
${color orange}LOGGING ${hr 2}$color
${execi 30 tail -n3 /var/log/messages | awk '{print " ",$5,$6,$7,$8,$9,$10}' | fold -w50}

${color orange}FORTUNE ${hr 2}$color
${execi 120 fortune -s | fold -w50}
If the network connections graph does not work, you will have to change all "eth0" references to "ppp0" (for modem) or "ath0" (for some other devices).

5. Add dbe module to /etc/X11/xorg.conf to reduce flickering.


sudo gedit /etc/X11/xorg.conf
find the section titled Section "Module", and add


Load "dbe"
6. Go to System, Preferences, Sessions, Startup Programs and add 'conky' to the list of start up progams. Reboot. Conky will be active after your next reboot!
NOTE: Kubuntu users ONLY make the following changes:
Open .conkyrc and comment out the lines

own_window yes

own_window_hints undecorated,below,skip_taskbar
background yesSince we don't use nautilus in Kubuntu, we don't need it.

Also, to get Conky to autostart in Kubuntu, you need to add a link to the bin file (in /usr/bin) to

~/.kde/Autostart
For XFCE ONLY make the following changes to .conkyrc

own_window yes

own_window_type override
own_window_transparent yes
For Compiz / AIGLX users ONLY please make these changes:
In .conkyrc

own_window yes

own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
Then (Compiz users) place a startup script called .conky_start.sh in your home directory:

#!/bin/bash

sleep 60 && conky;This would start conky after 60 seconds of your login. That way, compiz doesn't draw shadows around conky. Make sure the script is executable:
chmod a+x .conky_start.sh and add it to your startup programs (menu: system->preferences->session->startup programs).

mikl
June 29th, 2006, 04:48 PM
Using
sudo make install is a rather bad idea. It's much better to use the debian package system to keep track of such files, so instead of running
sudo make install, just run
sudo checkinstall and enter your way through all the questions (the default options are just fine) and make sure you install the .deb file checkinstall generates.

Now you won't have unmanaged files cluttering your system and Conky can be easily removed using apt-get and even redistrbuted :)

ciscosurfer
June 30th, 2006, 01:02 AM
I've followed the instructions...what am I missing? I keep getting this error:

magic@frisky:~/conky-1.4.2$ ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-xft --enable-seti --enable-double-buffer --enable-own-window --enable-proc-uptime --enable-mpd --enable-mldonkey --enable-x11 --enable-portmon --enable-infopipe
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking build system type... Invalid configuration `i686-pc-linux-oldld': machine `i686-pc-linux' not recognized
configure: error: /bin/sh ./config.sub i686-pc-linux-oldld failed Any thoughts anyone? ](*,)

Also, can someone please give me a run-down on <sudo checkinstall> vs <sudo make install>. Thanx!

markmark
June 30th, 2006, 02:01 AM
Also, can someone please give me a run-down on <sudo checkinstall> vs <sudo make install>. Thanx!Basically "make install" just installs the program by copying all the files to the appropriate places, you can then uninstall later on by doing a "make uninstall" in the source directory (which you need to keep around). "checkinstall" makes a deb file and installs it with apt-get, which means you can use apt to uninstall, plus if you set the version numbers right it will automatically get upgraded if a newer version appears in the repos (for example if you build 1.4.2, and then in a few months 1.5 appeared in the ubuntu repos, it would get updated).

ciscosurfer
June 30th, 2006, 03:17 AM
Basically "make install" just installs the program by copying all the files to the appropriate places, you can then uninstall later on by doing a "make uninstall" in the source directory (which you need to keep around). "checkinstall" makes a deb file and installs it with apt-get, which means you can use apt to uninstall, plus if you set the version numbers right it will automatically get upgraded if a newer version appears in the repos (for example if you build 1.4.2, and then in a few months 1.5 appeared in the ubuntu repos, it would get updated). Thanks for the info, I appreciate it. :grin:

beerorkid
June 30th, 2006, 05:16 AM
woorked good for me.

took me a little bit to get it up in the right hand corner.

Just read the docs on the main site, or man conky

Kind of neat. Seems a bummer it is not up to date in the repo's.

thanks

seldon77
June 30th, 2006, 12:08 PM
if anyone has a lot of trouble compiling, i've got a .deb file for 1.4.2 now that works on ubuntu (the standard debian 1.4.2 deb doesn't work).

but, please don't link to this file, as it's only on very limited bandwidth!
http://www.pengo.us/conky_1.4.2-0ubuntu1_i386.deb

Kashirigi
June 30th, 2006, 07:12 PM
I'm trying to compile conky, and when I do ./configure --whatever, I get this:
.......
checking for X... no
checking for XdbeQueryExtension in -lXext... no
configure: error: something went wrong when checking for Xdbe (double buffer extension)

Clearly something is wrong, but I have no idea where to start looking.

Thanks for any help you can provide.

seldon77
July 1st, 2006, 12:33 AM
I'm trying to compile conky, and when I do ./configure --whatever, I get this:
.......
checking for X... no
checking for XdbeQueryExtension in -lXext... no
configure: error: something went wrong when checking for Xdbe (double buffer extension)

Clearly something is wrong, but I have no idea where to start looking.

Thanks for any help you can provide.

I think you skipped step 1? Installing the required dependancies?
do the:
sudo apt-get --assume-yes install libxext-dev lm-sensors
before continuing.

if thats not the problem, let me know!

Greeface
July 1st, 2006, 09:20 AM
It is still all flickery for me, even after I added that part to my xorg.conf file. What gives?

seldon77
July 1st, 2006, 10:07 AM
It is still all flickery for me, even after I added that part to my xorg.conf file. What gives?

have you rebooted yet??

if you have, ensure that the xorg.conf is editted correctly and you are using the .conkyrc file supplied (a wrongly configured .conkyrc script will flicker, ie. if it doesn't ask for the double buffer)

Stormboy
July 2nd, 2006, 06:48 AM
if anyone has a lot of trouble compiling, i've got a .deb file for 1.4.2 now that works on ubuntu (the standard debian 1.4.2 deb doesn't work).

but, please don't link to this file, as it's only on very limited bandwidth!
http://www.pengo.us/conky_1.4.2-0ubuntu1_i386.deb
thanks for the link saved me lot of time! \\:D/

Stormboy
July 2nd, 2006, 06:55 AM
How do I get the original content of the .conkyrc file?
I nuffed mine!
Thanks!

bulldog
July 2nd, 2006, 08:36 AM
How do I get the original content of the .conkyrc file?
I nuffed mine!
Thanks!

Look at the first page of this HowTo:D

Works very well indeed,thanks for this HowTo.
One question though,it keeps track of hda1 but I use sda1 and I changed hda1 into sda1,but that doesn't seem to work.
Is there a way to change this?

blacknyx
July 2nd, 2006, 10:30 AM
Is there way to add it to your desktop perminately without gnome. I'm running Xubuntu.
Thanks

Stormboy
July 2nd, 2006, 12:17 PM
Look at the first page of this HowTo:D

Works very well indeed,thanks for this HowTo.
One question though,it keeps track of hda1 but I use sda1 and I changed hda1 into sda1,but that doesn't seem to work.
Is there a way to change this?
:oops:
Thanks!

saax
July 2nd, 2006, 02:43 PM
I installed Conky succesly but I cant figure out why my conky doesn't stop to flicker.

I change "double_buffer no" instead of "double_buffer yes"

and set time interval to half a second instead of one second.

Im using this script
http://conky.sourceforge.net/conkyrc-vert

I would also like to use it on right top corner ,but dont now how


Please help me

R3linquish3r
July 2nd, 2006, 03:22 PM
I personally like the configs that offer multi-colors on the status bars. Heres a shot of my flux desktop with my conky conifg:

http://www.pascam.net/teamm/edstuff/screenshot.jpg

Mr.X
July 2nd, 2006, 06:20 PM
Wow, thanks this really is a great desktop, *using* :D.

kpkeerthi
July 3rd, 2006, 06:37 AM
It worked great... but it could not load the font 'arial'...


Conky: can't load font 'arial'


I have mstcorefonts but it won't load. I tried replacing the font with system default (Sans) and still won't work. I also tried the -f option and no luck too... Would highly appreciate your help.

maddbaron
July 3rd, 2006, 05:57 PM
this worked great for me but it is still flickering for me. how do i double buffer via command line? also i have it at the bottom left of the screen how do i move it to the top right?
and what way to change the visual style of it?

thanks in advance.

maddbaron
July 3rd, 2006, 06:43 PM
and now after i rebooted again it doesnt show up at all.....what can i do? even sudo conky doesny work in terminal

n00b@linux
July 3rd, 2006, 09:16 PM
I've followed the instructions...what am I missing? I keep getting this error:

magic@frisky:~/conky-1.4.2$ ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-xft --enable-seti --enable-double-buffer --enable-own-window --enable-proc-uptime --enable-mpd --enable-mldonkey --enable-x11 --enable-portmon --enable-infopipe
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking build system type... Invalid configuration `i686-pc-linux-oldld': machine `i686-pc-linux' not recognized
configure: error: /bin/sh ./config.sub i686-pc-linux-oldld failed Any thoughts anyone? ](*,)

Also, can someone please give me a run-down on <sudo checkinstall> vs <sudo make install>. Thanx!
I get exactly the same thing. Was it ever resolved? What do I do?

EDIT: I decided to download the .deb file instead. Once I downloaded it, I opened up the file browser and navigated my way to it. Then I right-clicked on it and selected "Open with GDebi Package Installer". That did the trick. Then I just followed seldon77's post from where I left it, ie. I restarted again at point 4. Et voila! It's excellent. Thanks for all the work seldon77! :)
http://img89.imageshack.us/img89/8652/screenshot42or.th.png (http://img89.imageshack.us/my.php?image=screenshot42or.png)

ciscosurfer
July 4th, 2006, 07:14 AM
Realizing that I didn't have the proper compiler installed to build from source, I went ahead and installed 'build-essential' via apt-get (you can use aptitude as well, or the more friendly GUIs, Synaptic or Adept):

sudo apt-get install build-essentialThis will grab and install the necessary files for you: the GNU C compiler (gcc), make, g++, and a bevy of other progs you will need to compile from source. Hope this helps others. \\:D/

seldon77
July 4th, 2006, 08:57 AM
It worked great... but it could not load the font 'arial'...


Conky: can't load font 'arial'


I have mstcorefonts but it won't load. I tried replacing the font with system default (Sans) and still won't work. I also tried the -f option and no luck too... Would highly appreciate your help.

yeah. it's to do with the compile options in making conky.

for some reason, compiling with xbe doesn't work wel, and thus the error.

you could try downloading the .deb file I mention on page 1 (?), instead of compiling by hand.

honeysucker
July 12th, 2006, 10:09 AM
and now after i rebooted again it doesnt show up at all.....what can i do? even sudo conky doesny work in terminal

i've got the same prob. i work with openbox and xgl, can that be a problem?

Johan!
July 13th, 2006, 12:46 PM
It works!
Thanks for the how-to =D>

Screenshot:
http://img228.imageshack.us/img228/6577/screenshot55wd.th.png (http://img228.imageshack.us/my.php?image=screenshot55wd.png)

But as you can see, there are still some errors in the output...
This is my .conkyrc file:


# UBUNTU-CONKY
# A comprehensive conky script, configured for use on
# Ubuntu / Debian Gnome, without the need for any external scripts.
#
# Based on conky-jc and the default .conkyrc.
# INCLUDES:
# - tail of /var/log/messages
# - netstat connections to your computer
#
# -- Pengo (conky@pengo.us)
#

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_hints undecorated,below,skip_taskbar
background yes

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer yes
use_xft no

# Update interval in seconds
update_interval 3.0

# Minimum size of text area
minimum_size 400 5

# Draw shades?
draw_shades no

# Text stuff
draw_outline yes # amplifies text if yes
draw_borders no
font arial
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
border_margin 9

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color grey

own_window_colour brown
own_window_transparent yes

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 10
gap_y 10

# stuff after 'TEXT' will be formatted on screen

TEXT
$nodename $sysname $kernel on $machine
$color$stippled_hr
CPU: ${freq}MHz Load: ${loadavg} Temp: ${execi 30 sensors |grep "CPU" |cut -d " " -f6}
$cpubar
${cpugraph}$color

NAME PID CPU% MEM%
${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
$color$stippled_hr
RAM: $memperc% ${membar 6}$color
Swap: $swapperc% ${swapbar 6}$color

Root: ${fs_free_perc /}% ${fs_bar 6 /}$color
Winblows: ${fs_free_perc /media/windows}% ${fs_bar 6 /media/windows}$color
WD: ${fs_free_perc /media/wd}% ${fs_bar 6 /media/wd}$color
Server: ${fs_free_perc /media/server}% ${fs_bar 6 /media/server}$color
$color$stippled_hr
IP: ${addr eth0} Total: ${totaldown eth0} Down ${totalup eth0} Up

Down: ${downspeed eth0} k/s ${offset 110}Up: ${upspeed eth0} k/s
${downspeedgraph eth0 32,200} ${upspeedgraph eth0 32,200}

${execi 12 netstat -e -p -t | grep ESTABLISHED | cut -c45-68,80-86,102-140}
$color$stippled_hr
SYSTEM LOG TAIL
${execi 30 tail -n3 /var/log/messages | fold -w67}
$color$stippled_hr
Xmms: ${execi 5 cat /tmp/xmms-info | grep Status: | cut -d ":" -f2}
Artist: ${execi 5 cat /tmp/xmms-info |grep Title: | cut -d "-" -f1}
Title :${execi 5 cat /tmp/xmms-info |grep Title: | cut -d "-" -f2}
Time : ${execi 5 cat /tmp/xmms-info |grep -w Position | cut -d " " -f2} (${execi 5 cat /tmp/xmms-info |grep -w Time |cut -d " " -f2})
List : ${execi 5 cat /tmp/xmms-info |grep Currently |cut -d ":" -f2} /${execi 5 cat /tmp/xmms-info | grep Tunes | cut -d ":" -f2}
${execi 10 /home/johan/xmmsbar.sh}
$color$stippled_hr
${execi 300 fortune -s | fold -w67}

I used the .conkyrc file from the first post, and modified it a little:p
I changed the temperature output from acpitemp to sensors, because acpitemp always shows 40 degrees, not the actual temperature. There is only a small problem in the conky output.

The real problem is the XMMS output... see the next screenshot:

http://img204.imageshack.us/img204/4041/screenshot69zr.png (http://imageshack.us)
Sometimes, the XMMS information appears multiple times. I use xmms-infopipe to create the data.

Who can help me fix these small problems?

seldon77
July 15th, 2006, 03:26 AM
i've got the same prob. i work with openbox and xgl, can that be a problem?

could be. gnome users dont seem to have a problem.

just ensure that 'conky' is run by default when the window manager starts up.

hype
July 15th, 2006, 05:23 AM
Following your How-to i finally removed the "flickering effect" i had previously with conky.
Your config is really good tho.
Only thing: How can i modify the length of the CPU and up/down bars?

Edit: i ve been able to make smaller "version":

TEXT
$color$stippled_hr
$nodename
$sysname $kernel on $machine

CPU: ${freq}MHz Temp: ${acpitemp}
${cpubar 16,180}
$color$stippled_hr
NAME CPU% MEM%

${top name 1}${top cpu 1} ${top mem 1}
${top name 2}${top cpu 2} ${top mem 2}
${top name 3}${top cpu 3} ${top mem 3}
${top name 4}${top cpu 4} ${top mem 4}
$color$stippled_hr
RAM: $memperc% ${membar 4,100}$color
Swap: $swapperc% ${swapbar 4,100}$color

Root: ${fs_free_perc /}% ${fs_bar 4,100 /}$color
hda1: ${fs_free_perc /media/hda1}% ${fs_bar 4,100 /media/hda1}$color
$color$stippled_hr
Total: ${totaldown eth0} Down ${totalup eth0} Up

Down: $color${downspeed eth0} Up: ${upspeed eth0}
${downspeedgraph eth0 16,87.5} ${upspeedgraph eth0 16,87.5}
$color$stippled_hr


By the way, how to had color into conky ? I tried $color (color) command but it doesnt seem to work ( iwanted to color "Down" in green: i added $color green in front of "Down", but it just displayed "green Down" :p)

Neo40
July 15th, 2006, 06:21 PM
Hello,

It working fine here on my Xubuntu system (I'm using xfce4) but conky appears only in one desktop. How can I configure to be able to see it on my 4 desktops?
Thanks

Rexbron!
July 16th, 2006, 05:05 AM
Once again, thank you for writing this great tutorial.

My problem is this, the network traffic monitor does not monitor anything and it never changes. I have had this problem with other system montitors (for karamba). Is there a package that I need to install before this will work?

And for those who are installing the package, make sure to update .conkyrc with the one given here.

We should see if we can get this to replace the old corky package in the repository. Any volunteers for emailing the MOTU's?

hype
July 16th, 2006, 07:36 AM
I noticed while booting, i have a service that fails to start:
"Setting Sensors Limit" Failed
It didnt appear before i installed conky from your How-to.
Its doesnt seem to bother conky ; it seems to wrok fine

Rexbron!
July 16th, 2006, 06:48 PM
I have this problem as well, I think is has something to do with ls-sensors package not being the right one for your mobo/laptop (in my case acer aspire 3624)

ScoobyDan
July 16th, 2006, 08:14 PM
Thanks for this How-To - it worked great!

The only problem I am having, is I can't get transparency to work - the background is always black. I read on the Conky FAQ (http://conky.sourceforge.net/faq.html), that I need to use a program called "qiv", but I can't see how. Any ideas?

Daniel

PS: I am running Kubuntu 6.06, and the graphics card is a VIA Unichrome on-board jobby (if that's of any help).

Rexbron!
July 16th, 2006, 08:26 PM
Thanks for this How-To - it worked great!

The only problem I am having, is I can't get transparency to work - the background is always black. I read on the Conky FAQ (http://conky.sourceforge.net/faq.html), that I need to use a program called "qiv", but I can't see how. Any ideas?

Daniel

PS: I am running Kubuntu 6.06, and the graphics card is a VIA Unichrome on-board jobby (if that's of any help).

Open .conkyrc and comment out the lines

own_window yes
own_window_hints undecorated,below,skip_taskbar
background yes

Since we don't use nautilus, we don't need it. If the original writer of this guide is around, he (or she) might want to add that to the original post.

Also, to get Conky to atostart in Kubuntu, you need to add a link to the bin file (in /usr/bin) to

~/.kde/Autostart.

mtpadilla
July 16th, 2006, 10:52 PM
Hello. I love conky so far...great app. Thank you seldon77 for the nice how to.

So I followed the Howto exactly, compling from scratch without any problems, changing /etc/X11/xorg.config, and only slightly modifying the .conkyrc file to more appropriate partitions to monitor the size of. Things for the most part are fine...(oh, and no flicker problem).

HOWEVER, I have three problems:
1) I get the errors
Conky: /home/mtp/.conkyrc: 15: no such configuration: 'own_window_hints'
Conky: can't load font 'arial'
2) It looks kind of crappy, with thick black lines around every character.
3) It only shows up on one of my four desktops.

Does anyone happen to know how to solve this to make the errors go away and make it look reasonably well on the desktop?

Thank you very much in advance!!:p

SCREENSHOT:
http://www.stanford.edu/~mtp/papers/Screenshot.png

EDIT: Added problem #3 after realizing it.

hype
July 17th, 2006, 12:06 AM
I have this problem as well, I think is has something to do with ls-sensors package not being the right one for your mobo/laptop (in my case acer aspire 3624)

As i dont have a LapTop, it may be the origin of the problem. :p

Anyway, i can see my cpu temperature, so some sensor must be working ^^
ANd actually the error message at boot time is something like:
"Setting sensors limit" FAILED
It doesn mean that sensors dont work, right?

arrizaba
July 17th, 2006, 08:18 AM
I've got the "dbe" module but conky still flickers a bit. I changed the refresh time to 1 min not to make it so annoying.
Can the flickering be completely eliminated?
Btw, I use Compiz as window manager.

I got (I think) a nice config for my conky. Here's a sceenshot:

http://www.nikhef.nl/~arrizaba/pub/Screenshot.png

ScoobyDan
July 17th, 2006, 08:39 AM
Open .conkyrc and comment out the lines

own_window yes
own_window_hints undecorated,below,skip_taskbar
background yes

Since we don't use nautilus, we don't need it. If the original writer of this guide is around, he (or she) might want to add that to the original post.

Also, to get Conky to atostart in Kubuntu, you need to add a link to the bin file (in /usr/bin) to

~/.kde/Autostart.

Rexbron,

Many thanks for that - my conky is now nice and transparent!

Regarding the autostart, I just saved my session with conky running, and now it starts every time. I might look into the link route, if that is more elegant...

Thanks again,

Daniel

seldon77
July 18th, 2006, 01:43 PM
wow.. nice screenshot. can you share your .conkyrc file? also, which gdesklet are you using there for the temperature?

seldon77
July 18th, 2006, 01:48 PM
Hello. I love conky so far...great app. Thank you seldon77 for the nice how to.

I have three problems:
1) I get the errors
Conky: /home/mtp/.conkyrc: 15: no such configuration: 'own_window_hints'
Conky: can't load font 'arial'
2) It looks kind of crappy, with thick black lines around every character.
3) It only shows up on one of my four desktops.


1) hmm... are you compiling the latest conky version? the cant find arial problem is known. you can take that line out of the .conkyrc file but then the text goes a bit funny.

2) put

draw_outline no
into the .conkyrc file

3) This has to do with the own_window_hints settings. see the conky man page for more options and to put on all desktops.

seldon77
July 18th, 2006, 01:49 PM
Open .conkyrc and comment out the lines

own_window yes
own_window_hints undecorated,below,skip_taskbar
background yes

Since we don't use nautilus, we don't need it. If the original writer of this guide is around, he (or she) might want to add that to the original post.

Also, to get Conky to atostart in Kubuntu, you need to add a link to the bin file (in /usr/bin) to

~/.kde/Autostart.

Done - thanks!

mtpadilla
July 19th, 2006, 12:38 AM
1) hmm... are you compiling the latest conky version? the cant find arial problem is known. you can take that line out of the .conkyrc file but then the text goes a bit funny.

2) put

draw_outline no
into the .conkyrc file

3) This has to do with the own_window_hints settings. see the conky man page for more options and to put on all desktops.


Thank you for your help.

1) Yep, I compiled using the latest version off the conky website (& followed the how-to exactly except for changing which partitions to monitor the size of).
2) Worked well...thanks.
3) Yep, I needed to add "sticky" it seems. Now it's appearing on all the desktops.

Cheers...I'm going to be using this now. Still a lot of cuter customizations to do, but I'll get to it later.

BTW...yes, if arizzaba wouldn't mind sharing their .conkyrc, that would be killer.

mtpadilla
July 19th, 2006, 03:36 AM
Hello. I've noticed one odd problem that I haven't seen anyone else mention in this thread...everything's pretty smooth now by following the Howto and seldon77's advice.

However, sometimes the background of conky momentarily (say for a second or so) changes to some other image that appeared at some recent time (like the past 5 minutes). This can be another part of the desktop itself (such as another part of my desktop background with the icons on top), part of some webpage I just viewed in Firefox, etc. I don't know how to envoke the behavior as I haven't noticed any clear cause/effect pattern.

SCREENSHOTS:
w/ the problem: http://www.stanford.edu/~mtp/papers/Screenshot2.png
w/o the problem: http://www.stanford.edu/~mtp/papers/Screenshot3.png

Unfortunately I haven't the knowledge yet (i.e. newbie) to diagnose and solve it...any ideas? Thank you very much.

p.s. I'm using Gnome (the standard ubuntu 6.06 install)

EDIT: Added the links to screenshots.

sirlancelot
July 19th, 2006, 06:41 AM
Thanks so much for this!

I've been looking for something like this since I switched to linux, (windows version: samurize (http://www.samurize.com)).

I look forward to this app's progress! \\:D/

dmitriyr333
July 19th, 2006, 01:20 PM
Has anybody got conky working with transparency AND in its own window in KUBUNTU??? If so, please, please, please post a solution.
Thank you.
Dmitriy

GarethEvans
July 21st, 2006, 06:29 AM
Great tutorial, worked perfectly for me (chose to compile from source with xfce)

5-HT
July 21st, 2006, 06:50 AM
Hello,

It working fine here on my Xubuntu system (I'm using xfce4) but conky appears only in one desktop. How can I configure to be able to see it on my 4 desktops?
Thanks

Add sticky to your own_window_hints line in ~/.conkyrc



By the way, how to had color into conky ? I tried $color (color) command but it doesnt seem to work ( iwanted to color "Down" in green: i added $color green in front of "Down", but it just displayed "green Down" :p)

${color <color>} text to be displayed in defined colour

e.g.,
${color red} this text will be displayed in red
${color FF0D00} this text will be displayed in ~reddish

Rexbron!
July 22nd, 2006, 05:08 PM
Maybe everybody already knows this but I was unable to get the ipgraph to display any of my traffic. Note that I am on a laptop: today I decided to plugin my laptop to my wired network and bam the graph was working.

So I checked in the .conkyrc file under the ip/graph heading changed all instances of eth0 to ath0 (if you have a broadcom chip change it to whatever networkconnections lists your device as) and now the graphs are working.

If you want both your wireless card and you wired card to graph, just copy the relevant section and then change as above.

seldon77
July 24th, 2006, 01:59 AM
Maybe everybody already knows this but I was unable to get the ipgraph to display any of my traffic. Note that I am on a laptop: today I decided to plugin my laptop to my wired network and bam the graph was working.

So I checked in the .conkyrc file under the ip/graph heading changed all instances of eth0 to ath0 (if you have a broadcom chip change it to whatever networkconnections lists your device as) and now the graphs are working.

If you want both your wireless card and you wired card to graph, just copy the relevant section and then change as above.

Thanks! I put your advice into the how-to. I am updating the how-to as advice and comments come in.

btlotfinia
July 25th, 2006, 04:05 PM
Typing the following,


sudo dpkg -i conky_1.4.2-0ubuntu1_i386.deb

results in this:


dpkg-deb: `conky_1.4.2-0ubuntu1_i386.deb' is not a debian format archive
dpkg: error processing conky_1.4.2-0ubuntu1_i386.deb (--install):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
conky_1.4.2-0ubuntu1_i386.deb

Any thoughts would be appreciated.

BoomAM
July 25th, 2006, 05:38 PM
I followed that guide word for word and it doesnt work.
If i run the conky icon from the app menu i briefly get a window popping up, then it disappears again without doing anything.

Ideas?

nwgray
July 25th, 2006, 05:42 PM
I compiled everything and when my session starts up, I can see it but then it disappears. I'm running gnome. I can't seem to figure out how to find it again after startup.

Thx

5-HT
July 25th, 2006, 09:18 PM
I compiled everything and when my session starts up, I can see it but then it disappears. I'm running gnome. I can't seem to figure out how to find it again after startup.

Thx

Is conky drawing to its own window?
If not, nautilus might be gobbling conky up when it draws the desktop.
If this is the case then you can either call conky with the -o option or add 'own_window yes' in your conkyrc.

HTH

Rexbron!
July 26th, 2006, 12:03 AM
Typing the following,


sudo dpkg -i conky_1.4.2-0ubuntu1_i386.deb

results in this:


dpkg-deb: `conky_1.4.2-0ubuntu1_i386.deb' is not a debian format archive
dpkg: error processing conky_1.4.2-0ubuntu1_i386.deb (--install):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
conky_1.4.2-0ubuntu1_i386.deb

Any thoughts would be appreciated.

Try compiling Conky from source and use checkinstall instead of make install.

ephman
July 26th, 2006, 05:52 AM
hi,

has anybody noticed that conky sometimes pauses? also, it'll vanish a little later. i don't know if the two are related. i read the above posting about the vanishing problem somebody else noticed, but is there a way i can fix this?

thanks,
ephman

btw thanks for the howto it's great, i was looking for something like that so i didn't have to use gdesklets...

btlotfinia
July 26th, 2006, 05:40 PM
I had tried compiling directly before, but without luck. Double checked what I had installed, and saw that I lacked "checkinstall." It compiled and installed quickly. Now I'm just having issues with the actual program. ;)

BIGtrouble77
July 27th, 2006, 09:02 PM
I compiled an AMD64 version if anyone wants it.

EDIT: my package was broken so I removed it.

When I compiled I had to change it from an x86_64 arch to amd64 for it to properly compile. Make sure you remove conky if you already have it installed before installing this version.

ubuntuuser
July 27th, 2006, 09:36 PM
The link to the deb-file seems to be dead, at least I couldn't access the file. I compiled it from source and created my own deb. You can get it here. (http://rapidshare.de/files/27253981/conky-1.4.2_1.4.2-1_i386.deb.html)

Rexbron!
July 29th, 2006, 05:07 PM
Care to elaborate on your problems Btlotfinia?

FlyingCheese
July 29th, 2006, 07:08 PM
I'm running Ubuntu on a Pentium 2 laptop, how does this app fare on low resource computers? I would hate to try to install this program only to find it brings the computer down to a crawl. Thanks.

Looks like a great HowTo.

Rexbron!
July 29th, 2006, 09:06 PM
I'm running Ubuntu on a Pentium 2 laptop, how does this app fare on low resource computers? I would hate to try to install this program only to find it brings the computer down to a crawl. Thanks.

Looks like a great HowTo.

It is a text based program, and you can set the polling intervals. There should be absoultly no problem interms of hardware. (I also recomend using Xubuntu for older hardware).

5-HT
July 30th, 2006, 01:11 AM
I'm running Ubuntu on a Pentium 2 laptop, how does this app fare on low resource computers? I would hate to try to install this program only to find it brings the computer down to a crawl. Thanks.

Looks like a great HowTo.


It is a text based program, and you can set the polling intervals. There should be absoultly no problem interms of hardware. (I also recomend using Xubuntu for older hardware).

Just to add to Rexbron's post: While conky is a pretty light system monitor, the graph, tail, font ($font, not the overal font conky is set for), and top objects are fairly resource intensive as compared to the rest of the application.

If you don't use any graphs, mix fonts around, or use the tail or top options conky will be really good on resources.

FlyingCheese
July 30th, 2006, 05:10 AM
Thanks, I'll install this when I get back home in about a week.

loserboy
August 1st, 2006, 03:14 AM
loser@loser-desktop:~/Desktop$ sudo dpkg -i conky-1.4.2_1.4.2-1_amd64.deb
(Reading database ... 122239 files and directories currently installed.)
Unpacking conky-1.4.2 (from conky-1.4.2_1.4.2-1_amd64.deb) ...
dpkg-deb (subprocess): short read in buffer_copy (failed to write to pipe in copy)
dpkg-deb: subprocess paste returned error exit status 2
dpkg: error processing conky-1.4.2_1.4.2-1_amd64.deb (--install):
short read in buffer_copy (backend dpkg-deb during `./usr/share/doc/conky-1.4.2/README')




someone here had a similar prob and they were told to "Try compiling Conky from source and use checkinstall instead of make install."

...how do I go about doin that, or is that what im suppose to do

Edit: I think there maybe something wrong with the deb

BIGtrouble77
August 1st, 2006, 05:17 AM
Edit: I think there maybe something wrong with the deb
That's the version I compiled. I removed conky from my system and tried it again and am also having issues. I apologize, I'm gonna edit my other post. It's actually very easy to compile to i'd just do that for now.

Zottan
August 1st, 2006, 11:39 AM
for amd64 that i compiled i you get error use "dpkg --force-architecture -i .deb"
http://rapidshare.de/files/27769327/conky-1.4.2_1.4.2-1_x86_64.deb.html

is compiled for amd only that the deb give this error , using make install from the source works fine...

Gehaktbal
August 1st, 2006, 12:29 PM
I just installed conky with the deb in the first post. But Al my other icons in gnome disappear. When i go over them with my mouse (where they are supposed to be) they appear again only to vanish after a few seconds. How can i change this?

->

# set to yes if you want Conky to be forked in the background
background no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*


# Use Xft?
use_xft yes

# Set conky on the bottom of all other applications
on_bottom yes

kerry_s
August 1st, 2006, 01:10 PM
hmmm, i just installed the one from the repo's and added the line in xorg.conf(Load "dbe"). i launch it with a script so it starts on top of the background.
conky start script->

#!/bin/sh

sleep 10
conky



my .conkyrc->

# Conky sample configuration
#
# the list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.

# set to yes if you want Conky to be forked in the background
background yes

# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*


# Use Xft?
use_xft yes

# Set conky on the bottom of all other applications
on_bottom no

# Xft font when Xft is enabled
xftfont Sans:size=12

# Text alpha when using Xft
xftalpha 1.0

# Print everything to stdout?
# out_to_console no

# MPD host/port
# mpd_host localhost
# mpd_port 6600
# mpd_password tinker_bell

# Print everything to console?
# out_to_console no

# mail spool
#mail_spool $MAIL

# Update interval in seconds
update_interval 2.0

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window no

# Use pseudo transparency with own_window?
own_window_transparent yes

# If own_window_transparent is set to no, you can set the background colour here
#own_window_colour hotpink

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 280 5

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 8

# border margins
border_margin 4

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color black

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment none

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 12
gap_y 12

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale no


# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer no

# mldonkey_hostname Hostname for mldonkey stuff, defaults to localhost
# mldonkey_port Mldonkey port, 4001 default
# mldonkey_login Mldonkey login, default none
# mldonkey_password Mldonkey password, default none

# boinc (seti) dir
# seti_dir /opt/seti

# Allow for the creation of at least this number of port monitors (if 0 or not set, default is 16)
min_port_monitors 16

# Allow each port monitor to track at least this many connections (if 0 or not set, default is 256)
min_port_monitor_connections 256

# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument

# stuff after 'TEXT' will be formatted on screen

TEXT
Conky
${color white}CPU:${color white} ${freq} ${color white}mhz / Temp:${color white}$acpitemp ${color white}C
${color white}Disk I/O:${color white} ${diskio} ${color white}Uptime:${color white} $uptime
${color white}Processes:${color white} $processes ${color white}Running:${color white} $running_processes
${color white}CPU Usage:${color white} $cpu% ${color white}${cpugraph 20, 125 ffffff 0000ff}
${color white}RAM Usage:${color white} $mem/$memmax ${color white}- ${color white}$memperc% ${color white}${membar}
${color white}Swap Usage:${color white} $swap/$swapmax ${color white}- ${color white}$swapperc% ${color white}${swapbar}
${color white}File systems: / ${color white}${fs_used /}/${fs_size /} ${color white}${fs_bar /}

${color}Name PID CPU% MEM%
${color green} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color green} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color green} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color green} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color green} ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}

${color white}Networking:
Down:${color white} ${downspeed eth0} k/s${color white} ${offset 80}Up:${color white} ${upspeed eth0} k/s
${color white}${downspeedgraph eth0 20,150 ff0000 0000ff} ${color white}${upspeedgraph eth0 20,150 0000ff ff0000}

${color white}Netstat
${color green}${execi 12 netstat -e -p -t | grep ESTABLISHED | cut -c45-68,80-86,102-140}
${color white}Remote Address ${alignr} Local Service/Port
${color green} ${tcp_portmon 1 65535 rhost 0} ${alignr} ${tcp_portmon 1 65535 lservice 0}
${color green} ${tcp_portmon 1 65535 rhost 1} ${alignr} ${tcp_portmon 1 65535 lservice 1}
${color green} ${tcp_portmon 1 65535 rhost 2} ${alignr} ${tcp_portmon 1 65535 lservice 2}
${color green} ${tcp_portmon 1 65535 rhost 3} ${alignr} ${tcp_portmon 1 65535 lservice 3}
${color green} ${tcp_portmon 1 65535 rhost 4} ${alignr} ${tcp_portmon 1 65535 lservice 4}
${color green} ${tcp_portmon 1 65535 rhost 5} ${alignr} ${tcp_portmon 1 65535 lservice 5}
${color green} ${tcp_portmon 1 65535 rhost 6} ${alignr} ${tcp_portmon 1 65535 lservice 6}
${color green} ${tcp_portmon 1 65535 rhost 7} ${alignr} ${tcp_portmon 1 65535 lservice 7}
${color green} ${tcp_portmon 1 65535 rhost 8} ${alignr} ${tcp_portmon 1 65535 lservice 8}
${color green} ${tcp_portmon 1 65535 rhost 9} ${alignr} ${tcp_portmon 1 65535 lservice 9}
${color green} ${tcp_portmon 1 65535 rhost 10} ${alignr} ${tcp_portmon 1 65535 lservice 10}




i also made a on/off switch for when i want to try different looks/colors/settings/position->

#!/bin/sh

# click to start, click to stop

if pidof conky | grep [0-9] > /dev/null
then
exec killall conky
else
exec conky

loserboy
August 1st, 2006, 02:52 PM
t's actually very easy to compile to i'd just do that for now.

I'd love to learn how to compile, how do i do that?

spiral777
August 1st, 2006, 05:12 PM
I finally got it set up to work just the way I want it, except for 1 small problem. I use it in a window, because my backgrounds are crazy and I couldn't find a nice text color to use.

Is it possible to set it up to automatically open in workspace 4 in ubuntu?

Catsworth
August 1st, 2006, 07:34 PM
Hi Guys,

I've got conky up and running nicely, I've even managed to strip out some of the stuff that I don't want (haven't thought about 'adding' anything yet!).

I'm having a small problem though.....

When I open an application in Ubuntu (Firefox for example) I get a 'tab' (for want of a better word) in the panel at the bottom of my desktop, clicking on this brings that application to the fore. I have a 'tab' for conky - ideally I just want conky to sit on my desktop and not have a 'tab' on the panel, is that possible? Thanks.

5-HT
August 2nd, 2006, 04:29 AM
I'd love to learn how to compile, how do i do that?

Steps 1 & 3 in this HowTo document how to download required depencies and compile conky (lm-sensors is optional).

If you're having dependency issues, the following thread may be of help:
http://www.ubuntuforums.org/showthread.php?t=139262

loserboy
August 2nd, 2006, 05:22 AM
Steps 1 & 3 in this HowTo document how to download required depencies and compile conky (lm-sensors is optional).


that doesnt seem to work for amd64 though.
and someone has posted one for 64 but the deb doesnt work for me

5-HT
August 2nd, 2006, 05:31 AM
that doesnt seem to work for amd64 though.
and someone has posted one for 64 but the deb doesnt work for me

Sorry, I missed the earlier post you made. I'm not running a 64-bit system so I can't be of much help.
Posting the the compile errors you're getting may help someone track down what the problem is.

HTH

kpkeerthi
August 3rd, 2006, 05:22 AM
Thanks for the How To. This is my first build-from-source in linux ever. Conky rocks!

John.Michael.Kane
August 3rd, 2006, 05:40 PM
Is there a version/howto: for 64bit users?

ConstableRoark
August 4th, 2006, 04:45 AM
Is there any way to prevent conky from starting again when one logs out of one session and into another? In that scenario, the conky from the first is not killed (but is asleep), while the second conky heavily uses the CPU. I regularly switch from Xorg to XGL and vice versa and this problem is really starting to bug me (having to kill it manually, that is). I don't recall this happening with previous versions of conky.

seldon77
August 4th, 2006, 10:53 AM
Is there any way to prevent conky from starting again when one logs out of one session and into another? In that scenario, the conky from the first is not killed (but is asleep), while the second conky heavily uses the CPU. I regularly switch from Xorg to XGL and vice versa and this problem is really starting to bug me (having to kill it manually, that is). I don't recall this happening with previous versions of conky.

Just thinking laterally... i wonder if you could put in your startup scripts:


killall conky
conky


or something like that... i dunno...

As for the guy earlier who had the 'tab' appear in the workspace - if you use the .conkyrc I provided you wont get the 'tab'

BigBastard
August 4th, 2006, 09:07 PM
i also made a on/off switch for when i want to try different looks/colors/settings/position->

Code:

#!/bin/sh
# click to start, click to stop
if pidof conky | grep [0-9] > /dev/null
then exec killall conky
else
exec conky
fi

I tried this and while it successfully "kills" conky, it doesn't successfully start it again.
But if I use conky at the command line it starts.....

Hints?

BB

kerry_s
August 4th, 2006, 09:19 PM
That's my code but that one's screwed. It should be this->

#!/bin/sh

if pidof conky | grep [0-9] > /dev/null
then
exec killall conky
else
exec conky

ConstableRoark
August 5th, 2006, 03:48 AM
Thanks for the reply guys and gals.

John.Michael.Kane
August 5th, 2006, 03:54 PM
Has anyone got this to work under dapper64? it seems all these post here are from 32bit users.

greenbmw530i
August 7th, 2006, 03:10 AM
Great HOWTO! I've always wanted to get Conky setup properly, but never could. Thanks to your HOWTO, I've got a great lookin' Conky on my desktop.

However, I have one question...I use XGL/Compiz and use the "fade" plugin with it. The fade plugin for XGL/Compiz darkens a window that is not selected to put it out of focus and put it in the background. The problem is that it darkens Conky when a window is selected, which makes it seem as if it's not blended with my wallpaper...which is ugly. Is there some way I can exempt Conky from fading in XGL/Compiz? I've attatched screenshots to show you what it looks like when it's faded and what it looks like when it's not.

simplyw00x
August 7th, 2006, 10:03 AM
I

The real problem is the XMMS output... see the next screenshot:

Sometimes, the XMMS information appears multiple times. I use xmms-infopipe to create the data.

Who can help me fix these small problems?
?Well I can't fix it, but I can tell you it's infopipe's problem. If you 'watch -n 1 cat /tmp/whatevertheinfopipeiscalled' you'll see it sometimes screws up and puts more than one copy of the info in that file. There isn't really a workaround and I'd suggest not using infopipe or not using xmms.



HOWEVER, I have three problems:
1) I get the errors
Conky: /home/mtp/.conkyrc: 15: no such configuration: 'own_window_hints'
Conky: can't load font 'arial'
2) It looks kind of crappy, with thick black lines around every character.
3) It only shows up on one of my four desktops.

1) Are you using the latest conky? Only the newest version has the own_window_hints property. As to the arial problem, make sure that arial is actually on your system.

2) draw_outline no

Rexbron!
August 7th, 2006, 03:08 PM
Great HOWTO! I've always wanted to get Conky setup properly, but never could. Thanks to your HOWTO, I've got a great lookin' Conky on my desktop.

However, I have one question...I use XGL/Compiz and use the "fade" plugin with it. The fade plugin for XGL/Compiz darkens a window that is not selected to put it out of focus and put it in the background. The problem is that it darkens Conky when a window is selected, which makes it seem as if it's not blended with my wallpaper...which is ugly. Is there some way I can exempt Conky from fading in XGL/Compiz? I've attatched screenshots to show you what it looks like when it's faded and what it looks like when it's not.

Maybe someone can correct me, but my best sugestion is to file a bug report in malone and upstream in conky and xgl and see if a dev will try and solve your problem.

But if any one else can solve it, by all means post!

greenbmw530i
August 7th, 2006, 10:13 PM
Thanks for the reply, Rexbron! I'm not so sure that it's a bug, since the effect is just the result of XGL doing it's job. I was just wondering if there was some sort of way to exempt Conky from the XGL fade effect.

Rexbron!
August 7th, 2006, 11:10 PM
I do not use xgl or compiz myself but a quick google search turned up a ubuntu thread with someone having a problem with gdesklets. Turns out that there is an exclude feature for compiz for precisely this problem.

From: http://www.ubuntuforums.org/archive/index.php/t-148351-p-2.html


hi, i have gdesklets in ubuntu with xgl/compiz but its really irritating to have them have a shadow like when they are not in focus. is it possible to disable this shadowing of windows in compiz?

thanx
You can disable the Trailfocus plugin, from what I can see, and that would take off the "shadowing" effect entirely.

Alternatively, if you wish to keep trailfocus on but disable the effect on certain windows, read this page (and Especially pay attention to the Trailfocus section): https://wiki.ubuntu.com/CompositeManager/ConfiguringCompiz?highlight=%28compiz%29

It should help tell you how to setup the "exclude" field to prevent certain programs from being affected (I.E., I have my video players in the exclude list).


I did a quick look at the fade plugin, you probably want to disable "desktop" under the window_types.

This maybe another thing to add to the guide.

UPDATE: Looked a little bit closer at the wiki document, turns out that desktop is not enabled by default, so still check for it but maybe you should take out "unknown" as well, seeing as I do not know how conky is classifed.

Also, would you mind sharing your .conkyrc file?

greenbmw530i
August 8th, 2006, 12:34 AM
I already have "desktop" and "unknown" de-selected in the XGL fade plugin. Oh well, it's not a biggie -- I can live with it. As for my .conkyrc file...I tried to attatch it here but it told me it was an invalid file :-k So I'll just paste it in here:


# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_hints undecorated,below,skip_taskbar
background yes

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer yes
use_xft no

# Update interval in seconds
update_interval 3.0

# Minimum size of text area
minimum_size 400 5

# Draw shades?
draw_shades yes

# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
font arial
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
border_margin 9

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color white

own_window_colour brown
own_window_transparent yes

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 60
gap_y 40

# stuff after 'TEXT' will be formatted on screen

TEXT
${color CC0D00}SYSTEM OVERVIEW
${color CC0D00}${hr}
${color FFFF00}Host: ${color white}$nodename
${color FFFF00}Kernel: ${color white}$kernel ${machine} (Ubuntu Dapper)
${color FFFF00}Uptime: ${color white}$uptime
${color FFFF00}Load: ${color white}$loadavg
${color FFFF00}Battery: ${color white}${battery}

${color CC0D00}CPU USAGE
${color CC0D00}${hr}
${color FFFF00}CPU Usage: ${color white}${cpu}% $cpubar
${cpugraph}
${color FFFF00}RAM Usage: ${color white}$mem/$memmax - $memperc% $membar
${color FFFF00}Swap Usage: ${color white}$swap/$swapmax - $swapperc% $swapbar
${color FFFF00}Processes: ${color white}$processes ${color FFFF00}Running: ${color white} $running_processes

${color CC0D00}NETWORKING
${color CC0D00}${hr}
${color FFFF00}Down: ${color white}${downspeed ath0} k/s ${offset 110}${color FFFF00}Up: ${color white}${upspeed ath0} k/s
${downspeedgraph ath0 32,200} ${upspeedgraph ath0 32,200}
${color FFFF00}Signal: ${color white}${linkstatus ath0}

${color CC0D00}FILESYSTEMS
${color CC0D00}${hr}
${color FFFF00}Root: ${color white}${fs_used /}/${fs_size /} ${fs_bar 6 /}
${color FFFF00}WinXP: ${color white}${fs_used /media/hda1}/${fs_size /media/hda1} ${fs_bar 6 /media/hda1}

OffHand
August 8th, 2006, 04:53 PM
Well, it was a pain in the *** to get a working configuration.
It was worth it though. It's awesome.
Here is a pic of my conky. (That sounds just weird haha)

lime4x4
August 8th, 2006, 10:40 PM
can't get the on-off kill switch to work

this is what i get when i try to run it

Details: Failed to execute child process "/home/john/conky" (No such file or directory)

I have the file saved in /home/john/conky on-off

and that is where i have the launcher pointed to

lime4x4
August 8th, 2006, 11:21 PM
also how do u get the graphs to show in different colors

greenbmw530i
August 9th, 2006, 04:17 AM
also how do u get the graphs to show in different colors

Just add the color 'tag' in front of the graph in your .conkyrc. Refer to my .conkyrc on page 9 to see exactly how to do it.

loserboy
August 9th, 2006, 07:41 AM
i'm having problems with my sensors,

temp is showing 40 and never changes
during boot it fails "setting sensor limits"

is it a problem with lm-sensors? i followed the howto

Edit: ok I fixed the failed "setting sensor limits", but i still can't get my temp readout to change

simplyw00x
August 9th, 2006, 09:36 PM
A replacement for this very involved kill script you all seems to be using:
killall -SIGUSR1 conky
(from `man conky`)

kerry_s
August 9th, 2006, 10:18 PM
can't get the on-off kill switch to work

this is what i get when i try to run it

Details: Failed to execute child process "/home/john/conky" (No such file or directory)

I have the file saved in /home/john/conky on-off

and that is where i have the launcher pointed to

You can't have no space in the name(conky on-off) other wise it's just looking for conky, change it to> conky-on-off or your launchline to> /home/john/conky\ on-off < if you want to keep the space. Make sure you have set it executable(right click it> properties>permissions> check execute. Also you can make it a hidden file by adding "." to the front (example: .conky-on-off)

Also take out the "fi" at the bootom it throws up a xserver error.
Here's what i run know->

#!/bin/sh

# click to start, click to stop

if pidof conky | grep [0-9] > /dev/null
then
exec killall conky
else
exec conky

lime4x4
August 10th, 2006, 12:04 AM
ok did what u said and changed my file to match yours but now when i click on the icon on my desktop for it nothing happens

ephman
August 10th, 2006, 04:58 AM
i'm having problems with my sensors,

temp is showing 40 and never changes
during boot it fails "setting sensor limits"

is it a problem with lm-sensors? i followed the howto

Edit: ok I fixed the failed "setting sensor limits", but i still can't get my temp readout to change

i think the "setting sensor limits" deals with lmsensors. can you give some system specs? if you have a name brand the model, or if you put it together yourself your motherboard. that'll help.

i know that if ya have a dell the i8k drivers will work with conky, just need to modify the conkyrc file to:

Temp: ${i8k_cpu_temp} Fan: ${i8k_right_fan_status}

if you read the variables page (http://conky.sourceforge.net/variables.html) you can get a whole bunch of options.

thanks for the bandwidth,
ephman

loserboy
August 10th, 2006, 06:03 AM
if you have a name brand the model

AMD athlon64
asus mobo - A8NE

one thing i noticed is under "Temp: ${Temp: ${acpitemp}"
should I change that to adt746xcpu or something...just from glancing at that link

kerry_s
August 10th, 2006, 07:46 AM
ok did what u said and changed my file to match yours but now when i click on the icon on my desktop for it nothing happens

Are you sure you made it executable? Is your launcher pointing to it? When you click on the file you created does it launch/kill conky?

LordMau
August 10th, 2006, 01:15 PM
Great HOWTO! I've always wanted to get Conky setup properly, but never could. Thanks to your HOWTO, I've got a great lookin' Conky on my desktop.

However, I have one question...I use XGL/Compiz and use the "fade" plugin with it. The fade plugin for XGL/Compiz darkens a window that is not selected to put it out of focus and put it in the background. The problem is that it darkens Conky when a window is selected, which makes it seem as if it's not blended with my wallpaper...which is ugly. Is there some way I can exempt Conky from fading in XGL/Compiz? I've attatched screenshots to show you what it looks like when it's faded and what it looks like when it's not.

Try to play around with the
own_window_type setting. You can set it to desktop to make it sticky across all workspace and compiz ignores the window from effects, such as fade and wobble. Still it still seems quirky on my xgl/compiz system, as conky sometimes justs disappears. YMMV and may be more consistent on your setup.

kerry_s
August 10th, 2006, 01:20 PM
My bag, somethings changed during the updates. Here is the code that is working for me and not throwing any errors in the .xsession-errors file.


#!/bin/sh
if pidof conky | grep [0-9] > /dev/null
then
exec killall conky
else
exec conky
fi

Sorry about that i only just realized it had stopped working.

ephman
August 10th, 2006, 07:00 PM
AMD athlon64
asus mobo - A8NE

one thing i noticed is under "Temp: ${Temp: ${acpitemp}"
should I change that to adt746xcpu or something...just from glancing at that link

sure give it a shot. are you 100% that the 40 degrees is not accurate. my machine is pretty stable. you can test it by running a stress test and maxin g out the cpu, if it doesn't budge after a few minutes then you'll you have a temp issue.

thanks,
ephman

loserboy
August 10th, 2006, 07:27 PM
sure give it a shot. are you 100% that the 40 degrees is not accurate.

ya know it might be i guess, its just that even before i configured lm-sensors it was showing 40

I haven't setup a kill switch for conky yet so i have to restart everytime i change stuff...guess i better get that out of the way 1st

Mandor
August 10th, 2006, 07:49 PM
It would be nice if ubuntu maintainers of that package finally update it. Any idea how such request can be addressed?

simplyw00x
August 10th, 2006, 10:20 PM
I haven't setup a kill switch for conky yet so i have to restart everytime i change stuff...guess i better get that out of the way 1st
killall -SIGUSR1 conky

*sigh*

simplyw00x
August 10th, 2006, 10:24 PM
It would be nice if ubuntu maintainers of that package finally update it. Any idea how such request can be addressed?
https://wiki.ubuntu.com/MOTU/Packages/Candidates

- suggest conky there.

loserboy
August 10th, 2006, 10:25 PM
killall -SIGUSR1 conky

*sigh*

:) sorry i don't know very much about this, can i just make a new launcher with that command

or do i make an empty file then make it executable?

reason i ask is cuz im at work and can't test it till i get home

Kuraboy
August 10th, 2006, 11:11 PM
Hi!

nice how-to, thnx :)

I have a simpel conky ;) just what I need, but I dont understand something...

it shows a different usage of ram than what Ubuntu shows, why?

conky - 97%
ubuntu - 42,8 %

I heared somewhere that it calculates in a different matter? so how dose it works and how can I make it show the same usage as Ubuntu dose?

thnx

EDIT:
I have another problem, and it seems that many have it too, when ever I click the button show desktop, conky minimizez and I must type wmctrl -a conky to show it again, isnt there another and better solution?

simplyw00x
August 11th, 2006, 12:11 AM
sorry i don't know very much about this, can i just make a new launcher with that command
Either way will do.

Kuraboy
August 12th, 2006, 01:48 PM
no one knows how I can solve the ram usage thing? :(

Kashirigi
August 14th, 2006, 11:38 PM
I can't answer the RAM usage thing, but I can solve a problem that was plaguing me for a long time in XFCE.

In XFCE, conky wouldn't write to the root window correctly. Setting it to be its own window worked, but if you had the composite manager showing shadows, it would be ugly, and against the spirit of conky.

After peering through the man pages, for XFCE, make sure you this in your .conkyrc

own_window yes
own_window_type override
own_window_transparent yes


the key is the override.

Goodbye adesklets.

spockrock
August 15th, 2006, 12:27 AM
hey I have a question I would like to add a couple of temperatures from my configured lm-sensors to conky but I am not sure how.

when I enter sensors in terminal I get this


it8712-isa-0290
Adapter: ISA adapter
VCore 1: +1.33 V (min = +1.42 V, max = +1.57 V) ALARM
VCore 2: +1.17 V (min = +2.40 V, max = +2.61 V) ALARM
+3.3V: +6.56 V (min = +3.14 V, max = +3.46 V) ALARM
+5V: +4.95 V (min = +4.76 V, max = +5.24 V)
+12V: +11.71 V (min = +11.39 V, max = +12.61 V)
-12V: -13.74 V (min = -12.63 V, max = -11.41 V) ALARM
-5V: -1.24 V (min = -5.26 V, max = -4.77 V) ALARM
Stdby: +4.97 V (min = +4.76 V, max = +5.24 V)
VBat: +3.10 V
fan1: 1110 RPM (min = 0 RPM, div = 8)
fan2: 2008 RPM (min = 3013 RPM, div = 8) ALARM
fan3: 4115 RPM (min = 3013 RPM, div = 8)
CPU Temp: +33°C (low = +15°C, high = +40°C) sensor = diode
PWMIC Temp:
+36°C (low = +15°C, high = +45°C) sensor = thermistor
Nforce 4 Temp:
+48°C (low = +15°C, high = +45°C) sensor = thermistor

ds1621-i2c-1-4e
Adapter: SMBus nForce2 adapter at 1c40
temp: +0.00°C (low = +0.0°C, high = +0.0°C)



The two Temps I would like to add are pwmic temp and the nforce 4 temp but I have no idea what variables to call I am going throught the man pages but I cant seem to find it.

spockrock
August 15th, 2006, 02:01 AM
never mind I figured it out.

and thanks for the great guide.

ophanim
August 15th, 2006, 02:37 AM
Great HOWTO! I've always wanted to get Conky setup properly, but never could. Thanks to your HOWTO, I've got a great lookin' Conky on my desktop.

However, I have one question...I use XGL/Compiz and use the "fade" plugin with it. The fade plugin for XGL/Compiz darkens a window that is not selected to put it out of focus and put it in the background. The problem is that it darkens Conky when a window is selected, which makes it seem as if it's not blended with my wallpaper...which is ugly. Is there some way I can exempt Conky from fading in XGL/Compiz? I've attatched screenshots to show you what it looks like when it's faded and what it looks like when it's not.

Try:


own_window yes
own_window_type normal
own_window_hints undecorated,below,sticky

Ahriman
August 16th, 2006, 03:02 AM
no one knows how I can solve the ram usage thing? :(

Can you post or attach your .conkyrc for us to look at? It could be as simple as a slight spelling error or referencing the wrong function in the RAM section.

kurup
August 16th, 2006, 02:48 PM
I've got the "dbe" module but conky still flickers a bit. I changed the refresh time to 1 min not to make it so annoying.
Can the flickering be completely eliminated?
Btw, I use Compiz as window manager.

I got (I think) a nice config for my conky.

Thats a brilliant looking conky config! Can you please share the .conkyrc file?

Kuraboy
August 16th, 2006, 07:57 PM
Can you post or attach your .conkyrc for us to look at? It could be as simple as a slight spelling error or referencing the wrong function in the RAM section.

here is my .conkyrc, I have looked at others and it seems okay.



# Conky configuration
background yes
use_xft yes
xftfont Monospace:size=9
xftalpha 0.8
out_to_console no
update_interval 2
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
stippled_borders 5
border_margin 4
border_width 1
default_color grey
default_shade_color black
default_outline_color black
alignment bottom_left
gap_x 1
gap_y 1
no_buffers no
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer no

TEXT
${color white}$alignc$sysname $kernel @ ${freq_g}GHz
${color white}$alignc${exec whoami} @ $nodename
$color$stippled_hr
${color}Date: ${color white}${time %A,%d %B}
${color}Uptime: ${color white}$uptime
$color$stippled_hr
${color}CPU: ${color white} ${cpu cpu1}% ${cpubar cpu1}
${color}RAM: ${color white} $memperc% ${membar}
${color}Swap: ${color white} $swapperc% ${swapbar}
$color$stippled_hr
${color}Root: ${color white} ${fs_free /} ${fs_bar /}
${color}Lin2: ${color white} ${fs_free /media/hda2} ${fs_bar /media/hda2}
${color}WinXP: ${color white} ${fs_free /media/hda1} ${fs_bar /media/hda1}
${color}WinLin: ${color white} ${fs_free /media/hda5} ${fs_bar /media/hda5}
${color}BigStorage: ${color white} ${fs_free /media/hdb1} ${fs_bar /media/hdb1}
${color}TheHeart: ${color white} ${fs_free /media/hdd1} ${fs_bar /media/hdd1}

seldon77
August 18th, 2006, 10:22 AM
Thanks everyone for the further followup questions and suggestions.

I've made some updates to the how-to page to add everyones ideas. In particular, i've added the instructions for XFCE.

Also, I've added

${execi 60 wmctrl -a conky}
to .conkyrc

As people have said, conky has a bug where in some circumstances, like after a screensaver has come on or if you have hit the 'show desktop' button that conky will disappear. I think that code will ensure that conky will make sure that it is on the root desktop every 60 seconds. I've tried it for a while, and it seems to work, but i'll listen to feedback on it.

Note you will need the 'wmctrl' program, which I have now also put into the dependencies, will need to be installed from universe.

seldon77
August 18th, 2006, 10:28 AM
hey is there a solution to the XGL/Compiz issue?

if there is, i'll add it to the how-to

jason.b.c
August 18th, 2006, 03:52 PM
Got a problem...!!! This package dosen't exist for me....


jason@Hp-Vectra-VL:~$ sudo apt-get --assume-yes install libxext-dev lm-sensors build-essential checkinstall wmctrl
Password:
Reading package lists... Done
Building dependency tree... Done
Package libxext-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
W: Couldn't stat source package list http://ca.archive.ubuntu.com breezy/main Packages (/var/lib/apt/lists/ca.archive.ubuntu.com_ubuntu_dists_breezy_main_bin ary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Package libxext-dev has no installation candidate
jason@Hp-Vectra-VL:~$


How do i get it otherwise..??](*,)

notjohn101
August 18th, 2006, 09:08 PM
cant get it to double buffer

boys@linux:~$ conky
Conky: /home/boys/.conkyrc: 43: no such configuration: 'borders'
Conky: forked to background, pid is 5294
boys@linux:~$
Conky: desktop window (1200089) is subwindow of root window (44)
Conky: window type - normal
Conky: hint - undecorated
Conky: hint - skip_taskbar
Conky: drawing to created window (2a00002)
Conky: failed to set up double buffer
Conky: drawing to single buffer

OffHand
August 18th, 2006, 10:32 PM
cant get it to double buffer

boys@linux:~$ conky
Conky: /home/boys/.conkyrc: 43: no such configuration: 'borders'
Conky: forked to background, pid is 5294
boys@linux:~$
Conky: desktop window (1200089) is subwindow of root window (44)
Conky: window type - normal
Conky: hint - undecorated
Conky: hint - skip_taskbar
Conky: drawing to created window (2a00002)
Conky: failed to set up double buffer
Conky: drawing to single buffer

Did you do step 7 of this faq?

http://conky.sourceforge.net/faq.html

notjohn101
August 19th, 2006, 03:40 AM
thx that did the trick...must of missed it

jason.b.c
August 19th, 2006, 04:23 AM
Got a problem...!!! This package dosen't exist for me....



How do i get it otherwise..??](*,)

So could someone give me some advise on my problem..?:D

jason.b.c
August 19th, 2006, 02:10 PM
Why can't i get this package..?? , I just ran sudo update...I don't understand what i'm missing..


jason@Hp-Vectra-VL:~$ sudo apt-get --assume-yes install libxext-dev lm-sensors build-essential checkinstall wmctrl
Password:
Reading package lists... Done
Building dependency tree... Done
Package libxext-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
W: Couldn't stat source package list http://ca.archive.ubuntu.com breezy/main Packages (/var/lib/apt/lists/ca.archive.ubuntu.com_ubuntu_dists_breezy_main_bin ary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Package libxext-dev has no installation candidate
jason@Hp-Vectra-VL:~$

](*,)

Rexbron!
August 19th, 2006, 06:08 PM
First try

sudo apt-get update


If that does not work, make sure that the universe repositories are uncommented in you sources.list file.

EDIT: What version of Ubuntu are you using? (Your profile says 5.10)

jason.b.c
August 19th, 2006, 07:45 PM
First try

sudo apt-get update
I've done that several times...


If that does not work, make sure that the universe repositories are uncommented in you sources.list file.
They are...As far as i know everything is enabled..


EDIT: What version of Ubuntu are you using? (Your profile says 5.10)

Breezy..! , v5.10 Does that matter..??

kencoe
August 19th, 2006, 11:38 PM
Great Post!!!

Finally have a nice looking script setup, but...

For some reason Conky will switch me to the workspace that it was started in ever thirty seconds, no matter what I am doing. don't think it is refresh as conky is refreshing in five second intervals. Any ideas would be helpful.

This one is kinda buggin me. It's never good to suddenly be typing into the wrong app or term window.

Any clues would be helpful. Config listed below.

...
${execi 30 wmctrl -a conky}
...

Edit:
Just re-read the man for wmctrl, and realized the problem. Had .conky open in gedit in WS-3 and conky Website in WS-1. wmctrl was finding Conky windows everywhere. Is the maybe a way to select in wmctrl by process ID or name instead of window name? Here's a screenshot of mine in case you want to look...

seldon77
August 20th, 2006, 03:26 PM
Great Post!!!
${color #7f8ed3}${execi 30 tail -n3 /var/log/messages | fold -w48}
${color #436EEE}$stippled_hr
${execi 30 wmctrl -a conky}

Just re-read the man for wmctrl, and realized the problem. Had .conky open in gedit in WS-3 and conky Website in WS-1. wmctrl was finding Conky windows everywhere. Maybe there is a way to do it by process?

Yeah... its the ${execi 30 wmctrl -a conky} code... that will run every 60 seconds and make sure conky is on the root window.

hmmm... its a catch 22... if that code isn't there then sometimes conky disappears (ie. after screensaver runs, etc sometimes). but you say it causes trouble if you use a few different workspaces? hmmm....

I don't know enough about the wmctrl code. could this be fixed by making conky sticky across all workspaces? its the windows_hint code in .conkyrc.

I don't have enough time to look at it now - does anyone have any ideas? if it causes problems remove the wmctrl code from .conkyrc - but I'm hoping theres some way to keep it in.

jason.b.c
August 22nd, 2006, 01:52 AM
Why can't i get this package..?? , I just ran sudo update...I don't understand what i'm missing..

](*,)

Well i guess i'll never have Conky , I just can't figure it out , How can everybody else get that package but i can't..???

Neo40
August 22nd, 2006, 02:35 AM
Hi,

I have conky working fine but there is a small problem. In my ~.conkyrc I have this part:


${color}Name CPU% MEM%
${color green} ${top name 1} ${top cpu 1} ${top mem 1}
${color green} ${top name 2} ${top cpu 2} ${top mem 2}
${color green} ${top name 3} ${top cpu 3} ${top mem 3}
${color green} ${top name 4} ${top cpu 4} ${top mem 4}
${color green} ${top name 5} ${top cpu 5} ${top mem 5}

The problem is the text is not always align. Here is an example what I mean:



Name CPU% MEM%
bittorent 47.12 23.55
Xorg 17.44 10.15
conky 0.33 0.49
xfce4-panel 0.33 2.47
xchat 1.67 2.44

So, how can I align columns correctly?
Thanks!

kencoe
August 22nd, 2006, 02:47 AM
jason.b.c,
Stop bangin your head already! You're makin ME hurt...

Try two things for me, man.

try comparing your sources.list to the one at this thread http://www.ubuntuforums.org/showthread.php?t=92672


then run-- sudo apt-get update
and
then run-- sudo apt-get install xlibs

........
See if that helps

kencoe
August 22nd, 2006, 02:51 AM
So, how can I align columns correctly?

Do You have the string "use_spacer yes" in your .conkyrc ?

Neo40
August 22nd, 2006, 03:07 AM
Do You have the string "use_spacer yes" in your .conkyrc ?

Yes, I have "use_spacer yes" and it doesnt help much.

jason.b.c
August 22nd, 2006, 04:22 AM
jason.b.c,
Stop bangin your head already! You're makin ME hurt...

Try two things for me, man.

try comparing your sources.list to the one at this thread http://www.ubuntuforums.org/showthread.php?t=92672


then run-- sudo apt-get update
and
then run-- sudo apt-get install xlibs

........
See if that helps


Great , Now it's even worse..


jason@Hp-Vectra-VL:~$ sudo apt-get update
Ign http://packages.freecontrib.org breezy Release.gpg
Get:1 http://archive.ubuntu.com breezy Release.gpg [189B]
Get:2 http://archive.ubuntu.com breezy-updates Release.gpg [189B]
Get:3 http://security.ubuntu.com breezy-security Release.gpg [189B]
Ign http://packages.freecontrib.org breezy Release
Get:4 http://archive.ubuntu.com breezy-backports Release.gpg [189B]
Hit http://archive.ubuntu.com breezy Release
Hit http://security.ubuntu.com breezy-security Release
Ign http://packages.freecontrib.org breezy/free Packages
Hit http://archive.ubuntu.com breezy-updates Release
Hit http://security.ubuntu.com breezy-security/main Packages
Ign http://packages.freecontrib.org breezy/non-free Packages
Hit http://archive.ubuntu.com breezy-backports Release
Ign http://archive.ubuntu.com breezy/main Packages
Get:5 ftp://cipherfunk.org breezy Release.gpg [189B]
Hit http://archive.ubuntu.com breezy/restricted Packages
Hit http://archive.ubuntu.com breezy/main Sources
Hit http://archive.ubuntu.com breezy/restricted Sources
Hit http://archive.ubuntu.com breezy/universe Packages
Ign http://archive.ubuntu.com breezy/multiverse Packages
Hit http://archive.ubuntu.com breezy/universe Sources
Hit http://security.ubuntu.com breezy-security/restricted Packages
Hit http://security.ubuntu.com breezy-security/main Sources
Ign http://packages.freecontrib.org breezy/free Sources
Ign http://packages.freecontrib.org breezy/non-free Sources
Hit http://archive.ubuntu.com breezy/multiverse Sources
Hit http://archive.ubuntu.com breezy-updates/main Packages
Hit http://archive.ubuntu.com breezy-updates/restricted Packages
Hit http://archive.ubuntu.com breezy-updates/main Sources
Hit http://security.ubuntu.com breezy-security/restricted Sources
Hit http://security.ubuntu.com breezy-security/universe Packages
Hit http://security.ubuntu.com breezy-security/multiverse Packages
Hit http://security.ubuntu.com breezy-security/universe Sources
Hit http://security.ubuntu.com breezy-security/multiverse Sources
Hit http://packages.freecontrib.org breezy/free Packages
Hit http://archive.ubuntu.com breezy-updates/restricted Sources
Hit http://archive.ubuntu.com breezy-backports/main Packages
Hit http://archive.ubuntu.com breezy-backports/restricted Packages
Hit http://archive.ubuntu.com breezy-backports/universe Packages
Hit http://archive.ubuntu.com breezy-backports/multiverse Packages
Hit http://packages.freecontrib.org breezy/non-free Packages
Get:6 http://archive.ubuntu.com breezy/main Packages [767kB]
Get:7 http://archive.ubuntu.com breezy/multiverse Packages [116kB]
99% [6 Packages gzip 0] [Query] [Waiting for headers]
gzip: stdin: not in gzip format
Err http://archive.ubuntu.com breezy/main Packages
Sub-process gzip returned an error code (1)
99% [7 Packages gzip 0] [Query] [Waiting for headers]
gzip: stdin: not in gzip format
Err http://archive.ubuntu.com breezy/multiverse Packages
Sub-process gzip returned an error code (1)
Hit ftp://cipherfunk.org breezy Release
Hit http://packages.freecontrib.org breezy/free Sources
Ign ftp://cipherfunk.org breezy Release
Hit http://packages.freecontrib.org breezy/non-free Sources
Get:8 ftp://cipherfunk.org breezy/main Packages
Ign ftp://cipherfunk.org breezy/main Packages
Hit ftp://cipherfunk.org breezy/main Packages
Fetched 195B in 7s (27B/s)
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/breezy/main/binary-i386/Packages.gz Sub-process gzip returned an error code (1)
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/breezy/multiverse/binary-i386/Packages.gz Sub-process gzip returned an error code (1)
Reading package lists... Done
W: GPG error: ftp://cipherfunk.org breezy Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4CF19C3233BAC1B3
W: Couldn't stat source package list http://archive.ubuntu.com breezy/main Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_breezy_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://archive.ubuntu.com breezy/multiverse Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_breezy_multiverse_ binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones used instead.
jason@Hp-Vectra-VL:~$




jason@Hp-Vectra-VL:~$ sudo apt-get install xlibs
Reading package lists... Done
Building dependency tree... Done
W: Couldn't stat source package list http://archive.ubuntu.com breezy/main Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_breezy_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://archive.ubuntu.com breezy/multiverse Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_breezy_multiverse_ binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Couldn't find package xlibs
jason@Hp-Vectra-VL:~$


And here's the list i have now..

deb http://archive.ubuntu.com/ubuntu breezy main restricted
deb-src http://archive.ubuntu.com/ubuntu breezy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu breezy-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu breezy-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team

deb http://archive.ubuntu.com/ubuntu breezy universe multiverse
deb-src http://archive.ubuntu.com/ubuntu breezy universe multiverse

## Security Updates
deb http://security.ubuntu.com/ubuntu breezy-security main restricted
deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted

deb http://security.ubuntu.com/ubuntu breezy-security universe multiverse
deb-src http://security.ubuntu.com/ubuntu breezy-security universe multiverse

## official backports
deb http://archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse

# If you get errors about missing keys follow these command's :
# gpg --keyserver subkeys.pgp.net --recv 33BAC1B3
# gpg --export --armor 33BAC1B3 | sudo apt-key add -
#
# Cipherfunk multimedia packages (packages, GPG key: 33BAC1B3)
deb ftp://cipherfunk.org/pub/packages/ubuntu/ breezy main

## plf primary repo
## http 100mbit/s mirror provided thanks to OVH http://ovh.com
deb http://packages.freecontrib.org/ubuntu/plf/ breezy free non-free
deb-src http://packages.freecontrib.org/ubuntu/plf/ breezy free non-free

## plf mirror. use if primary repo is offline
## FTP mirror from http://free.fr (french ISP)
## deb ftp://ftp.free.fr/pub/Distributions_Linux/plf/ubuntu/plf/ breezy free non-free
## deb-src ftp://ftp.free.fr/pub/Distributions_Linux/plf/ubuntu/plf/ breezy free non-free

##
## Use the following repos ONLY if you need them.
## To use one remove the "##" from the line that starts with "## deb".
##

## official wine apt repository
##deb http://wine.budgetdedicated.com/apt breezy main
##deb-src http://wine.budgetdedicated.com/apt breezy main


## opera web browser
## deb http://deb.opera.com/opera/ etch non-free

## Oo2 final - you can optionally use this one until OOo2 final arrives in backports
## deb http://people.ubuntu.com/~doko/OOo2 ./

## skype
## deb http://download.skype.com/linux/repos/debian/ stable non-free

](*,) ](*,)

seldon77
August 22nd, 2006, 10:40 AM
Well i guess i'll never have Conky , I just can't figure it out , How can everybody else get that package but i can't..???

You probably don't need that program. I included that one in the apt-get mostly for people who want to compile conky themselves.

just try skipping that particular file and going on from there.

calvinthomas
August 22nd, 2006, 11:19 AM
This looks great except for I have a dark background which I really want to keep, how can I brighten conky up? (or perhaps make the text bolder!)

Calv

calvinthomas
August 22nd, 2006, 04:01 PM
Ok, i've fixed the colour issue but cannot at all find a way to get it into the top right corner (having align set as in the original post puts it slightly left of centre and a little bit too low.)

I think the reason is that i'm in XGL with compiz, can anyone tell me how I can set it into the right hand corner as in the instructions?

My resolution is 1280 x 800 if that makes any difference.

Calv

calvinthomas
August 22nd, 2006, 04:28 PM
So sorry for the triple post in a row, I have found an odd quirk, if I open it up from a terminal, it opens in the correct place. It seems to be a problem with the startup, is there a way to get it to open in a terminal on startup (and then close the terminal down?)

Calv

Camino
August 23rd, 2006, 08:31 PM
Hi,
thanks for this nice tutorial...never thought that such a cool monitor exists :)

Just got one small problem. The memory usage is not correctly shown (have a look at the attached screenshot)

Anybody else noticed this too or is just me ?

Bye

0okami
September 1st, 2006, 12:41 PM
i must be doing something wrong... Its still flickering and double buffer fails to load.

xorg.conf:

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
FontPath "/usr/share/X11/fonts/misc"
FontPath "/usr/share/X11/fonts/cyrillic"
FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/X11/fonts/Type1"
FontPath "/usr/share/X11/fonts/100dpi"
FontPath "/usr/share/X11/fonts/75dpi"
# path to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
Load "vbe"
Load "dbe"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/wacom" # Change to
# /dev/input/event
# for USB
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/wacom" # Change to
# /dev/input/event
# for USB
Option "Type" "eraser"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/wacom" # Change to
# /dev/input/event
# for USB
Option "Type" "cursor"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "Device"
Identifier "NVIDIA Corporation NV34 [GeForce FX 5200 Ultra]"
Driver "nvidia"
BusID "PCI:2:0:0"
# these lines were added by ookami to implement a second monitor
Option "TwinView" "on"
#Option "MetaModes" "1280x1024,1280x1024"
#Option "MetaModes" "1024x768 +0+0, 1024x768 +1024+0;"
Option "MetaModes" "1280x1024,1280x1024,1280x1024"
Option "SecondMonitorHorizSync" "30-81"
Option "SecondMonitorVertRefresh" "56-75"
Option "TwinViewOrientation" "RightOf"
Option "NoLogo" "true"
#end dual monitor
EndSection


########adding 2nd vid card
Section "Device"
Identifier "NVIDIA Corporation NV34 [GeForce FX 5500]"
Driver "nvidia"
BusID "PCI:1:10:0"
EndSection
############ end 2nd vid card


Section "Monitor"
Identifier "SyncMaster"
Option "DPMS"
EndSection

################ added monitor
Section "Monitor"
Identifier "3rd_monitor"
Option "DPMS"
HorizSync 30-81
VertRefresh 56-75
EndSection
###############end added



Section "Screen"
Identifier "screen1"
Device "NVIDIA Corporation NV34 [GeForce FX 5200 Ultra]"
Monitor "SyncMaster"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
EndSection



######### added screen specs
Section "Screen"
Identifier "screen2"
Device "NVIDIA Corporation NV34 [GeForce FX 5500]"
Monitor "3rd_monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
EndSection
######## end added



Section "ServerLayout"
Identifier "Layout0"
Screen "screen1"
Screen "screen2" RightOf "screen1"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
Option "Xinerama""true"
EndSection


Section "DRI"
Mode 0666
EndSection



.conky_raidmax
(on Conky 1.4.2 compiled Jun 12 2006)

# # # # # # # # # # # # # # # # # # # #
# Conky Script
# Edited by 0okami 2006-08-31
# # # # # # # # # # # # # # # # # # # #

# set to yes if you want Conky to be forked in the background
background no

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
font 8x13
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1

# Use Xft?
use_xft no

# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=6


# Create own window instead of using desktop (required in nautilus)
own_window yes

own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_colour black



# Text alpha when using Xft
xftalpha 0.8

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 1

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
#minimum_size 280 5
#maximum_width 150

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 10

# border margins
border_margin 4

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color white
default_outline_color white

# Text alignment, other possible values are commented
#minimum_size 10 10
gap_x 13
gap_y 13
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text

# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer no

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# boinc (seti) dir
# seti_dir /opt/seti

# Possible variables to be used:
#
# Variable Arguments Description
# acpiacadapter ACPI ac adapter state.
# acpifan ACPI fan state
# acpitemp ACPI temperature.
# adt746xcpu CPU temperature from therm_adt746x
# adt746xfan Fan speed from therm_adt746x
# battery (num) Remaining capasity in ACPI or APM
# battery. ACPI battery number can be
# given as argument (default is BAT0).
# buffers Amount of memory buffered
# cached Amount of memory cached
# color (color) Change drawing color to color
# cpu CPU usage in percents
# cpubar (height) Bar that shows CPU usage, height is
# bar's height in pixels
# downspeed net Download speed in kilobytes
# downspeedf net Download speed in kilobytes with one
# decimal
# exec shell command Executes a shell command and displays
# the output in torsmo. warning: this
# takes a lot more resources than other
# variables. I'd recommend coding wanted
# behaviour in C and posting a patch :-).
# execi interval, shell Same as exec but with specific interval.
# command Interval can't be less than
# update_interval in configuration.
# fs_bar (height), (fs) Bar that shows how much space is used on
# a file system. height is the height in
# pixels. fs is any file on that file
# system.
# fs_free (fs) Free space on a file system available
# for users.
# fs_free_perc (fs) Free percentage of space on a file
# system available for users.
# fs_size (fs) File system size
# fs_used (fs) File system used space
# hr (height) Horizontal line, height is the height in
# pixels
# i2c (dev), type, n I2C sensor from sysfs (Linux 2.6). dev
# may be omitted if you have only one I2C
# device. type is either in (or vol)
# meaning voltage, fan meaning fan or temp
# meaning temperature. n is number of the
# sensor. See /sys/bus/i2c/devices/ on
# your local computer.
# kernel Kernel version
# loadavg (1), (2), (3) System load average, 1 is for past 1
# minute, 2 for past 5 minutes and 3 for
# past 15 minutes.
# machine Machine, i686 for example
# mails Mail count in mail spool. You can use
# program like fetchmail to get mails from
# some server using your favourite
# protocol. See also new_mails.
# mem Amount of memory in use
# membar (height) Bar that shows amount of memory in use
# memmax Total amount of memory
# memperc Percentage of memory in use
# new_mails Unread mail count in mail spool.
# nodename Hostname
# outlinecolor (color) Change outline color
# pre_exec shell command Executes a shell command one time before
# torsmo displays anything and puts output
# as text.
# processes Total processes (sleeping and running)
# running_processes Running processes (not sleeping),
# requires Linux 2.6
# shadecolor (color) Change shading color
# stippled_hr (space), Stippled (dashed) horizontal line
# (height)
# swapbar (height) Bar that shows amount of swap in use
# swap Amount of swap in use
# swapmax Total amount of swap
# swapperc Percentage of swap in use
# sysname System name, Linux for example
# time (format) Local time, see man strftime to get more
# information about format
# totaldown net Total download, overflows at 4 GB on
# Linux with 32-bit arch and there doesn't
# seem to be a way to know how many times
# it has already done that before torsmo
# has started.
# totalup net Total upload, this one too, may overflow
# updates Number of updates (for debugging)
# upspeed net Upload speed in kilobytes
# upspeedf net Upload speed in kilobytes with one
# decimal
# uptime Uptime
# uptime_short Uptime in a shorter format
#
# seti_prog Seti@home current progress
# seti_progbar (height) Seti@home current progress bar
# seti_credit Seti@hoome total user credit


# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
#${font Dungeon:style=Bold:pixelsize=10}I can change the font as well
#${font Verdana:size=10}as many times as I choose
#${font Perry:size=10}Including UTF-8,
#${font Luxi Mono:size=10}justo como este texto que o google traduz fêz o português
# stuff after 'TEXT' will be formatted on screen
#${font Grunge:size=12}${time %a %b %d}${alignr -25}${time %k:%M}
#
# # # # # beyond this point (TEXT) will be on screen # # # # #


TEXT
$nodename: $sysname $kernel
System Uptime:$color $uptime

System/CPU: $machine (1.8Ghz)
${cpugraph 70,290 000000 aa0000}
${voffset -67} Current CPU Freq. ${freq_dyn_g}Ghz. (${color ffaaaa}${cpu}%$color)
Temp: ${acpitemp}c / ${acpitempf}F
Load:$color $loadavg
Processes: $processes Running: $running_processes


${color orange}Name PID CPU% MEM%
${color #ffffff} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color #bbbbbb} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color #aaaaaa} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color #888888} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}$color

RAM Usage: $color $mem of $memmax ${color orange}$memperc%$color ${membar 8,22}

${color orange}Name PID CPU% MEM%
${color #ffffff} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color #bbbbbb} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color #aaaaaa} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color #888888} ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
${color #666666} ${top_mem name 5} ${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5}$color


Disk Drive: hda (ext3 Linux)
${color 222222}${fs_bar 16,300 /}$color$color
${voffset -20}${color white}${fs_size /} $color| ${color #ff0000}${fs_used /} $color| ${color #00ff00}${fs_free /} ${color}| I/O: ${diskio /}

Disk Drive: hda5 (fat32 os-share)
${color 222222}${fs_bar 16,300 /home/ookami/os-share}$color
${voffset -20}${color white}${fs_size /home/ookami/os-share} $color| ${color #ff0000}${fs_used /home/ookami/os-share} $color| ${color #00ff00}${fs_free /home/ookami/os-share} ${color}| I/O: ${diskio /home/ookami/os-share}

Disk Drive: sda (Cruzer Micro)
${color 222222}${fs_bar 16,300 /media/usbdisk}$color
${voffset -20}${color white}${fs_size /media/usbdisk} $color| ${color #ff0000}${fs_used /media/usbdisk} $color| ${color #00ff00}${fs_free /media/usbdisk} ${color}| I/O: ${diskio /media/usbdisk}

Disk Drive: sda (XSDRIVE)
${color 222222}${fs_bar 16,300 /media/XSDRIVE}$color
${voffset -20}${color white}${fs_size /media/XSDRIVE} $color| ${color #ff0000}${fs_used /media/XSDRIVE} $color| ${color #00ff00}${fs_free /media/XSDRIVE} ${color}| I/O: ${diskio /media/XSDRIVE}


Swap: $swap | $swapmax | - $swapperc% ${swapbar 8,100}


${color #BBBBBB} Wired (IP ${addr eth1})
${downspeedgraph eth1 45,140 ff0000 0000ff} ${upspeedgraph eth1 45,140 0000ff ff0000}
${voffset -40} Down: ${downspeedf eth1} k/s Up: ${upspeedf eth1} k/s
Total: ${totaldown eth1} Total: ${totalup eth1}

${color #BBBBBB} WiFi (IP ${addr wlan0})
${downspeedgraph ath0 45,140 ff0000 0000ff} ${upspeedgraph ath0 45,140 0000ff ff0000}
${voffset -40} Down: ${downspeedf ath0} k/s Up: ${upspeedf ath0} k/s
Total: ${totaldown ath0} Total: ${totalup ath0}



terminal output:

ookami@navi-001:~$ conky -c .conky_raidmax
Conky: desktop window (e00054) is subwindow of root window (20e)
Conky: window type - normal
Conky: hint - undecorated
Conky: hint - below
Conky: hint - sticky
Conky: hint - skip_taskbar
Conky: hint - skip_pager
Conky: drawing to created window (2600002)
Conky: failed to set up double buffer
Conky: drawing to single buffer


This returns nothing:


ookami@navi-001:~$ xdpyinfo|grep DOUBLE
ookami@navi-001:~$
ookami@navi-001:~$


Looking at my Xorg.0.log (pertaining to double buffer...:


(II) Module dbe: vendor="X.Org Foundation"
compiled for 7.0.0, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 0.2
(II) Loading extension DOUBLE-BUFFER


^ looks ok... there are no errors

Not sure what im missing. Ive set this up on other machines easly... but for some reason, today its not going to well... Im probably over looking something simple as i've been up for 18 hours so far... so, if you see it, point it out please.

zzzzZZZ

Anonii
September 1st, 2006, 03:42 PM
Some questions:

I usually reach the Desktop by using the "Hide All Windows" button, and that probably hides the Conky window too => I cant see it :P
How can I stop it from minimizing or something?

Also, does it support other players too? Like Banshee?

seldon77
September 2nd, 2006, 11:18 AM
yes you are right

a few weeks ago i included some code in the last line of .conkyrc that will make sure conky is on the root window every 30 seconds or so (wmctl). Just wait a few seconds and conky should reappear.

.... yep ... just tried it - it works.






Some questions:

I usually reach the Desktop by using the "Hide All Windows" button, and that probably hides the Conky window too => I cant see it :P
How can I stop it from minimizing or something?

Also, does it support other players too? Like Banshee?

Bigga
September 2nd, 2006, 12:17 PM
Hi evryone! Great tute there pal.

I've got one question though. I'm running xubuntu on a server install and I was wondering if there was anyway to get conky running as a screensaver? or sending it's output to one?

I ask because I don't sit in front of the server but it would be nice to be able to see all the info from across the room. Any ideas?

one_stinky_bum
September 17th, 2006, 12:19 AM
can anyone tell me how I can set it into the right hand corner as in the instructions?


I use "alignment top_right" and it works on aiglx+compiz. Maybe this would help.

I have some questions of my own: can I enable alpha blending for the graphs + can I make them such that they don't fill the area under the curve? How do I make it appear on all workspaces? It would be nice to exclude compiz shadows from the conky window.
Thanks.

k9brand
September 17th, 2006, 02:58 AM
Mine still flickers as well :(

Also, everytime conky updates itself, my screen loses focus...

hikaricore
September 17th, 2006, 03:21 AM
I use "alignment top_right" and it works on aiglx+compiz. Maybe this would help.

I have some questions of my own: can I enable alpha blending for the graphs + can I make them such that they don't fill the area under the curve? How do I make it appear on all workspaces? It would be nice to exclude compiz shadows from the conky window.
Thanks.

if you have devilspie make a file in the .devilspie directory inside your home dir called conky.ds and copy paste:


(if
(matches (application_name) "conky")
(begin
(pin)
)
)

then save.

if you're already using devilspie you'll have it set to autostart so just enjoy the on all desktops feature :)

if not you'll need to do:


sudo apt-get install devilspie

and proceed with the above mentioned instructions after placing devilspie in your startup settings then starting it manually :)


sorry if there are any typos in this message i'm currently fighting with a text color problem whic stops me from being able to see when posting in odd colored forms :P

--aaron

jpyanowski
September 17th, 2006, 03:47 AM
I really want to thank you for this bit of informative software. I thought I had everything done but had left the upstream and downstream expressions referring to eth0 and not wlan0. Now it's looking gooooood!!!!!

one_stinky_bum
September 17th, 2006, 04:44 AM
Thanks for the tip hikaricore. Turns out I was using an older version of conky! I got the latest deb from the first page and now I can do "own_window_type override" and I'm all set. The last thing that baffles me is the poor correlation between the network upspeed value and the graph generated by "upspeedgraph". It seems to me that the upspeedgraph mimics the downspeed graph.

hikaricore
September 17th, 2006, 07:35 AM
Thanks for the tip hikaricore. Turns out I was using an older version of conky! I got the latest deb from the first page and now I can do "own_window_type override" and I'm all set. The last thing that baffles me is the poor correlation between the network upspeed value and the graph generated by "upspeedgraph". It seems to me that the upspeedgraph mimics the downspeed graph.

yea tried the own_window_type override on my system but if i clicked on my gnome desktop conky it would disappear under it O.o worked fine if i clicked on conky for the desktop menu and such tho, didn't feel like figuring it out so for those of us with my issue, devilspie pwns :)

harryc
September 17th, 2006, 01:02 PM
never mind I figured it out.

and thanks for the great guide.What did you do to fix this missing cpu temperature sensor? Here is my sensors readout. I want to display 'CPU Temp' and 'temp3' in Conky. Anyone?

w83627thf-isa-0290
Adapter: ISA adapter
VCore: +1.09 V (min = +1.94 V, max = +1.94 V) ALARM
+12V: +12.65 V (min = +10.82 V, max = +13.19 V)
+3.3V: +3.20 V (min = +3.14 V, max = +3.47 V)
+5V: +5.04 V (min = +4.75 V, max = +5.25 V)
-12V: -12.20 V (min = -10.80 V, max = -13.18 V) ALARM
V5SB: +5.03 V (min = +4.76 V, max = +5.24 V)
VBat: +2.72 V (min = +2.40 V, max = +3.60 V)
fan1: 0 RPM (min = 168750 RPM, div = 8) ALARM
CPU Fan: 0 RPM (min = 1318 RPM, div = 8) ALARM
fan3: 0 RPM (min = 30681 RPM, div = 2) ALARM
M/B Temp: +5°C (high = +22°C, hyst = -96°C) sensor = thermistor
CPU Temp: +29.5°C (high = +80°C, hyst = +75°C) sensor = diode
temp3: +31.5°C (high = +80°C, hyst = +75°C) sensor = thermistor
vid: +0.000 V (VRM Version 9.0)
alarms: Chassis intrusion detection ALARM
beep_enable:
Sound alarm enabled

hikaricore
September 17th, 2006, 03:39 PM
What did you do to fix this missing cpu temperature sensor? Here is my sensors readout. I want to display 'CPU Temp' and 'temp3' in Conky. Anyone?

if you can't find your answer here: http://conky.sourceforge.net/variables.html it probably can't be done :) good luck


also for anyone who needs it, the config manual page as well can be useful:

http://conky.sourceforge.net/config_settings.html

harryc
September 17th, 2006, 03:50 PM
if you can't find your answer here: http://conky.sourceforge.net/variables.html it probably can't be done :) good luck


also for anyone who needs it, the config manual page as well can be useful:

http://conky.sourceforge.net/config_settings.htmlI figured it out. Here's what I used in .conkyrc instead of acpitemp, which did not work on my machine;

Case Temp: ${i2c 9191-0290 temp 2} CPU Temp: ${i2c 9191-0290 temp 3}

one_stinky_bum
September 18th, 2006, 12:08 PM
here's my "no nonsense" conky setup... just need the basics: ram, swap, disk free, wireless strength, disk IO, downloads, uploads and top so that I know which processes to nuke. I wish conky could make graphs out of numbers returned from it's own variables. I want to take the output of the wireless strength signal ${linkstatus eth1} and make it a horizontal bar graph (like the ram indicator), but conky isn't too happy with that.
Here's my .conkyrc config file incase it's of help. I found other posted conkyrc's useful.

Lastly, to make sure the window override works, I wrote a simple script to start conky:

#!/bin/bash
sleep 30 && conky;

The problem was that conky started before compiz started drawing windows, so I just had to make conky wait a bit.


.conkyrc:

# Conky configuration
background yes
use_xft yes
xftfont Bitstream Vera Sans Mono:size=7
xftalpha 0.2
out_to_console no
update_interval 1
total_run_times 0
own_window yes
own_window_type override
own_window_transparent yes
#own_window_hints undecorated,below,skip_taskbar
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades yes
draw_outline yes
draw_borders no
draw_graph_borders yes
stippled_borders 5
border_margin 4
border_width 1
default_color grey
default_shade_color black
default_outline_color black
alignment top_right
gap_x 10
gap_y 30
no_buffers yes
pad_percents 0
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer no
######### a few things I tried that didn't work ###########
#${color #ffffff}${downspeedgraph eth1 upspeedgraph eth1}
#${color}Bat: $apm_battery_time ${apm_battery_life}%
#${color}${pb_battery percent}
#${color}${downspeedgraph eth1 ddaa00 888888 100-upspeedgraph eth1 33ff00 ffffff}

TEXT
${color}${cpugraph cpu1 25}
${color}Ram: ${color 888888}$memperc ${membar}
${color}Swp: ${color 888888}$swapperc ${swapbar}
${color}Dsk: ${color white} ${alignc}${fs_free /} ${alignr}${fs_free_perc /}%
${color}Wrl: ${alignr}${color white}${linkstatus eth1}%
${color white}${voffset 12}IO: ${color white}$diskio${alignr}${voffset -12}${color 888888}${diskiograph 20,100 0}
${color white}${voffset 12}D: ${color white}${downspeedf eth1}k/s ${alignr}${voffset -12}${color 888888}${downspeedgraph eth1 20,100 888888 888888 100}
${color white}${voffset 9}U: ${color white}${upspeedf eth1}k/s ${alignr}${voffset -9}${color 888888}${upspeedgraph eth1 20,100 888888 888888 100}
${color #ddaa00}${top name 1} ${alignc}${top cpu 1} ${alignr}${top mem 1}
${color #888888}${top name 2} ${alignc}${top cpu 2} ${alignr}${top mem 2}

screenie attached. The config file layout is pretty straight forward, I wish I could write a gui for it, like samurize for windows.

OffHand
September 18th, 2006, 08:54 PM
Time to show off my updated conky. A screenshot and the .conkyrc file...

# set to yes if you want Conky to be forked in the background
background no

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
#font 8x13
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=8

own_window_transparent no
#own_window_colour hotpink
# Text alpha when using Xft
xftalpha 0.8

on_bottom yes

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 1
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar
own_window_type override

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 260 5
maximum_width 250

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders no

# border margins
border_margin 4

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color white
default_outline_color white

# Text alignment, other possible values are commented
#alignment top_left
#minimum_size 10 10
gap_x 15
gap_y 60
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text

# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer no

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# none, xmms, bmp, audacious, infopipe (default is none)
xmms_player bmp

# boinc (seti) dir
# seti_dir /opt/seti

# Possible variables to be used:
#
# Variable Arguments Description
# acpiacadapter ACPI ac adapter state.
# acpifan ACPI fan state
# acpitemp ACPI temperature.
# adt746xcpu CPU temperature from therm_adt746x
# adt746xfan Fan speed from therm_adt746x
# battery (num) Remaining capasity in ACPI or APM
# battery. ACPI battery number can be
# given as argument (default is BAT0).
# buffers Amount of memory buffered
# cached Amount of memory cached
# color (color) Change drawing color to color
# cpu CPU usage in percents
# cpubar (height) Bar that shows CPU usage, height is
# bar's height in pixels
# downspeed net Download speed in kilobytes
# downspeedf net Download speed in kilobytes with one
# decimal
# exec shell command Executes a shell command and displays
# the output in torsmo. warning: this
# takes a lot more resources than other
# variables. I'd recommend coding wanted
# behaviour in C and posting a patch :-).
# execi interval, shell Same as exec but with specific interval.
# command Interval can't be less than
# update_interval in configuration.
# fs_bar (height), (fs) Bar that shows how much space is used on
# a file system. height is the height in
# pixels. fs is any file on that file
# system.
# fs_free (fs) Free space on a file system available
# for users.
# fs_free_perc (fs) Free percentage of space on a file
# system available for users.
# fs_size (fs) File system size
# fs_used (fs) File system used space
# hr (height) Horizontal line, height is the height in
# pixels
# i2c (dev), type, n I2C sensor from sysfs (Linux 2.6). dev
# may be omitted if you have only one I2C
# device. type is either in (or vol)
# meaning voltage, fan meaning fan or temp
# meaning temperature. n is number of the
# sensor. See /sys/bus/i2c/devices/ on
# your local computer.
# kernel Kernel version
# loadavg (1), (2), (3) System load average, 1 is for past 1
# minute, 2 for past 5 minutes and 3 for
# past 15 minutes.
# machine Machine, i686 for example
# mails Mail count in mail spool. You can use
# program like fetchmail to get mails from
# some server using your favourite
# protocol. See also new_mails.
# mem Amount of memory in use
# membar (height) Bar that shows amount of memory in use
# memmax Total amount of memory
# memperc Percentage of memory in use
# new_mails Unread mail count in mail spool.
# nodename Hostname
# outlinecolor (color) Change outline color
# pre_exec shell command Executes a shell command one time before
# torsmo displays anything and puts output
# as text.
# processes Total processes (sleeping and running)
# running_processes Running processes (not sleeping),
# requires Linux 2.6
# shadecolor (color) Change shading color
# stippled_hr (space), Stippled (dashed) horizontal line
# (height)
# swapbar (height) Bar that shows amount of swap in use
# swap Amount of swap in use
# swapmax Total amount of swap
# swapperc Percentage of swap in use
# sysname System name, Linux for example
# time (format) Local time, see man strftime to get more
# information about format
# totaldown net Total download, overflows at 4 GB on
# Linux with 32-bit arch and there doesn't
# seem to be a way to know how many times
# it has already done that before torsmo
# has started.
# totalup net Total upload, this one too, may overflow
# updates Number of updates (for debugging)
# upspeed net Upload speed in kilobytes
# upspeedf net Upload speed in kilobytes with one
# decimal
# uptime Uptime
# uptime_short Uptime in a shorter format
#
# seti_prog Seti@home current progress
# seti_progbar (height) Seti@home current progress bar
# seti_credit Seti@hoome total user credit


# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
#${font Dungeon:style=Bold:pixelsize=10}I can change the font as well
#${font Verdana:size=10}as many times as I choose
#${font Perry:size=10}Including UTF-8,
# stuff after 'TEXT' will be formatted on screen
#${font Grunge:size=12}${time %a %b %d}${alignr -25}${time %k:%M}

TEXT
${color #0077ff}$nodename - $sysname $kernel on $machine

${color #0077ff}Uptime:${color lightgrey} $uptime ${color #0077ff} Load:${color lightgrey} $loadavg

${color #0077ff}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'} ${color lightgrey}${freq_dyn}Mhz
${color #0077ff}Usage:${color #0077ff} ${color lightgrey}${cpu}% ${color #0077ff}${cpubar}
${color #0077ff}${cpugraph 000000 0077ff}
${color #0077ff}Proces:${color lightgrey} $processes ${color #0077ff}Run:${color lightgrey} $running_processes ${color #0077ff}CPU:${color lightgrey} ${i2c temp 2}C${color lightgrey} ${color #0077ff}MB:${color lightgrey} ${i2c temp 1}C

${color #0077ff}RAM:${color lightgrey} $mem/$memmax - $memperc% ${alignr}${color #0077ff}${membar 5,110}
${color #0077ff}SWP:${color lightgrey} $swap/$swapmax - $swapperc% ${alignr}${color #0077ff}${swapbar 5,110}

${color #0077ff}HD IO: ${color lightgrey}${diskio}
${color #0077ff}${diskiograph 000000 0077ff}

${color #0077ff}Hard Disks:
${color #0077ff} Root ${color lightgrey}${fs_used /}/${fs_size /}${alignr}${color #0077ff}${fs_bar 5,120 /}
${color #0077ff} Home ${color lightgrey}${fs_used /home}/${fs_size /home}${alignr}${color #0077ff}${fs_bar 5,120 /home}
${color #0077ff} Data ${color lightgrey}${fs_used /media/data}/${fs_size /media/data}${alignr}${color #0077ff}${fs_bar 5,120 /media/data}

${color #0077ff}CPU Usage PID CPU% MEM%
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color #0077ff} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color #0077ff} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color #0077ff}Mem Usage
${color lightgrey} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color #0077ff} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color #0077ff} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}

${color #0077ff}Networking: ${color lightgrey}${addr eth0}

${color #0077ff}Down:${color lightgrey} ${downspeed eth0} k/s $alignr${color #0077ff} Up:${color lightgrey} ${upspeed eth0} k/s
${color #0077ff}${downspeedgraph eth0 27,120 000000 0077ff} $alignr${color #0077ff}${upspeedgraph eth0 27,120 000000 0077ff}
${color lightgrey}${totaldown eth0} $alignr${color lightgrey}${totalup eth0}

${color #0077ff}Port(s)${alignr}#Connections
${color #0077ff}Inbound: ${color lightgrey}${tcp_portmon 1 32767 count} ${color #0077ff}Outbound: ${color lightgrey}${tcp_portmon 32768 61000 count}${alignr}${color #0077ff}Total: ${color lightgrey}${tcp_portmon 1 65535 count}

${color #0077ff}Inbound Connection ${alignr} Local Service/Port${color lightgrey}
${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3}
${tcp_portmon 1 32767 rhost 4} ${alignr} ${tcp_portmon 1 32767 lservice 4}
${tcp_portmon 1 32767 rhost 5} ${alignr} ${tcp_portmon 1 32767 lservice 5}
${tcp_portmon 1 32767 rhost 6} ${alignr} ${tcp_portmon 1 32767 lservice 6}

Odinist
September 19th, 2006, 11:59 PM
worked gorgeously!

screenshot (http://cyberpirate23.googlepages.com/Screenshot-1.png)

Odinist
September 20th, 2006, 02:17 AM
Ah, except using the "Show Desktop" launcher does indeed make Conky go away... I added another launcher right next to it with the command "wmctrl -a conky" to bring it back, but that's a sloppy fix... any other ideas on how to keep it from happening in the first place?

harryc
September 20th, 2006, 02:06 PM
Thanks for the tips.

Screenshot (http://mysite.verizon.net/hjc56/snapshots/screenshot3.jpg)

Zhen-Xlogic
September 20th, 2006, 10:53 PM
This script is to show in Conky Inbound & Outbound Connections!


${color lightgrey}Internet/Networking Status (${addr eth0}):
${offset 10}Down:${color #59687B} ${downspeed eth0} k/s${color lightgrey} ${alignr}Up:${color #59687B} ${upspeed eth0} k/s
${offset 10}${color #59687B}${downspeedgraph eth0 25,100 59687B 94506C} ${alignr}${color #59687B}${upspeedgraph eth0 25,100 59687B 94506C}
${offset 10}${color lightgrey}Total: ${color #59687B}${totaldown eth0} ${alignr}${color lightgrey}Total: ${color #59687B}${totalup eth0}

${color lightgrey}Port(s)${alignr}#Connections
${color lightgrey}Inbound: ${color lightgrey}${tcp_portmon 1 32767 count} ${color lightgrey}Outbound: ${color lightgrey}${tcp_portmon 32768 61000 count}${alignr}${color lightgrey}Total: ${color lightgrey}${tcp_portmon 1 65535 count}

${color lightgrey}Inbound Connection ${alignr} Local Service/Port${color lightgrey}
${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3}
${tcp_portmon 1 32767 rhost 4} ${alignr} ${tcp_portmon 1 32767 lservice 4}
${tcp_portmon 1 32767 rhost 5} ${alignr} ${tcp_portmon 1 32767 lservice 5}
${tcp_portmon 1 32767 rhost 6} ${alignr} ${tcp_portmon 1 32767 lservice 6}
${color lightgrey}Outbound Connection ${alignr} Local Service/Port${color lightgrey}
${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 lservice 0}
${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 lservice 1}
${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 lservice 2}
${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 lservice 3}
${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 lservice 4}
${tcp_portmon 32768 61000 rhost 5} ${alignr} ${tcp_portmon 32768 61000 lservice 5}
${tcp_portmon 32768 61000 rhost 6} ${alignr} ${tcp_portmon 32768 61000 lservice 6}


Thanks ;)

TLE
September 22nd, 2006, 11:02 PM
I don't know if this info has already been added, (I didn't borther reading the last two pages of the thread). But in GNOME to ensure that it opens on all desktops and that it doesn't show in the program pager just replace

own_window yes
own_window_hints undecorated,below,skip_taskbar
with

own_window yes
own_window_type desktop

That own_window_type line replaces the functionality of the own_window_hints line and ensures that conky is shown on all desktops

Nectron
September 23rd, 2006, 07:51 PM
Thanks for the great thread..

I've downloaded the .deb file of conky, edited the config files and conky starts at linux startup..

I only have one problem, conky can't figure out what my IP address is, therefore all network data on conky is not shown..

What's could be the problem ?

TLE
September 23rd, 2006, 11:05 PM
I only have one problem, conky can't figure out what my IP address is, therefore all network data on conky is not shown..

What's could be the problem ?
It probably because it's the wrong network interface that's described in the configfile. What I think will work is this, first figure out what internet interface you are using, at a terminal type

ifconfig
In this output find the one that has a IP adress and that's your interface, like say on my computer it is eth0 (written in the left collumn). Then when you find this open your conky config

gedit ~/.conkyrc
and replace all the places where it says eth0 with the values you found

K.Mandla
September 24th, 2006, 01:40 AM
Thanks for this. I put together a nifty onscreen summary for my ultralight Openbox machine.

http://img208.imageshack.us/img208/8267/screenshotox7.th.jpg (http://img208.imageshack.us/my.php?image=screenshotox7.jpg)

Nothing fancy, no graphs or process lists. Just the basics. Maybe later I'll go back to a big panel and so forth.

In case anyone is interested. ...


background yes
use_xft yes
xftfont Bitstream Vera Sans:size=12
xftalpha 0.8
update_interval 2
own_window no
double_buffer yes
draw_shades yes
draw_outline no
stippled_borders no
border_margin 0
border_width 1
default_color white
default_shade_color black
alignment bottom_left
gap_x 9
gap_y 9
use_spacer no
no_buffers yes
uppercase no

TEXT
${color white}Ubuntu $sysname $kernel ${color darkgrey}on ${color white}$nodename ${color darkgrey}[${color white}${freq_dyn}Mhz ${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'}${color darkgrey}]
${color white}$uptime_short ${color darkgrey}uptime at ${color white}$cpu% ${color darkgrey}cpu load with ${color white}${mem}b${color darkgrey} of ${color white}${memmax}b${color darkgrey} (${color white}$memperc%${color darkgrey}) used by ${color white}$processes ${color darkgrey}processes
${color white}${fs_used /}b${color darkgrey} of ${color white}${fs_size /}b${color darkgrey} root partition used, ${color white}${fs_used /home}b${color darkgrey} of ${color white}${fs_size /home}b${color darkgrey} home partition used
${color white}${downspeed eth0} kbps${color darkgrey} down (${color white}${totaldown eth0}b${color darkgrey} total), ${color white}${upspeed eth0} kbps${color darkgrey} up (${color white}${totalup eth0}b${color darkgrey} total) on ${color white}${addr eth0}
That's the result of an hour's trial-and-error, so there might be some redundancies in there. (Edit: I cleaned it up a bit, and added some things. ;) )

Dinerty
September 24th, 2006, 04:18 PM
Great howto, however I notice I have flickering and have did all the things mentioned in this threa to resolve it, however it is still there.

Any ideas?

foureight84
September 29th, 2006, 10:02 AM
The problem was that conky started before compiz started drawing windows, so I just had to make conky wait a bit.


how do i make a delay load for conky? i think this is why conky doesn't show up when compiz loads. i have "own_window no" set in the script. i was having problems with it appearing when i active compiz resize.

OffHand
September 29th, 2006, 09:45 PM
You can always make a toggle button for conky. Use the following script and point a launcher to this script:

#!/bin/sh

# click to start, click to stop

if pidof conky | grep [0-9] > /dev/null
then
exec killall conky
else
exec conky

fi

8)

TLE
September 29th, 2006, 09:54 PM
Or a script that waits a little while before launching


#!/bin/sh

sleep 10
# Waits 10 seconds

exec conky

seldon77
September 29th, 2006, 11:30 PM
i've updated the .conkyrc file, to tidy up the network interfaces section (reusing some great code someone posted above), and including a little bit of colour into the graphs.

can someone please check the new .conkyrc file in their setup to make sure it's working fine?

foureight84
September 30th, 2006, 01:45 AM
okay, here's the problem i am having. here is my current settings:



own_window yes
own_window_hints undecorated,below,skip_taskbar
background yes
double_buffer yes


with this, when i active fade in compiz, conky is selected with other windows. however, when i change own_window to no and add own_window_type to desktop that problem goes away. however, my desktop icons disappear. the cause of that is double_buffer. but when i turn off double buffer, conky flickers. is there any fix to make my icons reappear and not have conky flicker?

seldon77
September 30th, 2006, 04:51 AM
i dont know anything about compiz....

i thought someone posted a workaround several pages back, but i dont know if it works. if someone can confirm code to make compiz work, can you please post it here so i can update the how-to

foureight84
September 30th, 2006, 06:07 AM
the workarounds don't work. i got it be excluded from fader, but you would have to turn off own_window and leave double_buffer on. but you will have disappearing desktop icons. you can turn off double_buffer but it will flicker. there's no work around for now. i think the only way is to somehow get compiz to exclude conky from the fade effect.

one_stinky_bum
September 30th, 2006, 09:24 AM
Hmm... I'm using compiz + AIGLX, and this works for me:

own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

I also have a startup script that I called .conky_start.sh in my home directory:

#!/bin/bash
sleep 60 && conky;
This would start conky after 60 seconds of your login. That way, compiz doesn't draw shadows around conky. Make sure the script is executable:
chmod a+x .conky_start.sh and add it to your startup programs (menu: system->preferences->session->startup programs).

I don't have any trouble with conky and compiz... conky is essentially seen as part of my wallpaper and I don't have any flickering icons (i915 graphics here).

This is real basic stuff. Hope it helps.

foureight84
September 30th, 2006, 10:32 AM
i'd kiss you, but you're a stinky bum. dude, thanks so much for the fix works really well.

seldon77
October 2nd, 2006, 01:10 AM
Thanks - I'll add your tips to the How-to


Hmm... I'm using compiz + AIGLX, and this works for me:

own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

I also have a startup script that I called .conky_start.sh in my home directory:

#!/bin/bash
sleep 60 && conky;
This would start conky after 60 seconds of your login. That way, compiz doesn't draw shadows around conky. Make sure the script is executable:
chmod a+x .conky_start.sh and add it to your startup programs (menu: system->preferences->session->startup programs).

I don't have any trouble with conky and compiz... conky is essentially seen as part of my wallpaper and I don't have any flickering icons (i915 graphics here).

This is real basic stuff. Hope it helps.

handband2
October 5th, 2006, 01:05 AM
Here is what I did...


# UBUNTU-CONKY
# A comprehensive conky script, configured for use on
# Ubuntu / Debian Gnome, without the need for any external scripts.
#
# Based on conky-jc and the default .conkyrc.
# INCLUDES:
# - tail of /var/log/messages
# - netstat connections to your computer
#
# -- Pengo (conky@pengo.us)
#

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_hints undecorated,below,skip_taskbar
background yes

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer yes
use_xft no

# Update interval in seconds
update_interval 3.0

maximum_width 280

# Minimum size of text area
minimum_size 400 5

# Draw shades?
draw_shades no

# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
font arial
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
border_margin 9

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color grey

own_window_colour brown
own_window_transparent yes

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 10
gap_y 10

# stuff after 'TEXT' will be formatted on screen

TEXT
$sysname $kernel | Uptime: ${uptime}
$color$stippled_hr
CPU: ${freq}MHz Load: ${loadavg}
CPU Usage: $cpu% $cpubar
${cpugraph 000000 ffffff}
${color #ddaa00}NAME PID CPU% MEM%$color
${top name 1} ${top pid 1} | ${top cpu 1} | ${top mem 1}
${top name 2} ${top pid 2} | ${top cpu 2} | ${top mem 2}
${top name 3} ${top pid 3} | ${top cpu 3} | ${top mem 3}
${top name 4} ${top pid 4} | ${top cpu 4} | ${top mem 4}
${top name 5} ${top pid 5} | ${top cpu 5} | ${top mem 5}
${top name 6} ${top pid 6} | ${top cpu 6} | ${top mem 6}
$color$stippled_hr
RAM: $memperc% $mem/$memmax ${membar 6}$color
Swap: $swapperc% $swap/$swapmax ${swapbar 6}$color

Root: ${fs_free_perc /}% $color${fs_used /}/${fs_size /} ${fs_bar 6 /}$color
Home: ${fs_free_perc /home}% $color${fs_used /home}/${fs_size /home} ${fs_bar 6 /home}$color
$color$stippled_hr
Internet/Networking Status (${addr eth0}):
Down: ${downspeedf eth0} k/s ${alignr}Up: ${upspeedf eth0} k/s
${downspeedgraph eth0 25,140 000000 ff0000} ${alignr}${upspeedgraph eth0 25,140 000000 00ff00}$color
Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0}
Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}
$stippled_hr
Internet/Networking Status (${addr eth1}):
Down: ${downspeedf eth1} k/s ${alignr}Up: ${upspeedf eth1} k/s
${downspeedgraph eth1 25,140 000000 ff0000} ${alignr}${upspeedgraph eth1 25,140 000000 00ff00}$color
Total: ${totaldown eth1} ${alignr}Total: ${totalup eth1}
Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}
$stippled_hr
${color #ddaa00}Port(s)${alignr}#Connections
$color ALL: ${alignr}$color ${tcp_portmon 1 65535 count}
${color #ddaa00}Remote Address ${alignr} Local Service/Port$color
${tcp_portmon 1 65535 rhost 0} ${alignr} ${tcp_portmon 1 65535 lservice 0}
${tcp_portmon 1 65535 rhost 1} ${alignr} ${tcp_portmon 1 65535 lservice 1}
${tcp_portmon 1 65535 rhost 2} ${alignr} ${tcp_portmon 1 65535 lservice 2}
${tcp_portmon 1 65535 rhost 3} ${alignr} ${tcp_portmon 1 65535 lservice 3}
${tcp_portmon 1 65535 rhost 4} ${alignr} ${tcp_portmon 1 65535 lservice 4}
$color$stippled_hr
SYSTEM LOG TAIL
${execi 30 tail -n3 /var/log/messages | fold -w67}
$color$stippled_hr


http://www.ubuntuforums.org/attachment.php?attachmentid=16899&stc=1&d=1160006643

VCSkier
October 5th, 2006, 05:54 AM
i just wanted to say this works great on my dapper setup. i had always wanted something to display live statistics, that used very little resources, and still looked cool. this is it! i haven't tried it yet on my edgy setup w/ beryl, but i'll let you know how it goes when i do. thanks!

Frédéric Perrin
October 7th, 2006, 10:25 PM
How do you specify a scale for graphs ?
For example, if I barely use my connection, the top of the graph will be, say 3ko/s ; if I use it it extensively, it will be 120ko/s or so. Such a variation make the graph close to useless.
The doc says that you may use as arguments to
downspeedgraph the following : « net (height),(width) (gradient colour 1) (gradient colour 2) (scale) ». I couldn't find other information about how to use graphs.
I tried as values to scale numbers ranging from 0.1 to a million, without it changing anything. How are you supposed to use it ?

one_stinky_bum
October 7th, 2006, 11:00 PM
This is what I did:

${color white}U:${upspeedf eth1}k/s ${upspeedgraph eth1 20,100 888888 888888 100}
The last 100 (in red) means that the graph tops out at 100kb/s. I figured if I'm downloading anything that fast I needn't worry about speed. Adjust that number to suit your needs.

sktfeelsdapper
October 8th, 2006, 09:20 AM
A little late in the game here, but I had a question.

Is there any reason my conky seems so big? I mean GIGANTIC.

Here's a shot.

OffHand
October 8th, 2006, 12:30 PM
A little late in the game here, but I had a question.

Is there any reason my conky seems so big? I mean GIGANTIC.

Here's a shot.

This is the reason:

# Minimum size of text area
minimum_size 260 5
maximum_width 250

Adjust the max width :D

sktfeelsdapper
October 8th, 2006, 10:37 PM
This is the reason:

# Minimum size of text area
minimum_size 260 5
maximum_width 250

Adjust the max width :D

Yah, I guess I deserve a big collective "duh" on that one.
I couldn't seem to change it before, but this did the trick.
Thanks.

handy
October 9th, 2006, 07:55 AM
Thanks Seldon77 for this great how-to, & to all concerned for feeding it!

I am happy with my conky setup, except for the ubiquitous one last thing :)

I have a Gigabyte GA-K8NS Ultra 939, running the nForce-3 chipset. I would like to be able to monitor my CPU temp'. The graphics card would be a bonus, as would any fan speeds.

I don't know what the command is for sensor's in bash either.

Any help very much appreciated.

Thanks again all, you make all this stuff fun...

OffHand
October 9th, 2006, 09:58 AM
Thanks Seldon77 for this great how-to, & to all concerned for feeding it!

I am happy with my conky setup, except for the ubiquitous one last thing :)

I have a Gigabyte GA-K8NS Ultra 939, running the nForce-3 chipset. I would like to be able to monitor my CPU temp'. The graphics card would be a bonus, as would any fan speeds.

I don't know what the command is for sensor's in bash either.

Any help very much appreciated.

Thanks again all, you make all this stuff fun...

http://conky.sourceforge.net/variables.html


CPU:${color lightgrey} ${i2c temp 2}C${color lightgrey} ${color #0077ff}MB:${color lightgrey} ${i2c temp 1}C


Try if that one works.

handy
October 9th, 2006, 11:25 AM
http://conky.sourceforge.net/variables.html


CPU:${color lightgrey} ${i2c temp 2}C${color lightgrey} ${color #0077ff}MB:${color lightgrey} ${i2c temp 1}C


Try if that one works.

Thanks for your reply, but that line of code stops Conky from starting on my box :-k

I've looked at the Conky Variables before, & exhausted the possibilities. [Edit:] re: Monitoring heat & fan speeds that is...

Perhaps I will have to live with the fact that all m/boards are not supported, & mines one of them...

Aberrix
October 11th, 2006, 04:48 PM
it appears my swap space isnt being displayed properly? it looks like some other people had the same problem... anyone know how to fix it?

Aberrix
October 11th, 2006, 06:02 PM
here is my conky:


# set to yes if you want Conky to be forked in the background
background no

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
#font 8x13
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=8

own_window_transparent no
#own_window_colour black
# Text alpha when using Xft
xftalpha 0.8

on_bottom yes

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 1
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar
own_window_type override

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 260 5
maximum_width 250

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders no

# border margins
border_margin 4

# border width
border_width 1

# Default colors and also border colors
#default_color white
#default_shade_color white
#default_outline_color white

# Text alignment, other possible values are commented
#alignment top_left
#minimum_size 10 10
gap_x 15
gap_y 60
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text

# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer no

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# none, xmms, bmp, audacious, infopipe (default is none)
xmms_player bmp

# boinc (seti) dir
# seti_dir /opt/seti

# Possible variables to be used:
#
# Variable Arguments Description
# acpiacadapter ACPI ac adapter state.
# acpifan ACPI fan state
# acpitemp ACPI temperature.
# adt746xcpu CPU temperature from therm_adt746x
# adt746xfan Fan speed from therm_adt746x
# battery (num) Remaining capasity in ACPI or APM
# battery. ACPI battery number can be
# given as argument (default is BAT0).
# buffers Amount of memory buffered
# cached Amount of memory cached
# color (color) Change drawing color to color
# cpu CPU usage in percents
# cpubar (height) Bar that shows CPU usage, height is
# bar's height in pixels
# downspeed net Download speed in kilobytes
# downspeedf net Download speed in kilobytes with one
# decimal
# exec shell command Executes a shell command and displays
# the output in torsmo. warning: this
# takes a lot more resources than other
# variables. I'd recommend coding wanted
# behaviour in C and posting a patch .
# execi interval, shell Same as exec but with specific interval.
# command Interval can't be less than
# update_interval in configuration.
# fs_bar (height), (fs) Bar that shows how much space is used on
# a file system. height is the height in
# pixels. fs is any file on that file
# system.
# fs_free (fs) Free space on a file system available
# for users.
# fs_free_perc (fs) Free percentage of space on a file
# system available for users.
# fs_size (fs) File system size
# fs_used (fs) File system used space
# hr (height) Horizontal line, height is the height in
# pixels
# i2c (dev), type, n I2C sensor from sysfs (Linux 2.6). dev
# may be omitted if you have only one I2C
# device. type is either in (or vol)
# meaning voltage, fan meaning fan or temp
# meaning temperature. n is number of the
# sensor. See /sys/bus/i2c/devices/ on
# your local computer.
# kernel Kernel version
# loadavg (1), (2), (3) System load average, 1 is for past 1
# minute, 2 for past 5 minutes and 3 for
# past 15 minutes.
# machine Machine, i686 for example
# mails Mail count in mail spool. You can use
# program like fetchmail to get mails from
# some server using your favourite
# protocol. See also new_mails.
# mem Amount of memory in use
# membar (height) Bar that shows amount of memory in use
# memmax Total amount of memory
# memperc Percentage of memory in use
# new_mails Unread mail count in mail spool.
# nodename Hostname
# outlinecolor (color) Change outline color
# pre_exec shell command Executes a shell command one time before
# torsmo displays anything and puts output
# as text.
# processes Total processes (sleeping and running)
# running_processes Running processes (not sleeping),
# requires Linux 2.6
# shadecolor (color) Change shading color
# stippled_hr (space), Stippled (dashed) horizontal line
# (height)
# swapbar (height) Bar that shows amount of swap in use
# swap Amount of swap in use
# swapmax Total amount of swap
# swapperc Percentage of swap in use
# sysname System name, Linux for example
# time (format) Local time, see man strftime to get more
# information about format
# totaldown net Total download, overflows at 4 GB on
# Linux with 32-bit arch and there doesn't
# seem to be a way to know how many times
# it has already done that before torsmo
# has started.
# totalup net Total upload, this one too, may overflow
# updates Number of updates (for debugging)
# upspeed net Upload speed in kilobytes
# upspeedf net Upload speed in kilobytes with one
# decimal
# uptime Uptime
# uptime_short Uptime in a shorter format
#
# seti_prog Seti@home current progress
# seti_progbar (height) Seti@home current progress bar
# seti_credit Seti@hoome total user credit


# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
#${font Dungeon:style=Boldixelsize=10}I can change the font as well
#${font Verdana:size=10}as many times as I choose
#${font Perry:size=10}Including UTF-8,
# stuff after 'TEXT' will be formatted on screen
#${font Grunge:size=12}${time %a %b %d}${alignr -25}${time %k:%M}

TEXT
${color #000000}$nodename
${color #000000}$sysname ${color #000000}$kernel
${color #000000}$stippled_hr
${color #000000}uptime: $uptime
${color #000000}load: $loadavg
${color #000000}$stippled_hr
${color #000000}AMD Athlon(tm) 64 X2 3800+
${color #000000}Usage:${color #000000} ${cpu}% ${color #000000}${cpubar}
${color #000000}${cpugraph 000000 000000}
${color #000000}proces: $processes ${color #000000}run: $running_processes
${color #000000}$stippled_hr
memory:
${color #000000} ram: ${alignr}$mem/$memmax ${color #000000}${membar 5,140}
${color #000000} swp: ${alignr}$swap/$swapmax ${color #000000}${swapbar 5,140}
${color #000000}$stippled_hr
${color #000000}hard disks:
${color #000000} / ${alignr}${fs_used /}/${fs_size /} ${color #000000}${fs_bar 5,100 /}
${color #000000} storage ${alignr}${fs_used /media/storage}/${fs_size /media/storage} ${color #000000}${fs_bar 5,100 /media/storage}
${color #000000}$stippled_hr
${color #000000}cpu usage PID CPU% MEM%
${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color #000000} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color #000000} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}

${color #000000}mem usage
${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color #000000} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color #000000} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color #000000}$stippled_hr
${color #000000}eht0: ${addr eth0}

${color #000000}down: ${downspeed eth0} k/s $alignr${color #000000} up: ${upspeed eth0} k/s
${color #000000}${downspeedgraph eth0 27,120 000000 000000} $alignr${color #000000}${upspeedgraph eth0 27,120 000000 000000}
${totaldown eth0} $alignr${totalup eth0}
${color #000000}$stippled_hr
${color #000000}port(s)${alignr}#connections
${color #000000}inbound: ${tcp_portmon 1 32767 count} ${color #000000}outbound: ${tcp_portmon 32768 61000 count}${alignr}${color #000000}total: ${tcp_portmon 1 65535 count}

${color #000000}inbound connection ${alignr} local service/port
${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3}
${tcp_portmon 1 32767 rhost 4} ${alignr} ${tcp_portmon 1 32767 lservice 4}
${tcp_portmon 1 32767 rhost 5} ${alignr} ${tcp_portmon 1 32767 lservice 5}
${tcp_portmon 1 32767 rhost 6} ${alignr} ${tcp_portmon 1 32767 lservice 6}

nwgray
October 13th, 2006, 09:39 PM
My icons are disappearing when I run conky even though I'm not running compiz /xgl. Here's the .conkyrc (copied from a poster's own file in this thread - thx):

background yes

# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*


# Use Xft?
use_xft yes

# Set conky on the bottom of all other applications
on_bottom no

# Xft font when Xft is enabled
xftfont Sans:size=12

# Text alpha when using Xft
xftalpha 1.0

# Print everything to stdout?
# out_to_console no

# MPD host/port
# mpd_host localhost
# mpd_port 6600
# mpd_password tinker_bell

# Print everything to console?
# out_to_console no

# mail spool
#mail_spool $MAIL

# Update interval in seconds
update_interval 2.0

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window no

# Use pseudo transparency with own_window?
own_window_transparent yes

# If own_window_transparent is set to no, you can set the background colour here
#own_window_colour hotpink

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 280 5

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 8

# border margins
border_margin 4

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color black

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment none

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 12
gap_y 12

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale no


# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer no

# mldonkey_hostname Hostname for mldonkey stuff, defaults to localhost
# mldonkey_port Mldonkey port, 4001 default
# mldonkey_login Mldonkey login, default none
# mldonkey_password Mldonkey password, default none

# boinc (seti) dir
# seti_dir /opt/seti

# Allow for the creation of at least this number of port monitors (if 0 or not set, default is 16)
min_port_monitors 16

# Allow each port monitor to track at least this many connections (if 0 or not set, default is 256)
min_port_monitor_connections 256

# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument

# stuff after 'TEXT' will be formatted on screen

TEXT
Conky
${color white}CPU:${color white} ${freq} ${color white}mhz / Temp:${color white}$acpitemp ${color white}C
${color white}Disk I/O:${color white} ${diskio} ${color white}Uptime:${color white} $uptime
${color white}Processes:${color white} $processes ${color white}Running:${color white} $running_processes
${color white}CPU Usage:${color white} $cpu% ${color white}${cpugraph 20, 125 ffffff 0000ff}
${color white}RAM Usage:${color white} $mem/$memmax ${color white}- ${color white}$memperc% ${color white}${membar}
${color white}Swap Usage:${color white} $swap/$swapmax ${color white}- ${color white}$swapperc% ${color white}${swapbar}
${color white}File systems: / ${color white}${fs_used /}/${fs_size /} ${color white}${fs_bar /}

${color}Name PID CPU% MEM%
${color green} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color green} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color green} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color green} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color green} ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}

${color white}Networking:
Down:${color white} ${downspeed eth0} k/s${color white} ${offset 80}Up:${color white} ${upspeed eth0} k/s
${color white}${downspeedgraph eth0 20,150 ff0000 0000ff} ${color white}${upspeedgraph eth0 20,150 0000ff ff0000}

${color white}Netstat
${color green}${execi 12 netstat -e -p -t | grep ESTABLISHED | cut -c45-68,80-86,102-140}
${color white}Remote Address ${alignr} Local Service/Port
${color green} ${tcp_portmon 1 65535 rhost 0} ${alignr} ${tcp_portmon 1 65535 lservice 0}
${color green} ${tcp_portmon 1 65535 rhost 1} ${alignr} ${tcp_portmon 1 65535 lservice 1}
${color green} ${tcp_portmon 1 65535 rhost 2} ${alignr} ${tcp_portmon 1 65535 lservice 2}
${color green} ${tcp_portmon 1 65535 rhost 3} ${alignr} ${tcp_portmon 1 65535 lservice 3}
${color green} ${tcp_portmon 1 65535 rhost 4} ${alignr} ${tcp_portmon 1 65535 lservice 4}
${color green} ${tcp_portmon 1 65535 rhost 5} ${alignr} ${tcp_portmon 1 65535 lservice 5}
${color green} ${tcp_portmon 1 65535 rhost 6} ${alignr} ${tcp_portmon 1 65535 lservice 6}
${color green} ${tcp_portmon 1 65535 rhost 7} ${alignr} ${tcp_portmon 1 65535 lservice 7}
${color green} ${tcp_portmon 1 65535 rhost 8} ${alignr} ${tcp_portmon 1 65535 lservice 8}
${color green} ${tcp_portmon 1 65535 rhost 9} ${alignr} ${tcp_portmon 1 65535 lservice 9}
${color green} ${tcp_portmon 1 65535 rhost 10} ${alignr} ${tcp_portmon 1 65535 lservice 10}


thoughts?

/thx

OffHand
October 13th, 2006, 10:18 PM
here is my conky:



memory:
${color #000000} ram: ${alignr}$mem/$memmax ${color #000000}${membar 5,140}
${color #000000} swp: ${alignr}$swap/$swapmax ${color #000000}${swapbar 5,140}
Strange, mine looks the same and works. You might want to ask in Conky's IRC channel. They really do know a lot and are very helpful.

OffHand
October 13th, 2006, 10:21 PM
My icons are disappearing when I run conky even though I'm not running compiz /xgl. Here's the .conkyrc (copied from a poster's own file in this thread - thx):


# Create own window instead of using desktop (required in nautilus)
own_window no

# Use pseudo transparency with own_window?
own_window_transparent yes

Try this instead


# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar
own_window_type override

handy
October 14th, 2006, 01:07 AM
Conky disappears if I LMB click on the desktop? It is still running, I have to kill it before I can start it again...

forger
October 14th, 2006, 10:15 AM
for fortune cookies you'll need (and probably like) these:


sudo apt-get install fortunes fortunes-debian-hints


now, my version, with external ip and a bit of different approach on $machine and processor identification.
you'll need curl:


sudo apt-get install curl


http://static.flickr.com/80/269120466_ca76488cc3_m.jpg (http://static.flickr.com/80/269120466_ca76488cc3_o.png)



# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_hints undecorated,below,skip_taskbar
background yes

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer yes
use_xft no

# Update interval in seconds
update_interval 10.0

# Minimum size of text area
minimum_size 400 5

# Draw shades?
draw_shades no

# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
#font arial
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
border_margin 9

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color black

own_window_colour brown
own_window_transparent yes

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 10
gap_y 10

# stuff after 'TEXT' will be formatted on screen

TEXT
${color yellow}$nodename $sysname ${exec uname -r | cut -d - -f 1-2} on ${exec uname -r | cut -d - -f 3} ${exec cat /proc/cpuinfo | grep "model name" | sed -e 's/model name\t: //' -e 's/\s\s\s/ /'}
${color white}$stippled_hr
${color yellow}Uptime: ${color lightgrey}$uptime_short ${color yellow}CPU: ${color lightgrey}${freq}${color white}MHz ${color yellow}Load: ${color lightgrey}${loadavg}
${color white}$cpubar
${cpugraph}${color yellow}
NAME PID CPU% MEM%${color lightgrey}
${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color white}$stippled_hr
${color white}RAM: ${color lightgrey}$memperc% ${membar 6}
${color white}Swap: ${color lightgrey}$swapperc% ${swapbar 6}

${color white}Root: ${color lightgrey}${fs_free_perc /}% ${fs_bar 6 /}
${color white}sda1: ${color lightgrey}${fs_free_perc /home}% ${fs_bar 6 /home}
${color white}$stippled_hr
${color yellow}IP: ${color lightgrey}${addr eth0} ${execi 600 curl 'http://www.whatismyip.org'} ${color yellow}Total: ${color lightgrey}${totaldown eth0} ${color white}Down ${color lightgrey}${totalup eth0} ${color white}Up

${color yellow}Down: ${color lightgrey}${downspeedf eth0} ${color white}kB/s ${offset 110} ${color yellow}Up: ${color lightgrey}${upspeedf eth0} ${color white}kB/s
${color lightgrey}${downspeedgraph eth0 32,200} ${upspeedgraph eth0 32,200}

${color lightgrey}${execi 30 netstat -e -p -t | grep ESTABLISHED | cut -c45-68,80-86,102-140}
${color white}$stippled_hr
${color yellow}SYSTEM LOG TAIL
${color lightgrey}${execi 60 tail -n3 /var/log/messages | fold -w67}
${color white}$stippled_hr
${color white}${execi 120 fortune | fold -w67}
${color lightgrey}${execi 120 wmctrl -a conky}

nwgray
October 16th, 2006, 11:47 AM
Offhand
I had to comment out - own_window_hints undecorated,below,skip_taskbar

but now it's working fine.

Thx!

Aberrix
October 16th, 2006, 01:55 PM
Strange, mine looks the same and works. You might want to ask in Conky's IRC channel. They really do know a lot and are very helpful.

I copied yours to start with, hope you don't mind... I liked yours the best. I just tweaked it for my use/taste.

OffHand
October 16th, 2006, 02:35 PM
You're welcome guys. And I do not mind people using my Conky, knock yourself out ;)

nwgray
October 16th, 2006, 04:43 PM
Has anyone tried to get curl working as an rss grabber? I found this on the sourceforge page in one of the conkyrc files:

${color #5b6dad}Fox News Latest Headlines:
${color #7f8ed3}${execi 300 /home/hellfire/scripts/conky-rss.sh}

I have changed the conky-rss.sh script and changed the info to point to my directory. Here's the info from the conky-rss.sh file:

#!/bin/bash
# RSS Feed Display Script by Hellf[i]re v0.1
#
# This script is designed for most any RSS Feed. As some feeds may not be
# completely compliant, it may need a bit of tweaking
#
# This script depends on curl.
# Gentoo: emerge -av net-misc/curl
# Debian: apt-get install curl
# Homepage: http://curl.haxx.se/
#
# Usage:
# .conkyrc: ${execi [time] /path/to/script/conky-rss.sh}
#
# Usage Example
# ${execi 300 /home/youruser/scripts/conky-rss.sh}


#RSS Setup
URI=http://www.foxnews.com/xmlfeed/rss/0,4313,1,00.rss #URI of RSS Feed
LINES=4 #Number of headlines

#Environment Setup
EXEC="/usr/bin/curl -s" #Path to curl

#Work Start
$EXEC $URI | grep title |\
sed -e :a -e 's/<[^>]*>//g;/</N' |\
sed -e 's/[ \t]*//' |\
sed -e 's/\(.*\)/ \1/' |\
sed -e 's/\.//' |\
sed -e 's/\"//' |\
sed -e 's/\"//' |\
head -n $(($LINES + 2)) |\
tail -n $(($LINES))


When I run it, I have no info shows up in my Fox News section (see screenshot). If I manually run the command curl -s http://www.foxnews.com/xmlfeed/rss/0,4313,1,00.rss then I get this in my terminal window:

<?xml version="1.0" encoding="iso-8859-1" ?>
<rss version="2.0">
<channel>







<title>FOXNews.com</title>
<description>FOX News Channel - We Report. You Decide.</description>
<link>http://www.foxnews.com/</link>
<copyright>Copyright 2006 FOX News Channel</copyright>
<language>en-us</language>
<lastBuildDate>Mon, 16 Oct 2006 11:37:40 EST</lastBuildDate>
<managingEditor>foxnewsonline@foxnews.com</managingEditor>
<webMaster>foxnewsonline@foxnews.com</webMaster>
<image>
<url>http://www.foxnews.com/images/headers/fnc_logo.gif</url>
<title>FOXNews.com Live Bookmark</title>
<link>http://www.foxnews.com/</link>
</image>



<item>
<title>Moussaoui Juror Falls Ill; Deliberations to Resume Friday</title>
<link>http://www.foxnews.com/story/0,2933,193329,00.html</link>
<description>Jurors in the Zacarias Moussaoui case headed into a fourth day of deliberations Thursday but talks halted when one juror fell ill; deliberations to resume Friday</description>
<author>foxnewsonline@foxnews.com</author>
<pubDate>Thu, 27 Apr 2006 05:35:04 EST</pubDate>
</item>

<item>
<title>Iran Test-Fires Another 'Top Secret' Missile</title>
<link>http://www.foxnews.com/story/0,2933,190696,00.html</link>
<description>Iran's state-run television says it successfully test-fired a "top secret" missile, the third in a week.</description>
<author>foxnewsonline@foxnews.com</author>
<pubDate>Wed, 05 Apr 2006 02:55:22 EST</pubDate>
</item>

<item>
<title>Duke Lacrosse Coach Resigns Amid Rape Flap</title>
<link>http://www.foxnews.com/story/0,2933,190749,00.html</link>
<description>University cancels remainder of season after allegations that three players raped an exotic dancer at a party.</description>
<author>foxnewsonline@foxnews.com</author>
<pubDate>Thu, 06 Apr 2006 03:16:47 EST</pubDate>
</item>

<item>
<title>100 Homes Threatened by Weakened Dam in Northern California</title>
<link>http://www.foxnews.com/story/0,2933,190674,00.html</link>
<description>About 100 homes were being evacuated Wednesday morning as a small earthen dam in Calaveras County in northern California weakened by an overnight thunderstorm threatened to break.</description>
<author>foxnewsonline@foxnews.com</author>
<pubDate>Thu, 06 Apr 2006 08:03:31 EST</pubDate>
</item>

<item>
<title>Video Claims to Show Insurgents Dragging Burning Body of U.S</title>
<link>http://www.foxnews.com/story/0,2933,190646,00.html</link>
<description>A poor-quality video posted on the Internet Wednesday in the name of an extremist group claimed to show Iraqi insurgents dragging the burning body of a U.S. pilot on the ground after the crash of an Apache helicopter.</description>
<author>foxnewsonline@foxnews.com</author>
<pubDate>Wed, 05 Apr 2006 05:53:26 EST</pubDate>
</item>

<item>
<title>DHS Press Secretary Arrested on Child Seduction Charges</title>
<link>http://www.foxnews.com/story/0,2933,190604,00.html</link>
<description>The deputy press secretary for the U.S. Department of Homeland Security was arrested Tuesday for using the Internet to seduce what he thought was a teenage girl, authorities said.</description>
<author>foxnewsonline@foxnews.com</author>
<pubDate>Wed, 05 Apr 2006 11:17:47 EST</pubDate>
</item>

<item>
<title>Saddam Dodges Questions From Prosecutors </title>
<link>http://www.foxnews.com/story/0,2933,190621,00.html</link>
<description>Former Iraqi dictator is cross-examined for the first time in the trial for the killings of Shiites in 1982.</description>
<author>foxnewsonline@foxnews.com</author>
<pubDate>Wed, 05 Apr 2006 01:36:25 EST</pubDate>
</item>

<item>
<title>Kidnapped Brothers Killed in Venezuela </title>
<link>http://www.foxnews.com/story/0,2933,190721,00.html</link>
<description>Venezuelan authorities found the bullet-ridden bodies of three Canadian boys who had been kidnapped more than a month ago in the South American country, the justice minister said. </description>
<author>foxnewsonline@foxnews.com</author>
<pubDate>Wed, 05 Apr 2006 03:28:22 EST</pubDate>
</item>

<item>
<title>French Unions: Repeal Labor Law in 10 Days, or Else</title>
<link>http://www.foxnews.com/story/0,2933,190623,00.html</link>
<description>France's biggest trade unions set a 10-day deadline Wednesday for the government to revoke a divisive jobs law, threatening more protests and strikes that have spiraled into a national crisis.</description>
<author>foxnewsonline@foxnews.com</author>
<pubDate>Wed, 05 Apr 2006 03:51:20 EST</pubDate>
</item>

<item>
<title>Three Arrested, Man Shot in 'Baby Shower Gone Bad'</title>
<link>http://www.foxnews.com/story/0,2933,190700,00.html</link>
<description>A baby shower erupted into a fight among guests in which one man was shot and several other people, including the seven-months-pregnant guest of honor, were beaten with a stick, police say.</description>
<author>foxnewsonline@foxnews.com</author>
<pubDate>Wed, 05 Apr 2006 01:17:01 EST</pubDate>
</item>
</channel>


so it would appear, at least to me, that the command is correct. What should I tweak to get this working from within conky?

Thx

nwgray
October 16th, 2006, 07:44 PM
I found the problem - file permissions. I changed the script to R/W and made it executable.

Later all!

Aberrix
October 17th, 2006, 02:57 PM
Does conky support being able to monitor both cores on a dual core processor?

OffHand
October 17th, 2006, 04:16 PM
Does conky support being able to monitor both cores on a dual core processor?

Yes it does. Try this:


${color lightgrey}CPU1 Usage:${color} ${cpu cpu1}% ${cpubar cpu1}
${color lightgrey}CPU2 Usage:${color} ${cpu cpu2}% ${cpubar cpu2}

Aberrix
October 17th, 2006, 04:25 PM
Thank you, I'll try it when I get home ;)

m.musashi
October 17th, 2006, 11:22 PM
Yes it does. Try this:


${color lightgrey}CPU1 Usage:${color} ${cpu cpu1}% ${cpubar cpu1}
${color lightgrey}CPU2 Usage:${color} ${cpu cpu2}% ${cpubar cpu2}


Cool. I've been looking for a way to do this. One question, I have the following line in my conky config

CPU0: ${freq cpu0}MHz Load: ${loadavg} Temp: ${acpitemp}
that gives a text readout of the mhz the cpu is currently running at as well as load info. Do you know how to modify this to add the second core. I've tried a few things but it only reports dual info for one core.

Thanks.

OffHand
October 18th, 2006, 12:21 AM
Cool. I've been looking for a way to do this. One question, I have the following line in my conky config

CPU0: ${freq cpu0}MHz Load: ${loadavg} Temp: ${acpitemp}
that gives a text readout of the mhz the cpu is currently running at as well as load info. Do you know how to modify this to add the second core. I've tried a few things but it only reports dual info for one core.

Thanks.

Did you try:

${color lightgrey}CPU1 Usage:${color} ${cpu cpu1}% ${freq cpu1}MHz Load: ${loadavg} Temp: ${acpitemp}${cpubar cpu1}
${color lightgrey}CPU2 Usage:${color} ${cpu cpu2}% ${freq cpu2}MHz Load: ${loadavg} Temp: ${acpitemp}${cpubar cpu2}

m.musashi
October 18th, 2006, 04:02 AM
Did you try:

${color lightgrey}CPU1 Usage:${color} ${cpu cpu1}% ${freq cpu1}MHz Load: ${loadavg} Temp: ${acpitemp}${cpubar cpu1}
${color lightgrey}CPU2 Usage:${color} ${cpu cpu2}% ${freq cpu2}MHz Load: ${loadavg} Temp: ${acpitemp}${cpubar cpu2}
Yes, that is more what I was looking for. However, it seems to be reporting the data from only one core. The graphs look different but the load and MHz are exactly the same. Using cpuburn, if one core goes to 100% the frequency changes for both even though the graph and other monitors show only one scaling up. I know for the cpu monitor that you can add to the panel, the cores are numbered 0 and 1. Here they are named 1 and 2. Is conky different? I'll change it and see. Otherwise, any ideas?

Thanks.

OffHand
October 18th, 2006, 09:38 AM
Yes, that is more what I was looking for. However, it seems to be reporting the data from only one core. The graphs look different but the load and MHz are exactly the same. Using cpuburn, if one core goes to 100% the frequency changes for both even though the graph and other monitors show only one scaling up. I know for the cpu monitor that you can add to the panel, the cores are numbered 0 and 1. Here they are named 1 and 2. Is conky different? I'll change it and see. Otherwise, any ideas?

Thanks.

Go to the Conky IRC channel on Freenode and ask there. I'm out of ideas.

Aberrix
October 18th, 2006, 01:20 PM
Yes, that is more what I was looking for. However, it seems to be reporting the data from only one core. The graphs look different but the load and MHz are exactly the same. Using cpuburn, if one core goes to 100% the frequency changes for both even though the graph and other monitors show only one scaling up. I know for the cpu monitor that you can add to the panel, the cores are numbered 0 and 1. Here they are named 1 and 2. Is conky different? I'll change it and see. Otherwise, any ideas?

Thanks.

what kernel are you using? what CPU do you have? are you using 32bit or 64bit Ubuntu?

bennyj
October 18th, 2006, 03:05 PM
I figured it out. Here's what I used in .conkyrc instead of acpitemp, which did not work on my machine;

Case Temp: ${i2c 9191-0290 temp 2} CPU Temp: ${i2c 9191-0290 temp 3}

Thanks for this harryc!worked out great for me.

m.musashi
October 18th, 2006, 04:26 PM
what kernel are you using? what CPU do you have? are you using 32bit or 64bit Ubuntu?

I upgraded to the 686 kernel when I installed Beryl (but not the smp as I have a single core Athlon 64 3700) I have the 32 bit Ubuntu (or does using the 686 kernel mean I have the 64 bit version?). In any case, I installed the 32 bit Dapper.

Aberrix
October 18th, 2006, 04:29 PM
However, it seems to be reporting the data from only one core. The graphs look different but the load and MHz are exactly the same. Using cpuburn, if one core goes to 100% the frequency changes for both even though the graph and other monitors show only one scaling up. I know for the cpu monitor that you can add to the panel, the cores are numbered 0 and 1. Here they are named 1 and 2.



I upgraded to the 686 kernel when I installed Beryl (but not the smp as I have a single core Athlon 64 3700) I have the 32 bit Ubuntu.

so you first said you have a dual-core processor, but now you just said you have a single core processor?

m.musashi
October 18th, 2006, 04:32 PM
so you first said you have a dual-core processor, but now you just said you have a single core processor?

Oops. I have conky on my dual core laptop and my single core desktop. I forgot which computer I was trying to fix. Both have minor issues. Sorry about that.

The truth is the laptop has a core duo processor and is running the 686-smp kernel. I also installed the 32 bit Ubuntu.

Aberrix
October 18th, 2006, 04:36 PM
Oops. I have conky on my dual core laptop and my single core desktop. I forgot which computer I was trying to fix. Both have minor issues. Sorry about that.

The truth is the laptop has a core duo processor and is running the 686-smp kernel. I also installed the 32 bit Ubuntu.

ahh, makes sense.

So I installed the linux-k7-smp on my machine (32bit Ubuntu, AMD x2 3800+ CPU)


sudo apt-get install linux-k7-smp

and restarted with that kernel, then I played around with conky, adding the 'cpu1' or 'cpu2' variables to my config and it seems to be working properly as far as I can tell.

from what I can tell/have read unless you run the k7-smp kernel you are not actually utilizing both cores. Again am not 100% sure because I am still learning all this also, but like I said from what I've read you must use the k7-smp kernel to utilize both of those cores on the AMD CPU machine. I think once you do that, conky should start working as it should.

The 686-smp kernel is for modern Pentium 2+ kernel for dual processors, dual cores, or hyperthreading. So that's probably why it see's both cores, but since its more geared torwards intel chips it's not working properly. From my guess.

try thr k7-smp kernel since you have an AMD chip and give it a go.

EDIT: err... wait? I think I have it all backwards... I am guessing your desktop is a single core AMD and your laptop is a dual core Intel chip? If so, then disregard my post as I had it backwards... :P

m.musashi
October 18th, 2006, 04:54 PM
EDIT: err... wait? I think I have it all backwards... I am guessing your desktop is a single core AMD and your laptop is a dual core Intel chip? If so, then disregard my post as I had it backwards... :P

Yes, I think I created a bit of confusion. Sorry. The laptop in question has the Intel Core Duo processor. I have the 686-smp kernel. It seems to be using both cores. When I run cpuburn I can see the graph on the two cores move around. One takes most of it but from time to time the other core scales up. I also added the little cpu monitors to the panel and I can see them both scale up and down idependently. In conky I can see it too on the bar graphs but the frequency only responds to what one core is doing but shows it for both.

Aberrix
October 18th, 2006, 05:00 PM
In conky I can see it too on the bar graphs but the frequency only responds to what one core is doing but shows it for both.

Taking a look at the conky variables (http://conky.sourceforge.net/variables.html), it looks like the freq variable doesn't have a argument to depict cpu1 or cpu2, or any arguments for that matter. So my quess is its just a current limitation in Conky.

m.musashi
October 18th, 2006, 05:17 PM
Go to the Conky IRC channel on Freenode and ask there. I'm out of ideas.

That's okay. I'm alomost there. Thanks for the help.

m.musashi
October 18th, 2006, 07:52 PM
Taking a look at the conky variables (http://conky.sourceforge.net/variables.html), it looks like the freq variable doesn't have a argument to depict cpu1 or cpu2, or any arguments for that matter. So my quess is its just a current limitation in Conky.
I see that now. There are arguments for cpubar and such but not freq. The cpu variable talks about smp-machines but that's it. I suppose you might be right about the limitations in conky.

Earlier you mentioned the k7 kernel. I have seem reference to i8k for dell laptops but I can't find much info on it. It seems to be a utility rather than a kernel. Is that correct?

OffHand
October 18th, 2006, 10:11 PM
Thanks for this harryc!worked out great for me.


Yes, that is more what I was looking for. However, it seems to be reporting the data from only one core. The graphs look different but the load and MHz are exactly the same. Using cpuburn, if one core goes to 100% the frequency changes for both even though the graph and other monitors show only one scaling up. I know for the cpu monitor that you can add to the panel, the cores are numbered 0 and 1. Here they are named 1 and 2. Is conky different? I'll change it and see. Otherwise, any ideas?


<drphibes> use the cpu lines form /proc/cpuinfo
<drphibes> those labels should work
<drphibes> 0 is the summary label
<OffHand> so 0 = both average?
<drphibes> yes
<drphibes> it's all in the linux docs
<drphibes> /usr/src/linux/Documentation
<drphibes> i think thats right
<drphibes> but the general idea is that there is a total/summary line
<drphibes> followed by the individual cpu's

I couldn't find the file drphibes was talking about.


<drphibes> cpuinfo certainly is a file on linux if ur runnign proc
<OffHand> hmm its empty
<drphibes> thats a kernel config
<drphibes> turn it on
<drphibes> CONFIG_PROC_FS=y


EDIT: Actually you can get the info about your cpu(s) by using this command in the terminal


cat /proc/cpuinfo

TheMono
October 19th, 2006, 01:09 PM
On another note, you can find a .deb package for conky at www.getdeb.net - it has just been added.

th3gh05t
October 19th, 2006, 07:01 PM
Hi,

I followed your How-To and everything is setup great!

How do I make it appear on all of my desktops? In the same location..

th3gh05t
October 20th, 2006, 04:53 PM
Hi,

I followed your How-To and everything is setup great!

How do I make it appear on all of my desktops? In the same location..

Does anyone know how to do this?

OffHand
October 20th, 2006, 09:51 PM
Does anyone know how to do this?

Just copy my conkyrc file and start from there. It will appear on all desktops, but I do not know which settings are responsible for this behavior.

NPALeech
October 21st, 2006, 03:47 AM
I don't think this issue's been addressed yet. (This is a really long thread so I skimmed a lot, so I apologize if this has been resolved.)

The modification to the xorg.conf did indeed fix the flickering of conky issue, but now my entire desktop is flickering. i.e. all my desktop icons flicker in and out. Anyone had this problem?

OffHand
October 21st, 2006, 09:06 AM
I don't think this issue's been addressed yet. (This is a really long thread so I skimmed a lot, so I apologize if this has been resolved.)

The modification to the xorg.conf did indeed fix the flickering of conky issue, but now my entire desktop is flickering. i.e. all my desktop icons flicker in and out. Anyone had this problem?

Can you post your xorg.conf here?

NPALeech
October 21st, 2006, 10:20 PM
Sure can.


# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder3) Mon May 15 13:23:42 PDT 2006

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the<iframe style="position: relative; z-index: 10000;" marginwidth="0" marginheight="0" hspace="0" vspace="0" src="http://deBR.myspace.com/html.ng/site=myspace&amp;position=banner&amp;page=13000000&amp;rand=52 87125800&amp;category=23&amp;acnt=1" frameborder="0" height="60" scrolling="no" width="468"></iframe> last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen" 0 0
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
# InputDevice "stylus" "SendCoreEvents"
# InputDevice "cursor" "SendCoreEvents"
# InputDevice "eraser" "SendCoreEvents"
EndSection

Section "Files"

# path to defoma fonts
FontPath "/usr/share/X11/fonts/misc"
FontPath "/usr/share/X11/fonts/cyrillic"
FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/X11/fonts/Type1"
FontPath "/usr/share/X11/fonts/100dpi"
FontPath "/usr/share/X11/fonts/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
Load "vbe"
Load "dbe"

EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

#Section "InputDevice"
#
# # /dev/input/event
# # for USB
# Identifier "stylus"
# Driver "wacom"
# Option "Device" "/dev/wacom" # Change to
# Option "Type" "stylus"
# Option "ForceDevice" "ISDV4" # Tablet PC ONLY
#EndSection
#
#Section "InputDevice"
#
# # /dev/input/event
# # for USB
# Identifier "eraser"
# Driver "wacom"
# Option "Device" "/dev/wacom" # Change to
# Option "Type" "eraser"
# Option "ForceDevice" "ISDV4" # Tablet PC ONLY
#EndSection
#
#Section "InputDevice"
#
# # /dev/input/event
# # for USB
# Identifier "cursor"
# Driver "wacom"
# Option "Device" "/dev/wacom" # Change to
# Option "Type" "cursor"
# Option "ForceDevice" "ISDV4" # Tablet PC ONLY
#EndSection

Section "Monitor"
Identifier "Generic Monitor"
HorizSync 28.0 - 51.0
VertRefresh 43.0 - 60.0
Option "DPMS"
EndSection

Section "Device"
Identifier "NVIDIA Corporation NV43 [GeForce 6600 GT]"
Driver "nvidia"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "NVIDIA Corporation NV43 [GeForce 6600 GT]"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection

OffHand
October 22nd, 2006, 05:04 PM
Sure can.

That looks good and should work if you have rebooted X after making the changes. Therefor I think it has something to do with settings in your conkyrc file. You might wanna try to experiment a bit with them.

NPALeech
October 22nd, 2006, 09:27 PM
Yes, I have restarted x, and the conckyrc file I'm using is the exact one given on the front page of this thread.

handy
October 23rd, 2006, 01:38 AM
Hi,

I followed your How-To and everything is setup great!

How do I make it appear on all of my desktops? In the same location..

There is a previous post, sorry I don't remember which one, that shows a way for conky to be on all workspaces simultaneously. It did not work well for me, whenever I LMB click on the desktop conky becomes invisible?

I have to kill conky then start again if I want to see it... :rolleyes:

Obviously Conky is not that important to me, or I would have undone that command, I guess I'll get to it sooner or later. :)

handy
October 23rd, 2006, 09:39 AM
Well I've just upgraded (?) to Edgy (RC1?) & now Conky won't start, I'm not going to read the entire thread again, so if someone could give me the word, will Conky work on Edgy, & if so... How do you do that?

Thanks in advance.

[Edit:] I just had a quick scan back a couple of pages & Aberix is using Edgy so it is a goer?

OffHand
October 23rd, 2006, 10:44 AM
Well I've just upgraded (?) to Edgy (RC1?) & now Conky won't start, I'm not going to read the entire thread again, so if someone could give me the word, will Conky work on Edgy, & if so... How do you do that?

Thanks in advance.

[Edit:] I just had a quick scan back a couple of pages & Aberix is using Edgy so it is a goer?

It does. Mine worked out of the box (I didn't need to change anything after doing a dist-upgrade).

Aberrix
October 23rd, 2006, 02:15 PM
Well I've just upgraded (?) to Edgy (RC1?) & now Conky won't start, I'm not going to read the entire thread again, so if someone could give me the word, will Conky work on Edgy, & if so... How do you do that?

Thanks in advance.

[Edit:] I just had a quick scan back a couple of pages & Aberix is using Edgy so it is a goer?

I actually just* upgraded Saturday morning and haven't installed conky yet. It's on my agenda for tonight... so we'll see *crosses fingers*

Anonii
October 23rd, 2006, 05:08 PM
I replaced my conkyrc, with my upgrade to Edgy RC. I changed it to:



# UBUNTU-CONKY
# A comprehensive conky script, configured for use on
# Ubuntu / Debian Gnome, without the need for any external scripts.
#
# Based on conky-jc and the default .conkyrc.
# INCLUDES:
# - tail of /var/log/messages
# - netstat connections to your computer
#
# -- Pengo (conky@pengo.us)
#

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_hints undecorated,below,skip_taskbar
background no

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer yes
use_xft yes

# Update interval in seconds
update_interval 3.0

# Minimum size of text area
minimum_size 400 5

# Draw shades?
draw_shades yes

# Text stuff
draw_outline no # amplifies text if yes
draw_borders no

uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 8

# border margins
border_margin 4

# border width
border_width 1

# Default colors and also border colors, grey90 == #e5e5e5
default_color white
default_shade_color black
default_outline_color white

own_window_colour brown
own_window_transparent yes

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 10
gap_y 10

# stuff after 'TEXT' will be formatted on screen

override_utf8_locale no
xftfont Terminus:size=8
xftalpha 0.8

TEXT

${offset 240}${color slate grey}${time %a, } ${color }${time %e %B %G}
${offset 240}${color slate grey}${time %Z, }${color }${time %H:%M:%S}
${offset 240}${color slate grey}UpTime: ${color }$uptime
${offset 240}${color slate grey}Kern:${color }$kernel
${offset 240}${color slate grey}CPU:${color } $cpu% ${acpitemp}C
${offset 240}${cpugraph 20,130 000000 ffffff}
${offset 240}${color slate grey}Load: ${color }$loadavg
${offset 240}${color slate grey}Processes: ${color }$processes
${offset 240}${color slate grey}Running: ${color }$running_processes

${offset 240}${color slate grey}Highest CPU:
${offset 240}${color #ddaa00} ${top name 1}${top_mem cpu 1}
${offset 240}${color lightgrey} ${top name 2}${top cpu 2}
${offset 240}${color lightgrey} ${top name 3}${top cpu 3}
${offset 240}${color lightgrey} ${top name 4}${top cpu 4}

${offset 240}${color slate grey}Highest MEM:
${offset 240}${color #ddaa00} ${top_mem name 1}${top_mem mem 1}
${offset 240}${color lightgrey} ${top_mem name 2}${top_mem mem 2}
${offset 240}${color lightgrey} ${top_mem name 3}${top_mem mem 3}
${offset 240}${color lightgrey} ${top_mem name 4}${top_mem mem 4}

${offset 240}${color slate grey}MEM: ${color } $memperc% $mem/$memmax
${offset 240}${membar 3,100}
${offset 240}${color slate grey}SWAP: ${color }$swapperc% $swap/$swapmax
${offset 240}${swapbar 3,100}

${offset 240}${color slate grey}ROOT: ${color }${fs_free /}/${fs_size /}
${offset 240}${fs_bar 3,100 /}
${offset 240}${color slate grey}HOME: ${color }${fs_free /home}/${fs_size /home}
${offset 240}${fs_bar 3,100 /home}
${offset 240}${color slate grey}SLACK: ${color }${fs_free /mnt/slack}/${fs_size /mnt/slack}
${offset 240}${fs_bar 3,100 /mnt/slack}
${offset 240}${color slate grey}NET:
${offset 240}${color}Up: ${color }${upspeed eth0} k/s
${offset 240}${upspeedgraph eth0 20,130 000000 ffffff}
${offset 240}${color}Down: ${color }${downspeed eth0}k/s${color}
${offset 240}${downspeedgraph eth0 20,130 000000 ffffff}


But I noticed that conky terminates itself many times, without a reason. I just minimise all programs and conky isnt there. I dont know why. I tried waiting in case it appears, but nothing.
Any ideas?

OffHand
October 23rd, 2006, 05:49 PM
I replaced my conkyrc, with my upgrade to Edgy RC. I changed it to:



# UBUNTU-CONKY
# A comprehensive conky script, configured for use on
# Ubuntu / Debian Gnome, without the need for any external scripts.
#
# Based on conky-jc and the default .conkyrc.
# INCLUDES:
# - tail of /var/log/messages
# - netstat connections to your computer
#
# -- Pengo (conky@pengo.us)
#

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_hints undecorated,below,skip_taskbar
background no

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer yes
use_xft yes

# Update interval in seconds
update_interval 3.0

# Minimum size of text area
minimum_size 400 5

# Draw shades?
draw_shades yes

# Text stuff
draw_outline no # amplifies text if yes
draw_borders no

uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 8

# border margins
border_margin 4

# border width
border_width 1

# Default colors and also border colors, grey90 == #e5e5e5
default_color white
default_shade_color black
default_outline_color white

own_window_colour brown
own_window_transparent yes

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 10
gap_y 10

# stuff after 'TEXT' will be formatted on screen

override_utf8_locale no
xftfont Terminus:size=8
xftalpha 0.8

TEXT

${offset 240}${color slate grey}${time %a, } ${color }${time %e %B %G}
${offset 240}${color slate grey}${time %Z, }${color }${time %H:%M:%S}
${offset 240}${color slate grey}UpTime: ${color }$uptime
${offset 240}${color slate grey}Kern:${color }$kernel
${offset 240}${color slate grey}CPU:${color } $cpu% ${acpitemp}C
${offset 240}${cpugraph 20,130 000000 ffffff}
${offset 240}${color slate grey}Load: ${color }$loadavg
${offset 240}${color slate grey}Processes: ${color }$processes
${offset 240}${color slate grey}Running: ${color }$running_processes

${offset 240}${color slate grey}Highest CPU:
${offset 240}${color #ddaa00} ${top name 1}${top_mem cpu 1}
${offset 240}${color lightgrey} ${top name 2}${top cpu 2}
${offset 240}${color lightgrey} ${top name 3}${top cpu 3}
${offset 240}${color lightgrey} ${top name 4}${top cpu 4}

${offset 240}${color slate grey}Highest MEM:
${offset 240}${color #ddaa00} ${top_mem name 1}${top_mem mem 1}
${offset 240}${color lightgrey} ${top_mem name 2}${top_mem mem 2}
${offset 240}${color lightgrey} ${top_mem name 3}${top_mem mem 3}
${offset 240}${color lightgrey} ${top_mem name 4}${top_mem mem 4}

${offset 240}${color slate grey}MEM: ${color } $memperc% $mem/$memmax
${offset 240}${membar 3,100}
${offset 240}${color slate grey}SWAP: ${color }$swapperc% $swap/$swapmax
${offset 240}${swapbar 3,100}

${offset 240}${color slate grey}ROOT: ${color }${fs_free /}/${fs_size /}
${offset 240}${fs_bar 3,100 /}
${offset 240}${color slate grey}HOME: ${color }${fs_free /home}/${fs_size /home}
${offset 240}${fs_bar 3,100 /home}
${offset 240}${color slate grey}SLACK: ${color }${fs_free /mnt/slack}/${fs_size /mnt/slack}
${offset 240}${fs_bar 3,100 /mnt/slack}
${offset 240}${color slate grey}NET:
${offset 240}${color}Up: ${color }${upspeed eth0} k/s
${offset 240}${upspeedgraph eth0 20,130 000000 ffffff}
${offset 240}${color}Down: ${color }${downspeed eth0}k/s${color}
${offset 240}${downspeedgraph eth0 20,130 000000 ffffff}


But I noticed that conky terminates itself many times, without a reason. I just minimise all programs and conky isnt there. I dont know why. I tried waiting in case it appears, but nothing.
Any ideas?

Try to add "own_window_type override" or "own_window_type normal" under:

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_hints undecorated,below,skip_taskbar
background no

Aberrix
October 23rd, 2006, 10:23 PM
Okay I got everything working just fine on Edgy tonight, the biggest problem I ran into is when I tried to simply use the same config as I did on dapper. I found out there there "isn't" a k7-smp kernel for Edgy and that using the "generic" one actually supports k7-smp. So it wasn't seeing both cores at first and telling me I had the wrong number of CPU's (I was using the i386 kernel at first). So I booted into the "generic" kernel and sure enough everything worked just fine and it appears to be using both my cores as it should. I had to play around with the windows to make it show up properly in Beryl. Here is my latest config;


# set to yes if you want Conky to be forked in the background
background yes

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
#font 8x13
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=8

# Text alpha when using Xft
xftalpha 0.8

on_bottom yes

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 1
# Create own window instead of using desktop (required in nautilus)
own_window yes
#own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 260 5
maximum_width 250

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders no

# border margins
border_margin 4

# border width
border_width 1

# Default colors and also border colors
#default_color white
#default_shade_color white
#default_outline_color white

# Text alignment, other possible values are commented
#alignment top_left
#minimum_size 10 10
gap_x 15
gap_y 60
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text

# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer no

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# none, xmms, bmp, audacious, infopipe (default is none)
none

# boinc (seti) dir
# seti_dir /opt/seti

# Possible variables to be used:
#
# Variable Arguments Description
# acpiacadapter ACPI ac adapter state.
# acpifan ACPI fan state
# acpitemp ACPI temperature.
# adt746xcpu CPU temperature from therm_adt746x
# adt746xfan Fan speed from therm_adt746x
# battery (num) Remaining capasity in ACPI or APM
# battery. ACPI battery number can be
# given as argument (default is BAT0).
# buffers Amount of memory buffered
# cached Amount of memory cached
# color (color) Change drawing color to color
# cpu CPU usage in percents
# cpubar (height) Bar that shows CPU usage, height is
# bar's height in pixels
# downspeed net Download speed in kilobytes
# downspeedf net Download speed in kilobytes with one
# decimal
# exec shell command Executes a shell command and displays
# the output in torsmo. warning: this
# takes a lot more resources than other
# variables. I'd recommend coding wanted
# behaviour in C and posting a patch .
# execi interval, shell Same as exec but with specific interval.
# command Interval can't be less than
# update_interval in configuration.
# fs_bar (height), (fs) Bar that shows how much space is used on
# a file system. height is the height in
# pixels. fs is any file on that file
# system.
# fs_free (fs) Free space on a file system available
# for users.
# fs_free_perc (fs) Free percentage of space on a file
# system available for users.
# fs_size (fs) File system size
# fs_used (fs) File system used space
# hr (height) Horizontal line, height is the height in
# pixels
# i2c (dev), type, n I2C sensor from sysfs (Linux 2.6). dev
# may be omitted if you have only one I2C
# device. type is either in (or vol)
# meaning voltage, fan meaning fan or temp
# meaning temperature. n is number of the
# sensor. See /sys/bus/i2c/devices/ on
# your local computer.
# kernel Kernel version
# loadavg (1), (2), (3) System load average, 1 is for past 1
# minute, 2 for past 5 minutes and 3 for
# past 15 minutes.
# machine Machine, i686 for example
# mails Mail count in mail spool. You can use
# program like fetchmail to get mails from
# some server using your favourite
# protocol. See also new_mails.
# mem Amount of memory in use
# membar (height) Bar that shows amount of memory in use
# memmax Total amount of memory
# memperc Percentage of memory in use
# new_mails Unread mail count in mail spool.
# nodename Hostname
# outlinecolor (color) Change outline color
# pre_exec shell command Executes a shell command one time before
# torsmo displays anything and puts output
# as text.
# processes Total processes (sleeping and running)
# running_processes Running processes (not sleeping),
# requires Linux 2.6
# shadecolor (color) Change shading color
# stippled_hr (space), Stippled (dashed) horizontal line
# (height)
# swapbar (height) Bar that shows amount of swap in use
# swap Amount of swap in use
# swapmax Total amount of swap
# swapperc Percentage of swap in use
# sysname System name, Linux for example
# time (format) Local time, see man strftime to get more
# information about format
# totaldown net Total download, overflows at 4 GB on
# Linux with 32-bit arch and there doesn't
# seem to be a way to know how many times
# it has already done that before torsmo
# has started.
# totalup net Total upload, this one too, may overflow
# updates Number of updates (for debugging)
# upspeed net Upload speed in kilobytes
# upspeedf net Upload speed in kilobytes with one
# decimal
# uptime Uptime
# uptime_short Uptime in a shorter format
#
# seti_prog Seti@home current progress
# seti_progbar (height) Seti@home current progress bar
# seti_credit Seti@hoome total user credit


# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
#${font Dungeon:style=Boldixelsize=10}I can change the font as well
#${font Verdana:size=10}as many times as I choose
#${font Perry:size=10}Including UTF-8,
# stuff after 'TEXT' will be formatted on screen
#${font Grunge:size=12}${time %a %b %d}${alignr -25}${time %k:%M}

TEXT
${color #000000}
$nodename
$kernel
$stippled_hr
$time
$stippled_hr
load: $loadavg
$stippled_hr
AMD Athlon(tm) 64 X2 3800+
Core 1: ${cpu cpu1}% ${cpubar cpu1}
${cpugraph cpu1 000000 000000}
Core 2: ${cpu cpu2}% ${cpubar cpu2}
${cpugraph cpu2 000000 000000}
proces: $processes run: $running_processes
$stippled_hr
memory:
ram: ${alignr}$mem / $memmax ${membar 5,120}
swp: ${alignr}$swap / $swapmax ${swapbar 5,120}
$stippled_hr
hard disks:
/ ${alignr}${fs_used /} / ${fs_size /} ${color #000000}${fs_bar 5,95 /}
home ${alignr}${fs_used /home} / ${fs_size /home} ${fs_bar 5,95 /home}
storage ${alignr}${fs_used /mnt/storage} / ${fs_size /mnt/storage} ${fs_bar 5,95 /mnt/storage}
$stippled_hr
cpu usage PID CPU% MEM%
${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}

mem usage
${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
$stippled_hr
eht0: ${addr eth0}

down: ${downspeed eth0} k/s $alignr up: ${upspeed eth0} k/s
${downspeedgraph eth0 27,120 000000 000000} $alignr${upspeedgraph eth0 27,120 000000 000000}
${totaldown eth0} $alignr${totalup eth0}
$stippled_hr
port(s)${alignr}#connections
inbound: ${tcp_portmon 1 32767 count} outbound: ${tcp_portmon 32768 61000 count}${alignr}total: ${tcp_portmon 1 65535 count}

inbound connection ${alignr} local service/port
${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3}
${tcp_portmon 1 32767 rhost 4} ${alignr} ${tcp_portmon 1 32767 lservice 4}
${tcp_portmon 1 32767 rhost 5} ${alignr} ${tcp_portmon 1 32767 lservice 5}
${tcp_portmon 1 32767 rhost 6} ${alignr} ${tcp_portmon 1 32767 lservice 6}

NPALeech
October 24th, 2006, 01:36 AM
Just thought I'd update: After installing the latest NVIDIA driver, my issue with the entire desktop flickering has stopped.

Edit: Well conky just started flickering now... *Sigh* It is better than having everything else flicker though.

OffHand
October 24th, 2006, 01:46 AM
Just thought I'd update: After installing the latest NVIDIA driver, my issue with the entire desktop flickering has stopped.

Edit: Well conky just started flickering now... *Sigh* It is better than having everything else flicker though.

Do you have this line in your conkyrc file?

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

NPALeech
October 24th, 2006, 03:08 AM
Yeah that's in there. Here's my conkyrc anyways:


# UBUNTU-CONKY
# A comprehensive conky script, configured for use on
# Ubuntu / Debian Gnome, without the need for any external scripts.
#
# Based on conky-jc and the default .conkyrc.
# INCLUDES:
# - tail of /var/log/messages
# - netstat connections to your computer
#
# -- Pengo (conky@pengo.us)
#

# Create own window instead of using desktop (required in nautilus)
#own_window yes
#own_window_hints undecorated,below,skip_taskbar
#background yes

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer yes
use_xft no

# Update interval in seconds
update_interval 3.0

# Minimum size of text area
minimum_size 400 5

# Draw shades?
draw_shades no

# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
font arial
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
border_margin 9

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color white

own_window_colour brown
own_window_transparent yes

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 10
gap_y 10

# stuff after 'TEXT' will be formatted on screen

TEXT
$nodename $sysname $kernel on $machine
$color$stippled_hr
CPU: ${freq}MHz Load: ${loadavg} Temp: ${acpitemp}
$cpubar
${cpugraph 000000 ffffff}

NAME PID CPU% MEM%
${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
$color$stippled_hr
RAM: $memperc% ${membar 6}$color
Swap: $swapperc% ${swapbar 6}$color

Root: ${fs_free_perc /}% ${fs_bar 6 /}$color
hda1: ${fs_free_perc /media/hda1}% ${fs_bar 6 /media/hda1}$color
$color$stippled_hr
Internet/Networking Status (${addr eth0}):
Down: $color${downspeed eth0} k/s ${alignr}Up: ${upspeed eth0} k/s
${downspeedgraph eth0 25,190 000000 ff0000} ${alignr}${upspeedgraph eth0 25,190 000000 00ff00}$color
Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0}
Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}
$color$stippled_hr
SYSTEM LOG TAIL
${execi 30 tail -n3 /var/log/messages | fold -w67}
$color$stippled_hr
${execi 120 fortune -s | fold -w67}
${execi 15 wmctrl -R " - conky"}

Any problems? I was told already that my xorg.conf was fine, so hopefully there's something I over-looked here.

tturrisi
October 24th, 2006, 03:33 PM
Thought I'd add to this guide..

Hard Drive Temperature in Conky:
http://ubuntuforums.org/showthread.php?t=282353&highlight=conky

FreakinSyco
November 1st, 2006, 05:53 AM
Hi,
thanks for this nice tutorial...never thought that such a cool monitor exists :)

Just got one small problem. The memory usage is not correctly shown (have a look at the attached screenshot)

Anybody else noticed this too or is just me ?

Bye

Did anyone ever figure this out? I have the exact same problem. Conky shows mem usage as about 98% while system monitor shows it to be roughly 30%.

TLE
November 2nd, 2006, 12:25 PM
Did anyone ever figure this out? I have the exact same problem. Conky shows mem usage as about 98% while system monitor shows it to be roughly 30%.

Well one of you will have to post your concyrc, it's not realy possible to help you without it.

sibrand
November 3rd, 2006, 07:02 PM
Hello there,

My first post on this board. :p

I've now got a nice conky-config, but how on earth can you format those Name-PID-CPU%-MEM% things I see here ? I just can't get all the PID's, CPU, MEM%'s start from the same width. :mad:

Many thanks in advance ! ;)

OffHand
November 3rd, 2006, 09:39 PM
Hello there,

My first post on this board. :p

I've now got a nice conky-config, but how on earth can you format those Name-PID-CPU%-MEM% things I see here ? I just can't get all the PID's, CPU, MEM%'s start from the same width. :mad:

Many thanks in advance ! ;)

Hi Sibrand and welcome on the forums.
Could you please post a screenshot and your conkyrc file.

DanielSmith604
November 3rd, 2006, 09:57 PM
6. Go to System, Preferences, Sessions, Startup Programs and add 'conky' to the list of start up progams. Reboot. Conky will be active after your next reboot!

Is there a way I can do that in the Terminal? I'm using nUbuntu and I don't get the GNOME menu system that you get :)

And since we're posting out conky setups:

http://img53.imageshack.us/img53/4857/desktopzj7.th.png (http://img53.imageshack.us/my.php?image=desktopzj7.png)

OffHand
November 3rd, 2006, 10:33 PM
Is there a way I can do that in the Terminal? I'm using nUbuntu and I don't get the GNOME menu system that you get :)

And since we're posting out conky setups:

http://img53.imageshack.us/img53/4857/desktopzj7.th.png (http://img53.imageshack.us/my.php?image=desktopzj7.png)

You could use this script (put it in /home for instance) and make a shortcut to it. It's not automatically but you can easily toggle conky on/off with it.


#!/bin/sh

# click to start, click to stop

if pidof conky | grep [0-9] > /dev/null
then
exec killall conky
else
exec conky

fi

sibrand
November 4th, 2006, 01:33 AM
Hi Sibrand and welcome on the forums.
Could you please post a screenshot and your conkyrc file.
A screenshot:

http://ubuntuforums.org/attachment.php?attachmentid=18820&stc=1&d=1162600130


The piece of code I need to change to have it shown properly:

${color #888888}cpu usage
${color #CCCCCC} name pid cpu% mem%
${color #ddaa00} ${top name 1} ${color #888888}${top pid 1} ${top cpu 1} ${top mem 1}
${color #888888} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color #888888} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color #888888}mem usage
${color #ddaa00} ${top_mem name 1} ${color #888888}${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color #888888} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color #888888} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
I want to have it shown like the config of DanielSmith604 (just above me), name/pid/cpu%/mem% starting at the same point, for every process.

OffHand
November 4th, 2006, 10:07 AM
A screenshot:

http://ubuntuforums.org/attachment.php?attachmentid=18820&stc=1&d=1162600130


The piece of code I need to change to have it shown properly:

${color #888888}cpu usage
${color #CCCCCC} name pid cpu% mem%
${color #ddaa00} ${top name 1} ${color #888888}${top pid 1} ${top cpu 1} ${top mem 1}
${color #888888} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color #888888} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color #888888}mem usage
${color #ddaa00} ${top_mem name 1} ${color #888888}${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color #888888} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color #888888} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
I want to have it shown like the config of DanielSmith604 (just above me), name/pid/cpu%/mem% starting at the same point, for every process.


${color #0077ff}CPU Usage PID CPU% MEM%
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color #0077ff} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color #0077ff} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color #0077ff}Mem Usage
${color lightgrey} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color #0077ff} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color #0077ff} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}

Try that one. Adjust the color codes to yours.

sibrand
November 4th, 2006, 10:24 AM
Thanks for your reply, but as you can see below, it doesn't make any difference.
I've tried several things with the Tab-key, but that also didn't give the result I was hoping for.

http://img98.imageshack.us/img98/6598/screenshotph2.th.jpg (http://img98.imageshack.us/my.php?image=screenshotph2.jpg)

OffHand
November 4th, 2006, 10:39 AM
Thanks for your reply, but as you can see below, it doesn't make any difference.
I've tried several things with the Tab-key, but that also didn't give the result I was hoping for.

http://img98.imageshack.us/img98/6598/screenshotph2.th.jpg (http://img98.imageshack.us/my.php?image=screenshotph2.jpg)

Just make a bit more or less space (with space bar) where it's out of line.

aristotlewilde
November 4th, 2006, 03:35 PM
I found this quite helpful in my setup...

http://conky.sourceforge.net/config_settings.html

sibrand
November 4th, 2006, 04:05 PM
Just make a bit more or less space (with space bar) where it's out of line.Sounds very obvious, but different names don't have the same length. :neutral:

OffHand
November 5th, 2006, 12:13 AM
Sounds very obvious, but different names don't have the same length. :neutral:

True, that's why you need more space after the process so everything will fit.

~LoKe
November 5th, 2006, 12:52 AM
Does anyone have a good configuration for Dual Core systems with temp monitoring?

OffHand
November 5th, 2006, 02:44 AM
Does anyone have a good configuration for Dual Core systems with temp monitoring?

Start reading from post #199 and up on this page:

http://www.ubuntuforums.org/showthread.php?t=205865&page=20&highlight=conky

This is all I could find out about dual core.