PDA

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


Pages : 1 [2] 3 4

~LoKe
November 4th, 2006, 11:47 PM
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.

I've got one going for Dual Core, was just wondering what others had come up with. Thanks. =]

Linuturk
November 5th, 2006, 01:31 AM
I'm running Edgy Eft, and I noticed that the repos have the 1.42-1 version. Should I use this one instead?

OffHand
November 5th, 2006, 06:12 AM
I'm running Edgy Eft, and I noticed that the repos have the 1.42-1 version. Should I use this one instead?

If it works I wouldn't change it. A new release should come soon but I do not have an eta.

lammer
November 5th, 2006, 06:25 AM
Does anyone know how to get this perl script work?

http://conky.sourceforge.net/gmail.pl

It shows your current gmail inbox into conky, and I think it should be lighter than the "gmail updater" that I'm running right now...

DanielSmith604
November 5th, 2006, 06:29 PM
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


Thanks for the help but I'm looking for this type of activity:

'conky' starts 30 seconds after 'startx' initiates. Also end 'conky' when you stop x

:-D

hikaricore
November 5th, 2006, 11:48 PM
Does anyone know how to get this perl script work?

http://conky.sourceforge.net/gmail.pl

It shows your current gmail inbox into conky, and I think it should be lighter than the "gmail updater" that I'm running right now...

http://gentoo-wiki.com/TIP_conky

has some info on using grep and cat to parse perl scripts and use them in conky, sorry I don't have alot of time to test it out for ya just thought I'd point you in the right direction. the info they have is used for the xmms info script but with a little tinkering i'm sure it can be adapted for your use :)

adam.tropics
November 11th, 2006, 09:48 PM
Cheers. Excellent!

adam.tropics
November 12th, 2006, 06:05 AM
Using this to check a pop mail account, it is meant to check apparently every 5 mins by default. If it finds mail, it registers it and displays as expected, but then doesn't update it again, any ideas?

Yahoo Email: $alignr${pop3_unseen pop.mail.yahoo.com.au **username** **password**} new messages

Don_DiZzLe
November 20th, 2006, 04:30 PM
Im trying to compile conky 1.4.4 with the following

./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-xft --enable-own-window --enable-proc-uptime --enable-hddtemp --enable-mpd --enable-imlib2 --enable-portmon --enable-double-buffer --enable-xdamage --enable-x11

However the last 2 lines read:

checking for XDamageQueryExtension in -lXdamage... no
configure: error: Could not find XDamageQueryExtension in -lXdamage

How do I fix this?

Edit: I fixed it! I had to install libxdamage-dev to make it work.

m.musashi
November 22nd, 2006, 12:56 AM
I'm having some trouble with conky and kde (also beryl running but the problem exists even without beryl running). As you can see in the attached image, I can't get rid of the black background. I've also included my .conkyrc.

I thought this part might be the problem # Default colors and also border colors, grey90 == #e5e5e5
default_color white

own_window_colour brown
own_window_transparent yes
but commenting out didn't change anything.

Any ideas? Thanks.
# 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

## options for beryl
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 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
# move below to bottom to add system log data
##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"}

TEXT
$nodename $sysname $kernel on $machine
$color$stippled_hr
Uptime: $uptime
CPU Usage: ${cpu}% CPU: ${freq}MHz Load: ${loadavg} Temp: ${i2c temp 2}
${cpugraph 000000 ffffff}
CPU Fan: ${i2c fan 2} rpm Case Fan: ${i2c fan 1} rpm

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_used} / ${fs_size}: ${fs_free_perc /}% free ${fs_bar 6 /}$color
Home: ${fs_used /home} / ${fs_size /home}: ${fs_free_perc /home}% free ${fs_bar 6 /home}$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 0000ff} ${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

adam.tropics
November 22nd, 2006, 01:03 AM
well on mine,


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

are not commented, and I have transparent borderless window.

m.musashi
November 22nd, 2006, 01:10 AM
well on mine,


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

are not commented, and I have transparent borderless window.

Are you using gnome or kde? I had that first but according to the guide I am supposed to comment those out with kde. I've tried both but I get the black background either way.

adam.tropics
November 22nd, 2006, 01:31 AM
Ok, so I had a look into kde with relation to Conky, and I can't see how it should make any difference. With Beryl, it is suggested to start Conky after Beryl has started to prevent shadows etc being drawn. Anyway, the first half of my conkrc, all the config bit is below. See if you can see any other major differences. That's about all I can think of really! Sorry!

own_window yes
own_window_hints undecorated,below,skip_taskbar
background yes
double_buffer yes
use_spacer yes
use_xft yes
xftfont arial:size=9
update_interval 1.0
minimum_size 250 5
draw_shades yes
draw_outline no
draw_borders no
uppercase no
stippled_borders 3
border_margin 9
border_width 10
default_color FFFFFF
own_window_colour brown
own_window_transparent yes
alignment top_right
gap_x 15
gap_y 15

m.musashi
November 22nd, 2006, 02:17 AM
Thanks for the help. You have a few different setting so I tried them but no luck. I am starting conky after beryl but in all cases I continue to get the black background. If I start gnome I don't have any problems (I first have to uncomment the 3 lines for natilus) so something must be odd between my conky and kde. I'll keep looking.

CoolHand
November 22nd, 2006, 05:48 PM
Thanks for the help but I'm looking for this type of activity:

'conky' starts 30 seconds after 'startx' initiates. Also end 'conky' when you stop x

:-D

I use XFCE but I think Gnome and Kde both offer a tool to run commands at startup. I just write a simple bash script and call it from that startup tool. By calling a script instead of the individual programs I have total control over what it does. Below is my script as an example. You will notice I delay the start of a few programs to allow network-manager time to set up my wifi connection and also I run a check to see if I am plugged in on ethernet or on wifi and adjust things accordingly. Just FYI I have sudo set up to allow the firestarter widget to run without a password or this wouldn't work. I also have two different conky rc files for the different network setups. I hope this helps.

#!/bin/sh
#
# Startup script for XFCE4
# This way I can control better the timing
# and behavior of auto started applications

# Start the drop down terminal
# ... oops tilda has a bug that leaves orphaned
# lock files. We have just started the desktop
# so lets delete all lock files for tilda
/bin/rm -rf /home/myuser/.tilda/locks
/usr/bin/tilda &

# Detect network interface and adjust
# firewall and desktop monitor
ifconfig eth0 | grep -q "inet addr"
if [ $? = 0 ]
then
sudo sed -i 's/wlan0/\eth0/' /etc/firestarter/configuration
CONKY="/home/myuser/.conkyrc-eth0"
else
sudo sed -i 's/eth0/\wlan0/' /etc/firestarter/configuration
CONKY="/home/myuser/.conkyrc"
fi

# Start conky with slight delay
# to allow for network association
sleep 30
/usr/bin/conky -c $CONKY

# Start the firewall after a delay
sleep 10
/usr/bin/xhost + local:root
sudo /usr/sbin/firestarter --start-hidden &

~LoKe
November 22nd, 2006, 06:06 PM
CoolHand, could I by chance get your entire config?

CoolHand
November 23rd, 2006, 09:03 PM
CoolHand, could I by chance get your entire config?

Sure. I attached my full config (both actually) and all the support files. There are several scripts I have gotten from others and modified for my own use for gathering rss feeds and the weather. I have left credits in the headers where I used others code. You have to have curl and xsltproc installed for it all to work. Both are available with apt-get. I also added a better updated screenshot from my notebook PC which is the one I use most. I don't mind sharing. I put alot of time into my setup to get it just the way I like. Hope you find it useful.

~LoKe
November 23rd, 2006, 11:21 PM
After a little bit of hacking and slashing, it works! It's perfect. Thanks a lot. ;)

m.musashi
November 24th, 2006, 08:59 PM
I'm having some trouble with conky and kde (also beryl running but the problem exists even without beryl running). As you can see in the attached image, I can't get rid of the black background. I've also included my .conkyrc.

I'm replying to myself so anyone interested can view the original post easily. Hope that is okay.

I played around with this some more. I started with a fresh copy of the .conkyrc from the how-to and commented out the parts not needed for kubuntu. Now I get one big black screen with only the conky text that is not black visible. After some playing around with the settings, I noticed that turning off the double buffer option fixed the display but now conky "flickers".

Anyone know a solution to this (besides not using kde:))?

Thanks.

Don_DiZzLe
November 26th, 2006, 02:44 PM
Sure. I attached my full config (both actually) and all the support files. There are several scripts I have gotten from others and modified for my own use for gathering rss feeds and the weather. I have left credits in the headers where I used others code. You have to have curl and xsltproc installed for it all to work. Both are available with apt-get. I also added a better updated screenshot from my notebook PC which is the one I use most. I don't mind sharing. I put alot of time into my setup to get it just the way I like. Hope you find it useful.

Thnx alot for posting your files here, but I do have one question, I know that the configuration file .conkyrc goes in my homefolder but what about u'r files, where do I put them?

tturrisi
November 26th, 2006, 03:22 PM
I'm replying to myself so anyone interested can view the original post easily. Hope that is okay.

I played around with this some more. I started with a fresh copy of the .conkyrc from the how-to and commented out the parts not needed for kubuntu. Now I get one big black screen with only the conky text that is not black visible. After some playing around with the settings, I noticed that turning off the double buffer option fixed the display but now conky "flickers".

Anyone know a solution to this (besides not using kde:))?

Thanks.
re conky flickers:
add this to your /etc/x11/xorg.conf
Section "Module"
Load "dbe"
& restart X (ctrl-alt-backspace).

from the Conky FAQs: http://conky.sourceforge.net/faq.html
#
3. Q: Conky won't stop flickering

A: Conky is designed to draw to the root desktop window. However, there are several other applications which like drawing to the root desktop window. Because of this, Conky has two options available to get around this problem:

* You can try enabling double-buffer. Conky's double-buffer option uses the X double-buffer extension to provide a flicker-free Conky.
* Conky can run in windowed mode, meaning that instead of drawing the the root window it draws to it's own window. You can move this window around and resize it by right-clicking or left-clicking on the window while holding down the Alt key.

CoolHand
November 26th, 2006, 03:54 PM
Thnx alot for posting your files here, but I do have one question, I know that the configuration file .conkyrc goes in my homefolder but what about u'r files, where do I put them?

What I do is put them all in the same location and then create a link using ln -s in my home dir. That way I can keep it all nice and clean. As for where to put them it doesn't really matter. Wherever you prefer. Just after you decide you will need to edit the .conkyrc file and the weather script to adjust the paths to the scripts.

Don_DiZzLe
November 26th, 2006, 04:20 PM
I see that the weather is only available if u live in the USA, what about other countries (NL) ?

m.musashi
November 26th, 2006, 05:58 PM
@tturrisi

Thanks for the help. I do have the "dbe" part in my xorg.conf but without the double buffer option it doesn't seem to help. It all works fine in gnome but in kde I get the black background, the whole screen black or missing desktop icons. There doesn't seem to be an option that works well in kde (at least for me).

I'll try some of the other option you suggest. Thanks.

adam.tropics
November 27th, 2006, 01:47 AM
I see that the weather is only available if u live in the USA, what about other countries (NL) ?


No mate, you can use it from pretty much anywhere. I do, and I am in Cairns Australia....hardly a major city!

Anyway, to get location id, from a terminal, do (Example for Amsterdam!)

wget http://xoap.weather.com/search/search?where=AmsterdamThis will create a small text file in your home directory, part of which will be

<loc id="NLXX0002" type="1">Amsterdam, Netherlands</loc>...and Bob's your Uncle!

~LoKe
November 27th, 2006, 02:15 AM
I found my location...
<loc id="CAXX0255" type="1">London, Canada</loc>
But I don't know where to put "CAXX0255" or if I'm only supposed to use "0255". I googled around and read that I'm supposed to change a line in .conkyrc, so I found it:
${color #e9c703}Local Weather:
$color${execi 1800 /usr/bin/conky2/weather.gov.sh 0520}
so I changed "0520" to "0255" and then conky complained about not being able to find the page. Any ideas?

adam.tropics
November 27th, 2006, 02:27 AM
I found my location...

But I don't know where to put "CAXX0255" or if I'm only supposed to use "0255". I googled around and read that I'm supposed to change a line in .conkyrc, so I found it:
${color #e9c703}Local Weather:
$color${execi 1800 /usr/bin/conky2/weather.gov.sh 0520}so I changed "0520" to "0255" and then conky complained about not being able to find the page. Any ideas?

You can test by just running the script from a terminal before you edit conky itself. The output, with your FULL location id is below.

adamtropics@adam-laptop:~/weather$ ./weather.sh CAXX0520
Location: Saint-Hubert, Canada:
Temperature: 5C
Feels Like: 3C
Humidity: 93%
Conditions: Cloudy
Wind: 8km/h (5mph) (N)
Tomorrow: 1C to 7C, Few Showers...and might I say...that's damned cold! (8) currently at 32C !)

So in .conkyrc you want

${color #e9c703}Local Weather:
$color${execi 1800 /usr/bin/conky2/weather.gov.sh CAXX0255}

..and so long as your script location is correct, you should be set.

~LoKe
November 27th, 2006, 02:46 AM
I get a page not found error when I run that. I must have screwed something up when I was tinkering with it earlier. Thanks, at least I know I'm going in the right direction. ;)

adam.tropics
November 27th, 2006, 03:07 AM
I get a page not found error when I run that. I must have screwed something up when I was tinkering with it earlier. Thanks, at least I know I'm going in the right direction. ;)

Well I have attached my weather stuff. If you try it, and even if you don't, make sure with your script that the run directory is actually where it, and the xslt file are. The main difference is that mine uses the weather.com server rather than the weather.gov....other than that, not much, they are based off the same work. Oh, and make sure you have curl installed.

~LoKe
November 27th, 2006, 03:14 AM
Those scripts fixed the problem. Weather.gov is not available for Canada, but .com is.

Thanks!

CoolHand
November 27th, 2006, 05:15 AM
Those scripts fixed the problem. Weather.gov is not available for Canada, but .com is.

Thanks!

Sorry I didn't reply sooner. Glad you figured it out. I would have told you that the original script was for weather.com. I prefer the noaa weather service here in the US so I changed the script to point to them and toyed with the output format for what information I wanted to see.

ice60
November 29th, 2006, 11:08 AM
how do you get it to tail /var/log/messages? is it suppose to run as root?

~LoKe
November 29th, 2006, 11:49 AM
how do you get it to tail /var/log/messages? is it suppose to run as root?

Runs as regular user just fine for me.

ice60
November 29th, 2006, 12:31 PM
Runs as regular user just fine for me.
thanks, i had a feeling someone would say that :rolleyes: i'm actually running suse, i compiled it myself too, but i put the blame on suse, not my compilation :mrgreen:

HeSh
November 29th, 2006, 01:41 PM
Is it safe to use conky 1.4.2-1 from repository? In conky guide on EdgyCust pages author said "Note that at the time of writing this how-to, the conky in the ubuntu universe repository is very old and, in ways, broken." Is he refering to this version?

OffHand
November 29th, 2006, 02:33 PM
Is it safe to use conky 1.4.2-1 from repository? In conky guide on EdgyCust pages author said "Note that at the time of writing this how-to, the conky in the ubuntu universe repository is very old and, in ways, broken." Is he refering to this version?

He was referring to another (older) version. The latest version is Conky 1.4.4. The one you have in the repositories is ok to use.

damnhappy
November 30th, 2006, 12:07 AM
I have conky up and running and even managed to customize it a little. A great thing. Thanks for a great tutorial. I was wondering if there was a way to get the conky so it runs from the notification area instead of the bottom panel. You know, the way gaim does.

Thanks again!

OffHand
November 30th, 2006, 03:07 AM
I have conky up and running and even managed to customize it a little. A great thing. Thanks for a great tutorial. I was wondering if there was a way to get the conky so it runs from the notification area instead of the bottom panel. You know, the way gaim does.

Thanks again!

That is not possible. You can make a toggle button though. See this post: http://www.ubuntuforums.org/showpost.php?p=1710345&postcount=241

Btw: Conky shouldn't show in your panel. It should merge with your desktop.

damnhappy
November 30th, 2006, 01:25 PM
Ok, I don't need it in the task tray; just a thought. What I really want is for the button on my bottom panel to go away. Here is a screenshot to make clear my vague descriptions.
Thanks ! :mrgreen:
http://innerphaze.homelinux.com/images/Screenshot.png

OffHand
November 30th, 2006, 02:20 PM
I need to see your conkyrc file. Can you post it?

damnhappy
November 30th, 2006, 04:21 PM
Sure:
# 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@)
#

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

# 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 250 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
$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
hda2: ${fs_free_perc /media/hda2}% ${fs_bar 6 /media/hda2}$color
hda5: ${fs_free_perc /media/hda5}% ${fs_bar 6 /media/hda5}

${color orange}NETWORK (${addr eth1}) ${hr 2}$color
Down: $color${downspeed eth1} k/s ${alignr}Up: ${upspeed 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}

${color red}To Do ${hr 2}$color
${execi 30 tail -n3 /home/dan/to_do | fold -w50}

${color orange}FORTUNE ${hr 2}$color
${execi 120 fortune -s | fold -w50}

${color orange}LOGGING ${hr 2}$color
${execi 30 tail -n3 /var/log/messages | fold -w50}

OffHand
November 30th, 2006, 04:41 PM
It's going wrong somewhere here:

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

You have two types of own_window_type. You gotta pick one.

This is my setup. You could try to backup your conkyrc and then replace the part above with mine. Sometimes it takes a bit of tweaking. Not all machines react the same.


# 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

CoolHand
November 30th, 2006, 06:34 PM
how do you get it to tail /var/log/messages? is it suppose to run as root?

If you are using a different distro or have your permissions set up different you have two options if you want to run it as a user. Add yourself to a group that has read permissions on the messages file or add read permission for everyone. The group option is much safer but it is your choice as you know how your machine is used.

damnhappy
November 30th, 2006, 10:21 PM
Ok, this is my latest attempt.
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_hints skip_taskbar
own_window_type desktop

I tried it with own_window override and own_window_hints undecorated,below,skip_taskbar

Nothing has worked yet. I am open for other suggestions.

Thanks for helpin.

m.musashi
November 30th, 2006, 11:13 PM
Is the panel button (or whaterver they are called) from conky? I suppose that might be a dumb question but having never seen that before I'm wondering it it could be say from the terminal or other app.

What happens if you comment out or remove this line -> own_window_type desktop? Or is that what you already tried?

By the way, that looks like a pretty nice desktop from what I can see. What is the theme?

baalthazar
December 1st, 2006, 01:12 PM
greeting people!
there is something weird when i installed conky...
it shows 88% of root and it doesnt detect my Sata drive...
could some1 help me fix this?

ice60
December 1st, 2006, 05:47 PM
If you are using a different distro or have your permissions set up different you have two options if you want to run it as a user. Add yourself to a group that has read permissions on the messages file or add read permission for everyone. The group option is much safer but it is your choice as you know how your machine is used.
thanks, i screwed up with sudoers :rolleyes: but, then put it back to normal because i wanted some rss feeds instead. (i didn't have enough space)

i still need to fix the temp though :|

i got the rss feeds and weather from here -
http://www.suseforums.net/index.php?showtopic=24669&pid=144272&st=0&#entry144272

i added a netstat command too from the suse link. you can see it in my screenshot where it says irssi :cool:

baalthazar, i suppose i have the same problem, i'd forgotten.

damnhappy
December 1st, 2006, 06:33 PM
m.musashi, the button is from conky. I tried removing the line own_window_type desktop and it didn't help.
My desktop I got from http://www.gnome-look.org/content/show.php?content=43054
(http://www.gnome-look.org/content/show.php?content=43054)
It's called LiNsta (linux is not vista) Conky was the cherry on top.
Here is my desktop. ice60, yours is awesome too. I dig the dragon.

Sorry can't help with thte SATA issue. My hard drive thingy wasn't working because I forgot to change to default drive letters, but it showed as all full. Like the rss too!

OffHand
December 1st, 2006, 06:49 PM
m.musashi, the button is from conky. I tried removing the line own_window_type desktop and it didn't help.
Dont' remove it. Change desktop for normal or override. Did you try to copy that whole part I posted earlier?

damnhappy
December 1st, 2006, 07:32 PM
Hi Offhand,
I put the line back, because I figured it wasn't good to get rid of it. I tried your code. That is what I have now.

damnhappy
December 1st, 2006, 07:39 PM
Hi again, I just closed Cronky, then retarted it from the terminal and the terminal said this:
Conky: /home/dan/.conkyrc: 16: no such configuration: 'own_window_hints'
Conky: /home/dan/.conkyrc: 17: no such configuration: 'own_window_type'
Conky: can't load font 'arial'
Conky: failed to set up double buffer
Conky: drawing to single buffer

Don't know if that helps.

OffHand
December 1st, 2006, 07:49 PM
Hi again, I just closed Cronky, then retarted it from the terminal and the terminal said this:
Conky: /home/dan/.conkyrc: 16: no such configuration: 'own_window_hints'
Conky: /home/dan/.conkyrc: 17: no such configuration: 'own_window_type'
Conky: can't load font 'arial'
Conky: failed to set up double buffer
Conky: drawing to single buffer

Don't know if that helps.

I don't know if you know how to use IRC, but if you login on the freenode server and /join #conky I am sure they can help you.

damnhappy
December 1st, 2006, 08:02 PM
Ok, I will check there.

m.musashi
December 1st, 2006, 08:13 PM
Dont' remove it. Change desktop for normal or override. Did you try to copy that whole part I posted earlier?

Sorry, I meant to say that I didn't have that option (desktop) but didn't catch that is should have been "override" (at least that is what I have) and not removed.

EDIT: Actually, this is what I was referring to:
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_type desktop
own_window_type appears twice. Comment out or remove one of them. I don't think the option should be there twice.

ice60
December 1st, 2006, 08:47 PM
hi, i fixed everything now, apart from the columns aren't straight ](*,) does anyone know how to fix it? these - PID CPU% MEM%

ice60
December 1st, 2006, 08:50 PM
greeting people!
there is something weird when i installed conky...
it shows 88% of root and it doesnt detect my Sata drive...
could some1 help me fix this?

i used these instead for the SATA drives, nothing else worked - sda sda2 sdb etc lol -
Root: ${fs_free_perc /}% ${fs_bar 6 /}$color
Home: ${fs_free_perc /home}% ${fs_bar 6 /home}$color

ice60
December 1st, 2006, 08:53 PM
Hi again, I just closed Cronky, then retarted it from the terminal and the terminal said this:

Conky: can't load font 'arial'

Don't know if that helps.
i fixed the arial problem by deleting the whole arial font line and adding these instead -
# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont "dejavu sans mono":size=9

# Text alpha when using Xft
xftalpha 1.0
you can pick whichever font you like, even arial.
MAKE A BACKUP FIRST :|

m.musashi
December 2nd, 2006, 01:52 AM
hi, i fixed everything now, apart from the columns aren't straight ](*,) does anyone know how to fix it? these - PID CPU% MEM%

I'm not sure but I think it's because you are not using a mono-spaced font. Mine says it's using Ariel and I didn't think that was mono-spaced but on screen it looks like it is. From your screen shot, it looks like your font is not mono-spaced.

OffHand
December 2nd, 2006, 05:20 AM
hi, i fixed everything now, apart from the columns aren't straight ](*,) does anyone know how to fix it? these - PID CPU% MEM%

Start reading here: http://www.ubuntuforums.org/showthread.php?t=205865&page=25

baalthazar
December 2nd, 2006, 08:27 AM
hello ppl!
i was playing with my conky setup and blew it, dont know where i messed it but im pretty sure its a comment i put in and now it looks like a big black box. i also wanted to get the temp of the cpy, but its not showing... could some1 help me fix it.

btw, i wanted to add the graph with the gradient effect and now i have 4 graphs, i tried to comment them but they dont dissapear.

and also, when ppl are happy with their setup of conky shoul put the source too..

heres my source too see if some1 could help me with the lil probs i have...


# 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 black

own_window_colour black
own_window_trans

parent 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: AMD64 Turion 3200 @ ${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
Frispace!: ${fs_free_perc /media/hda1}% ${fs_bar 6 /media/sda1}$color
$color$stippled_hr
Internet/Networking Status (${addr eth0}) Total: ${totaldown eth0} Down ${totalup eth0} Up
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

#Down: #${downspeed eth0} k/s ${offset 110}Up: #${upspeed eth0} 1k/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
${execi 300 fortune -s | fold -w67}
${execi 60 wmctrl -a conky}

tturrisi
December 2nd, 2006, 09:25 AM
re if Conky showing up on the taskbar, use these hints:

# If own_window is yes, these window manager hints may be used
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

re weather:

pymetar still works w/ conky, thus no need for weather.com, get the weather data directly.
apt-get install python-pymetar
add to conkyrc
${execi 60 /usr/bin/pymetar KIAD} #where KIAD = the station you want to grab weather data
get your station here:
http://www.nws.noaa.gov/tg/siteloc.shtml

tweak the pymetar output by editing the file called pymetar in /usr/bin as root

ice60
December 2nd, 2006, 12:04 PM
I'm not sure but I think it's because you are not using a mono-spaced font.yeap, it was the fonts lol, thanks.

Start reading here: http://www.ubuntuforums.org/showthread.php?t=205865&page=25
thanks, but it turned out to be the xftfonts :rolleyes: i shouldn't have changed it in the first place lol.

i decided to go with the font error as i like the look of it best :biggrin:

Omnios
December 2nd, 2006, 01:44 PM
Hi hi, this rates :KS:KS:KS:KS:KS. Conky is very light weight and works well. Thank you for the config file as it makes setting it up easier than before though I had to change the text color and the orange to red.

ice60
December 2nd, 2006, 07:07 PM
this might stop the text from moving about if you use the xftfonts
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer yes
i've spent too much time monkeying about with conky the last day or so to try it atm, i'll try it tomorrow :|

here's my latest effort looooooool does anyone know how to make the text disappear off the screen rather than conky? ](*,)

Junk_head
December 2nd, 2006, 09:06 PM
Would Conky be able to make a setup like this http://img120.imageshack.us/img120/6856/extv8.th.png (http://img120.imageshack.us/my.php?image=extv8.png)
Samurize is the only thing i miss in windows and I just dig a formal text status display

tturrisi
December 2nd, 2006, 11:49 PM
Would Conky be able to make a setup like this http://img120.imageshack.us/img120/6856/extv8.th.png (http://img120.imageshack.us/my.php?image=extv8.png)
Samurize is the only thing i miss in windows and I just dig a formal text status display
yes

damnhappy
December 3rd, 2006, 12:36 AM
Hi everyone,
I got no response from the folks at IRC, they must have been away from the computer and I was too tired to wait up. But happilly, this morning Ubuntu's automatic update had an update for conky and it seemed to solve my problem. The button on the bottom panel is gone! yes! Thanks for all your help. Now I have to get an RSS feed in there.
:D
Thanks!

halitech
December 3rd, 2006, 02:40 PM
thank you for this, started playing with conky about 2 hours ago and now have it setup the way I want it.

RichJacot
December 3rd, 2006, 03:09 PM
Hello,

When I add the weather, via the folling in my .conkyrc file.

${execi 60 /usr/bin/pymetar KDFW}

Conky goes very wide. Is there a way to get the weather to wrap so its not so wide?

Thanks

ice60
December 3rd, 2006, 03:11 PM
here's mine now :| i still need to find out how to stop conky disappearing when there's too much text in a RSS feed :-k

you see where it mentions beep-media-player? that's read from this line
${execi 12 netstat -e -p -t | grep ESTABLISHED | cut -c45-68,80-86,102-140}
what does the cut bit do? and can someone help me apply it to my RSS feeds if it stops the writting going off the screen (like in my last screenshot a few posts ago) i'd like the whole of beep-media-player there too instead of that bit missing :D

tturrisi
December 4th, 2006, 10:34 AM
Hello,

When I add the weather, via the folling in my .conkyrc file.

${execi 60 /usr/bin/pymetar KDFW}

Conky goes very wide. Is there a way to get the weather to wrap so its not so wide?

Thanks
You have to edit your /usr/bin/pymetar file and add or remove sections that are unwanted. See the files in /usr/share/doc/python-pymetar
Here's mine:
#!/usr/bin/python -tt
# -*- coding: iso-8859-15 -*-

__version__="1.0"

import pymetar
import sys

#print "pymet v%s using pymetar lib v%s"%(__version__,pymetar.__version__)

if len(sys.argv)<2 or sys.argv[1]=="--help":
sys.stderr.write("Usage: %s <station id>\n"% sys.argv[0])
sys.stderr.write("Station IDs can be found at: http://www.nws.noaa.gov/tg/siteloc.shtml\n")
sys.exit(1)
elif (sys.argv[1] == "--version"):
print "pmw v%s using pymetar lib v%s"%(__version__,pymetar.__version__)
sys.exit(0)
else:
station=sys.argv[1]

try:
rf=pymetar.ReportFetcher(station)
rep=rf.FetchReport()
except Exception, e:
sys.stderr.write("Something went wrong when fetching the report.\n")
sys.stderr.write("These usually are transient problems if the station ")
sys.stderr.write("ID is valid. \nThe error encountered was:\n")
sys.stderr.write(str(e)+"\n")
sys.exit(1)

rp=pymetar.ReportParser()
pr=rp.ParseReport(rep)

#print "Weather report for %s (%s) as of %s" %\
# (pr.getStationName(), station, pr.getISOTime())
#print "Values of \"None\" indicate that the value is missing from the report."
print "Temperature: %s C / %s F" %\
(pr.getTemperatureCelsius(), pr.getTemperatureFahrenheit())
print "Rel. Humidity: %s%%" % (pr.getHumidity())
if pr.getWindSpeed() is not None:
print "Wind speed: %0.2f m/s" % (pr.getWindSpeed())
else:
print "Wind speed: None"

print "Wind direction: %s deg (%s)" %\
(pr.getWindDirection(), pr.getWindCompass())
#if pr.getPressure() is not None:
# print "Pressure: %s hPa" % (int(pr.getPressure()))
#else:
# print "Pressure: None"

#print "Dew Point: %s C / %s F" %\
# (pr.getDewPointCelsius(), pr.getDewPointFahrenheit())
print "Weather:",pr.getWeather()
print "Sky Conditions:",pr.getSkyConditions()

RichJacot
December 4th, 2006, 11:11 AM
Worked Great! Thank you!

CoolHand
December 4th, 2006, 04:32 PM
here's mine now :| i still need to find out how to stop conky disappearing when there's too much text in a RSS feed :-k

you see where it mentions beep-media-player? that's read from this line
${execi 12 netstat -e -p -t | grep ESTABLISHED | cut -c45-68,80-86,102-140}
what does the cut bit do? and can someone help me apply it to my RSS feeds if it stops the writting going off the screen (like in my last screenshot a few posts ago) i'd like the whole of beep-media-player there too instead of that bit missing :D

From the man page:
CUT(1) User Commands CUT(1)

NAME
cut - remove sections from each line of files

SYNOPSIS
cut [OPTION]... [FILE]...

DESCRIPTION
Print selected parts of lines from each FILE to standard output.
Just do a "man cut" to get the full list of options and how it works. It is a standard unix command. In my config I use it to remove the leading charachters from my log files such as system name etc. That way I see more important info without all the repeating stuff.

CoolHand
December 4th, 2006, 04:43 PM
hi, i fixed everything now, apart from the columns aren't straight ](*,) does anyone know how to fix it? these - PID CPU% MEM%

I don't know of any way to auto adjust the spacing. The problem is the changing values for each text field. What I found that sort of works is to center justify, ${alignc}, the bar graphs. That way they all start even at least.

tturrisi
December 4th, 2006, 07:00 PM
I don't know of any way to auto adjust the spacing. The problem is the changing values for each text field. What I found that sort of works is to center justify, ${alignc}, the bar graphs. That way they all start even at least.

Tabs instead of spaces should keep the columns separated.

CoolHand
December 7th, 2006, 12:52 AM
Tabs instead of spaces should keep the columns separated.

I thought I tried that but that may have been on an older version. I'll have to give it another shot. Thanks for the tip.

marx2k
December 12th, 2006, 01:26 PM
I have installed all dependencies and am still getting;

checking for XDamageQueryExtension in -lXdamage... no
configure: error: Could not find XDamageQueryExtension in -lXdamage


Any suggestions on this? Trying to install 1.4.4 on Edgy

kret
December 12th, 2006, 07:24 PM
Hello :)

I think I'm having the same problem as m.musashi..I'm using Kubuntu (so KDE) 6.06 and conky 1.4.4..and I'm having problems of course..my desktop either gets all black without icons, either I get black conky window (with own_window yes) or finally I get nice and transparent desktop and conky, but if there is any icon on the desktop it dissapears..and I get this kind of behaviour

http://img134.imageshack.us/img134/1629/conkygr7.th.png (http://img134.imageshack.us/my.php?image=conkygr7.png)

yes, I have enables dbe in my xorg.conf and yes, I have rebooted the computer ;) my .conkyrc file was taken from the first post of this thread and tweaked to suit my taste and needs..though various changes and commenting/uncommenting of own_window and all options mentioned many times above does not give any result..

my thoughts..when I got black conky window and normal desktop (after commenting own_window_transparency yes) the flicker of icons dissapeared..so my conclusion? its something with the fake transparency of the window..

so..how will you help me? :]

oh..yes..and this is my .conkyrc :)
# 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

# Subtract file system buffers from used memory?
no_buffers yes

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

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

# fiddle with window
use_spacer no

# Use Xft?
use_xft yes
xftfont Clean

# Update interval in seconds
update_interval 3

# Minimum size of text area
# minimum_size 250 5
maximum_width 240

# Draw shades?
draw_shades no

# Text stuff
draw_outline no
draw_borders no
uppercase yes

# Stippled borders?
stippled_borders 10

# border margins
border_margin 4

# border width
border_width 1

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

# 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 5
gap_y 30

# stuff after 'TEXT' will be formatted on screen

TEXT
${color white}kret kubuntu $sysname $kernel on $machine$color
...........................................
date: ${color white}${time %e %B %G} ${alignr}${time %H:%M}$color
uptime: ${color white}${uptime}$color
...........................................
cpu usage: ${color white}$cpu% $cpubar
${cpugraph 25,240 000000 ffffff} $color
...........................................
RAM USAGE: ${color white}$mem/$memmax - ${alignr}$memperc% ${membar 6,40}$color
Swap usage: ${color white}$swap/$swapmax - ${alignr}$swapperc% ${swapbar 6,40}$color
...........................................
processes:
NAME ${alignr}PID CPU% MEM%
${color white}${top name 1} ${alignr}${top pid 1}${top cpu 1} ${top mem 1}$color
${color white}${top name 2} ${alignr}${top pid 2}${top cpu 2} ${top mem 2}$color
${color white}${top name 3} ${alignr}${top pid 3}${top cpu 3} ${top mem 3}$color
total: ${color white}$processes$color${alignr}running: ${color white}$running_processes$color
...........................................
NETWORK (${addr eth0})
Down: ${color white}${downspeed eth0} k/s$color ${alignr}Up: ${color white}${upspeed eth0} k/s$color
${color white}${downspeedgraph eth0 25,115 000000 ff0000} ${upspeedgraph eth0 25,115 000000 00ff00}$color
Total: ${color white}${totaldown eth0}$color ${alignr}Total: ${color white}${totalup eth0}$color
Inbound: ${color white}${tcp_portmon 1 32767 count}$color Outbound: ${color white}${tcp_portmon 32768 61000 count}$color${alignr}Total: ${color white}${tcp_portmon 1 65535 count}$color

OffHand
December 12th, 2006, 07:46 PM
# Create own window instead of using desktop (required in nautilus)
own_window_type override
own_window_transparent yes
own_window_hints sticky,skip_pager

Try: own_window_hints undecorated,below,skip_taskbar

kret
December 12th, 2006, 08:34 PM
nope..same :) tried it before already :) but thanks for the effort..

CoolHand
December 13th, 2006, 01:26 AM
nope..same :) tried it before already :) but thanks for the effort..
I don't use KDE but I used to. This may be a long shot but in the KDE control center have you enabled the feature to allow applications to draw to the root window? I don't know that it would fix it but it's worth a try.

kret
December 13th, 2006, 05:23 PM
I dunno if it's the thing you talk about but the only thing I've found involving window transparency was under System Settings -> Desktop -> Windows -> Transparency Tab

and it didn't help.. ;)

m.musashi
December 15th, 2006, 02:05 PM
I found this http://briancarper.net/2006/08/25/transparent-conky-in-kde-part-2/

Maybe it will help the conky - kde problem. I'm at work and can't try right now. The trick seems to be to use feh (http://linuxbrit.co.uk/feh/) or similar to set the root wallpaper to be something other than black.

Anyone know why kde has two desktops (if that's a correct way to put it)?

CoolHand
December 15th, 2006, 05:40 PM
Anyone know why kde has two desktops (if that's a correct way to put it)?

Yes, most of the desktops now do that. They build a "desktop window" on top of the root window. I believe the purpose is that it allows them much more control to draw icons and control window placement and such. While all of that is possible in the real root window I don't know the logistics of doing it. Take that for what it's worth though as I am no expert on desktop design or anything.

m.musashi
December 15th, 2006, 11:22 PM
Thanks for the info. I'm no expert either (I'm barely a noob). But there seems to be a fundamental difference between gnome and kde here as gnome doesn't have the problems that kde does - with respect to conky and transparency at least.

EDIT: Well, I don't exactly know how or why, but I managed to get conky to work in kde. I right clicked the desktop and chose configure desktop and then under behavior unchecked and checked show desktop icons and allow programs in desktop window and then restarted conky and it works. I can see my desktop icons and conky is transparent.

brohan
December 16th, 2006, 11:30 PM
Might as well post my setup, conky has been my toy for playing around with tiny little ruby scripts to get cool stuff like changing the color of my gmail or bloglines thing when there's new messages.

This thread has been a start, but I hope that my .conkyrc will show some people some aid.

(Should of seriously tar'd this)

Was a good place to learn to use sed and grep :)
(I use a slightly modified version of pymetar, I just edited the file to not put anything in Fahrenheit.

.conkyrc
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
use_spacer yes
use_xft no
update_interval 1.0
draw_shades no
draw_borders no
draw_graph_borders no
draw_outline no
uppercase no
stippled_borders 3
border_margin 9
border_width 10
default_color 676f9d
default_shade_color grey
alignment top_left
#gap_y 25
use_spacer no
TEXT
$nodename ${time %Y-%m-%e %r}
$color$stippled_hr
${color #C2C3F3}Load: $color${loadavg}
${color #C2C3F3}CPU: $color${freq}MHz ${color #C2C3F3}Temp: $color${acpitemp}
${color #C2C3F3}Battery: $color${battery}
$cpubar
${cpugraph ffffff 676f9d}
$color$stippled_hr
Processes:$color $processes Running: $running_processes

Name PID CPU% MEM%
${color #C2C3F3}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
$color${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
${color #C2C3F3}${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
$color${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}

${color #C2C3F3}RAM: $color$memperc% ${membar 6}
${color #C2C3F3}Swap: $color$swapperc% ${swapbar 6}

${color #C2C3F3}RAM: $color$mem ${color #C2C3F3}Swap: $color$swap
$color$stippled_hr
${color #C2C3F3}hda1: $color${fs_free_perc /media/hda1}% ${fs_bar 6 /media/hda1}$color
$color$stippled_hr
eth1
${color #C2C3F3}ip: $color${addr eth1}
${color #C2C3F3}essid: $color${exec iwconfig eth1 | sed 's/ /\n/g' | grep ESSID | sed 's/ESSID:"//'| sed 's/"//'}
${color #C2C3F3}link status: $color${exec iwconfig eth1 | sed 's/ /\n/g' | grep Quality | sed 's/Link Quality://' | sed 's/Link Quality=//' | sed 's/ //g' } ${color #C2C3F3}s: $color${exec iwconfig eth1 | sed 's/ /\n/g' | grep Signal | sed 's/Signal level=//' | sed 's/Signal level://' }
$color$stippled_hr
${texeci 500 pymetar CYUL > /tmp/.weather}${color #C2C3F3}Temperature:$color${exec grep Temp /tmp/.weather | sed 's/Temperature://'| sed 's/.0 C/ C/'} ${color #C2C3F3}Wind:$color${exec grep speed /tmp/.weather | sed 's/Wind speed://' }
${color #C2C3F3}Weather: $color${exec grep Weather /tmp/.weather | sed s/'Weather: //' | sed 1d | ~/dev/wordwrap -w 30 | tr [:upper:] [:lower:]}
$color$stippled_hr
${texeci 60 python ~/.gmail.py | /home/brohan/dev/conkyhelper.rb}${color #C2C3F3}Mail Messages: $color${if_existing /tmp/.gmailnew}${color #FF2222}$endif${exec cat /tmp/.gmailcount}
${texeci 60 ~/dev/conkyblog}${color #C2C3F3}Bloglines: $color${if_existing /tmp/.blognew}${color #FF2222}$endif${exec cat /tmp/.blogcount}
$color$stippled_hr
${texeci 5 cat ~/todo | ~/dev/wordwrap -w 40}
$color$stippled_hr
${texeci 120 curl http://brohan.ca/random.php|sed 's/<br>/\n/g'|sed 's/&lt;/</g'|sed 's/&gt;/>/g'|~/dev/wordwrap -w 40 > /tmp/.quote;cat /tmp/.quote}


~/dev/wordwrap
:
################################################## ########################
# Shellscript: wordwrap - wrap lines on word boundaries
# Author : Heiner Steven <heiner.steven@odn.de>
# Date : 2001-12-10
# Requires :
# Category : Text Utilities
# SCCS-Id. : @(#) wordwrap 1.4 04/09/24
################################################## ########################
# Description
# A very simple text formatting program. The input is read
# word by word. All words are joined using a space (ASCII
# 32) character. If "-j" was specified, each line is
# filled up to the maximum line length, or the next empty
# line before it is printed. Each continued line can be
# offset by a number of blanks.
#
# Note
# o Leading whitespace is ignored
# o An AWK program actually formats the input. It is written in
# a way to be portable to a wide range of AWK dialects.
# o thanks for Samus-Aran for suggesting the "-l" option
#
# Caveats
# o Should have an option for keeping whitespace inbetween words
################################################## ########################

PN=`basename "$0"` # Program name
VER='1.4'

# Uncomment the following line to disable the search for the fastest AWK
#: ${AWK:=awk}

DEFWIDTH=72 # Default line length
DEFOFFSET=0 # Default continued line offset
DEFMARGIN=0 # Default left margin

Usage () {
echo >&2 "$PN - wrap lines on word boundaries, $VER
usage: $PN [-j] [-w width] [-o offset] [-l margin] [file ...]
-j join multiple lines up to the maximum line length
-l left margin (default $DEFMARGIN)
-o offset of continued lines (default $DEFOFFSET)
-w max. line width (default is $DEFWIDTH characters)"
exit 1
}

Msg () {
for MsgLine
do echo "$PN: $MsgLine" >&2
done
}

Fatal () { Msg "$@"; exit 1; }

################################################## ########################
# searchprog - search program using search PATH
# usage: searchprog program
################################################## ########################

searchprog () {
_search=$1; shift

for _dir in `echo "$PATH" | sed "s/^:/.:/;s/:\$/:./;s/::/:.:/g;s/:/ /g"`
do
[ -x "$_dir/$_search" ] || continue
echo "$_dir/$_search"
return 0
done

return 1
}

# isint - is argument a valid integer number?
isint () {
case "$1" in
*[!0-9]*) return 1;;
*) return 0;;
esac
}

set -- `getopt :hjl:o:w: "$@"` || Usage
[ $# -lt 1 ] && Usage # "getopt" detected an error

# Search for an AWK implementation, prefer the fastest one
: ${AWK:=`searchprog mawk || searchprog gawk || searchprog nawk || echo awk`}

LineWidth=
JoinLines=false
LeftMargin=
while [ $# -gt 0 ]
do
case "$1" in
-j) JoinLines=true;;
-l) isint "$2" || Fatal "invalid margin: $2"
LeftMargin=$2; shift;;
-o) isint "$2" || Fatal "invalid offset: $2"
LineOffset=$2; shift;;
-w) isint "$2" || Fatal "invalid line width: $2"
LineWidth=$2; shift;;
--) shift; break;;
-h) Usage;;
-*) Usage;;
*) break;; # First file name
esac
shift
done

: ${LineWidth:=$DEFWIDTH}
: ${LineOffset:=$DEFOFFSET}
: ${LeftMargin:=$DEFMARGIN}

$AWK '
BEGIN {
WORDSEP = " "
WORDSEPLEN = length (WORDSEP)
maxwidth = '"$LineWidth"'
if ( "'"$JoinLines"'" == "true" ) joinlines = 1; else joinlines = 0;
line = ""
offset = '"$LineOffset"'
margin = '"$LeftMargin"'
if ( offset >= 1 ) indent = sprintf ("%*s", offset, " ")
if ( margin >= 1 ) leftmargin = sprintf ("%*s", margin, "")
}
{
# Special handling: preserve leading whitespace characters
if ( line == "" ) {
for ( i=1; i<length($0); ++i ) {
c = substr ($0, i, 1)
if ( c != " " && c != " " ) break
}
if ( i > 1 ) line = substr ($0, 1, i-1)
}

for ( i=1; i<=NF; ++i ) {
newlen = length (line) + length ($i)
if ( line != "" ) newlen += WORDSEPLEN
if ( newlen > maxwidth ) {
print leftmargin line
line = indent $i
} else {
if ( line != "" ) line = line WORDSEP
line = line $i
}
}

# No joining of lines: print the current line immediately

if ( !joinlines || NF == 0 ) {
print leftmargin line
if ( line != "" && NF == 0 ) print "" # preserve empty line
line = ""
}
}
END {
if ( line != "" ) {
print leftmargin line
}
}
' "$@"



gmail.py
import feedparser
from sys import stdout
d=feedparser.parse("https://username:password@gmail.google.com/gmail/feed/atom")
stdout.write(str(len(d['entries'])))


~/dev/conkyhelper.rb
#!/usr/bin/ruby
require 'fileutils'
num = STDIN.read.to_i
if num > 0
outfile = File.new("/tmp/.gmailnew", "w")
outfile.puts(num)
outfile.close
else
FileUtils.rm_f('/tmp/.gmailnew')
end
countfile = File.new("/tmp/.gmailcount", "w")
countfile.puts(num)
countfile.close



~/dev/conkyblog
#!/bin/bash
curl 'http://rpc.bloglines.com/update?user=EMAIL_ADDRESS&ver=1' | sed 's/|//g' | ~/dev/conkybloglines.rb


~/dev/conkybloglines.rb
#!/usr/bin/ruby
require 'fileutils'
num = STDIN.read.to_i
if num > 0
outfile = File.new("/tmp/.blognew", "w")
outfile.puts(num)
outfile.close
else
FileUtils.rm_f('/tmp/.blognew')
end
countfile = File.new("/tmp/.blogcount", "w")
countfile.puts(num)
countfile.close

CoolHand
December 17th, 2006, 02:41 AM
Thanks for the info. I'm no expert either (I'm barely a noob). But there seems to be a fundamental difference between gnome and kde here as gnome doesn't have the problems that kde does - with respect to conky and transparency at least.

EDIT: Well, I don't exactly know how or why, but I managed to get conky to work in kde. I right clicked the desktop and chose configure desktop and then under behavior unchecked and checked show desktop icons and allow programs in desktop window and then restarted conky and it works. I can see my desktop icons and conky is transparent.

The important part there is that you checked "allow programs in desktop window". I have heard that is key to getting it to work as KDE is more restrictive about drawing to that window.

frenchbuntu
December 17th, 2006, 01:05 PM
Hi

Do you think I could get an eBay module for conky?

Thanks

bugz0r
December 17th, 2006, 01:32 PM
How can I get conky to look like this, except for Miejsce(whatever that is). Font and all please.

m.musashi
December 17th, 2006, 02:27 PM
The important part there is that you checked "allow programs in desktop window". I have heard that is key to getting it to work as KDE is more restrictive about drawing to that window.
It seems the trick is to uncheck apply and recheck apply and then start conky. This has to be done each time I reboot. Kind of a pain really. The link I gave above had some tips on getting this to work more permanently by setting a root desktop background. However, I suspect that if you change your wallpaper frequently you would have to change it twice each time. Also kind of a pain. If anyone knows a better fix to this I'd appreciate hearing it.

Thanks.

CoolHand
December 18th, 2006, 01:03 AM
Hi

Do you think I could get an eBay module for conky?

Thanks

I don't know about a module but you can script just about anything. It depends on what you want it to do. Do a few searches and see if someone else has already done it and if you are good with scripting you can do it yourself. If not maybe you can talk someone else into helping you build a script.

blonder
December 18th, 2006, 11:16 AM
Every Conky that i set have a ugly black background but i want transparency,how is it possible on ubuntu edgy beryl/aiglx ?

OffHand
December 18th, 2006, 11:33 AM
Every Conky that i set have a ugly black background but i want transparency,how is it possible on ubuntu edgy beryl/aiglx ?

You will have to play with the settings listed below. You might as well start with copying/pasting it into your conkyrc to see if it works on your machine.

# 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

marx2k
December 18th, 2006, 09:37 PM
Im going to have to re-post my problem here...
New Conky is out 1.4.5... trying to compile it (happens with 1.4.4 as well), I run ./configure and get:

checking for XDamageQueryExtension in -lXdamage... no
configure: error: Could not find XDamageQueryExtension in -lXdamage

and it craps out after that.

I *do* have all dependencies installed from the beginning of this thread, so no dice there.

Also, the man page states
For users compiling from source, make sure you have the X development
libraries installed. This should be a package along the lines of
"libx11-dev or xorg-x11-dev".

Which is done...

Anyone have any hints as to how this can be accomplished?

viuks
December 19th, 2006, 04:58 AM
For me conky works fone, BUT I can not put it in startup programs, becouse when Gnome is starting, conky pops up and then just dissapier. So I have to start it manually. Where can be problem?

ChronoStriker1
December 19th, 2006, 06:03 AM
I am having the same problem and cant figure it out ether. It runs fine when started normally just not when set at startup.

n3Cre0
December 19th, 2006, 06:36 AM
Works awesome here.

Tweaked my whole conkyrc :)

Then I saw this (http://ubuntuforums.org/showthread.php?t=281865&page=1).

And now tweaking it even more :)

OffHand
December 19th, 2006, 08:23 AM
For those that are having difficulties with starting conky when booting read this post: http://www.ubuntuforums.org/showpost.php?p=1562209&postcount=173

CoolHand
December 19th, 2006, 06:24 PM
For me conky works fone, BUT I can not put it in startup programs, becouse when Gnome is starting, conky pops up and then just dissapier. So I have to start it manually. Where can be problem?

My first guess is that you do not have it set to fork to the background. In the .conkyrc file you should see this:

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

If that is not the problem then you may need to follow the post with the link to the other thread but since it works when started from a terminal or the run dialog I would be this is it.
Also if you have some other porblem you can always try calling a script instead of the actual program and in the script call conky like this: conky &
That will also start it in the background. Good luck.

viuks
December 20th, 2006, 01:09 PM
My first guess is that you do not have it set to fork to the background. In the .conkyrc file you should see this:

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

If that is not the problem then you may need to follow the post with the link to the other thread but since it works when started from a terminal or the run dialog I would be this is it.
Also if you have some other porblem you can always try calling a script instead of the actual program and in the script call conky like this: conky &
That will also start it in the background. Good luck.
Background yes did not helped, but startupscript made conky run. Thank you!

raul_
December 20th, 2006, 06:09 PM
How can i keep the values in for example NAME PID MEM aligned?

rephrasing: how can i keep the text aligned?

raul_
December 20th, 2006, 07:11 PM
- bump - ?

m.musashi
December 20th, 2006, 07:44 PM
Does anyone know how to upgrade conky? I have version 1.4.2 and version 1.4.5 is out. It doesn't seem to be in the repos though as apt-get install conky just tells me I have the latest version (unless I need to do that differently).

I can follow the instructions at the beginning to install from source if I have to, but do I first need to remove 1.4.2 or will that happen automatically?

Thanks.

m.musashi
December 20th, 2006, 07:47 PM
How can i keep the values in for example NAME PID MEM aligned?

rephrasing: how can i keep the text aligned?

If I understand your question, you need to make sure you are using a monospaced font. If there is a way to do it without a monospaced font I don't know how. If everything is lined up in the .conkyrc after text then it should line up on the screen. Using tabs rather than spaces to line everything up might help if you are not using a monospaced font.

If that doesn't help, post your .conkyrc file and I'm sure someone can help.

raul_
December 20th, 2006, 07:55 PM
i posted my screenshot and file here

http://ubuntuforums.org/showthread.php?p=1912365#post1912365

It seems that if i disable xft fonts they auto-align , but i don't want to disable them =\

m.musashi
December 20th, 2006, 08:09 PM
i posted my screenshot and file here

http://ubuntuforums.org/showthread.php?p=1912365#post1912365

It seems that if i disable xft fonts they auto-align , but i don't want to disable them =\

Since they are not aligned in your .conkyrc I don't think they are going to align on the screen. Try using tabs to align them in the file and see what that does. If that doesn't work then I'm out of ideas.

raul_
December 20th, 2006, 08:35 PM
They're aligned, They just get messed up in the paste. The problem is that the NAME field "pushes" the other fiels to the right...Is there a way to limit the characters in a process name? For example, is the max characters number is 3 then "conky" would appear "con"

tturrisi
December 20th, 2006, 09:38 PM
See "tab" here:
http://conky.sourceforge.net/variables.html
see the examples here:
http://conky.sourceforge.net/screenshots.html

raul_
December 20th, 2006, 10:00 PM
yeah i went to the irc channel and got some support there :) i could use the tabs but i just changed my font to a uglier but monospaces one. thanks anyway..appreciated

guitara
December 21st, 2006, 12:37 AM
nice.. thanks.. for better copy and pasting code, use this

gedit $HOME/.conkyrc

instead of /home/bob.. that way it will automagically use the path var and get the user's home path

brohan
December 21st, 2006, 02:46 PM
yeah i went to the irc channel and got some support there :) i could use the tabs but i just changed my font to a uglier but monospaces one. thanks anyway..appreciated
You could use the $font thing to change the font to monospace temporarily

Or you could do
${top name 1}$alignr${top cpu 1}
like I've done, but that gets rif of the PID/memory usage too.

AlexC_
December 22nd, 2006, 04:55 PM
Hey,

I have setup Conky just now with this guide, but even though I have added "conky &" to the session on startup, it just appears then disappears. Why is this?

raul_
December 22nd, 2006, 11:43 PM
I don't know why it disappears but you don't need the "&"...try removing it and see if it works. Before you do that, press Alt+F2 and then type "conky" and see if it stays...if it does, then just add "conky" (without &) to the startup programs and it should work.

engineering.concepts
December 22nd, 2006, 11:51 PM
Please help!](*,)
I am using Xubuntu and set up Conky - everything works fine, but every once and a while I lose my transparancy in conky and the background turns grey. If I change the .conkyrc file and have a visible window around the conky this will never happen, any ideas on how to fix this?
My .conkyrc file is posted below:

# 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_type override
own_window_transparent yes

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

# fiddle with window
use_spacer no
use_xft no

# Update interval in seconds
update_interval 2.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
font xftfonts
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
$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
hda3: ${fs_free_perc /media/hda3}% ${fs_bar 6 /media/hda3}

${color orange}NETWORK (${addr ath0}) ${hr 2}$color
Down: $color${downspeed ath0} k/s ${alignr}Up: ${upspeed ath0} k/s
${downspeedgraph ath0 25,140 000000 ff0000} ${alignr}${upspeedgraph ath0
25,140 000000 00ff00}$color
Total: ${totaldown ath0} ${alignr}Total: ${totalup ath0}
Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768
61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}

--------------

thanks in advance for your help :)

raul_
December 22nd, 2006, 11:57 PM
try adding this line after "own_window_transparent yes"

own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager


PS: you have "own_window_transparent yes" twice

viuks
December 23rd, 2006, 03:43 AM
I don't know why it disappears but you don't need the "&"...try removing it and see if it works. Before you do that, press Alt+F2 and then type "conky" and see if it stays...if it does, then just add "conky" (without &) to the startup programs and it should work.
I dont know why, byt it was also for me. You have to make startup script. Follow this post http://www.ubuntuforums.org/showpost.php?p=1562209&postcount=173

engineering.concepts
December 23rd, 2006, 09:18 AM
try adding this line after "own_window_transparent yes"

own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager


PS: you have "own_window_transparent yes" twice

I have changed my .conkyrc to add

own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager


and #out the 2nd "own_window_transparent yes"

but it still goes grey after I click my desktop a few times or open a file explorer.:-k

raul_
December 23rd, 2006, 09:24 AM
Since Xubuntu doesn't use Nautilus, try putting the "own_window" value to "no" and see what happens

engineering.concepts
December 23rd, 2006, 11:20 AM
Since Xubuntu doesn't use Nautilus, try putting the "own_window" value to "no" and see what happens

that makes my entire desktop turn grey and I lose my wallpaper. Conky is still in the corner, but everthing else on the desktop is grey.

raul_
December 23rd, 2006, 11:37 AM
I'm out if ideas then. If u have a irc client installed join #conky at irc.freenode.net

I'm sure they can handle that :) they rule in matter of conky

aristotlewilde
December 23rd, 2006, 12:01 PM
My conky keeps disappearing as well. My .conkyrc is below. Can anyone see a reason for it??

background yes
use_xft yes
xftfont HandelGotD:size=9
xftalpha 0.5
update_interval 1.0
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
minimum_size 200 5
maximum_width 200
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_shade_color red
default_outline_color green
alignment top_right
gap_x 12
gap_y 48
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no

TEXT
$sysname $kernel on $machine

${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'} ${freq_dyn}Mhz

Uptime $alignr $uptime
Load $alignr $loadavg

Hostname $alignr $nodename
eth0 $alignr ${addr eth0}
ppp0 $alignr ${addr ppp0}

Inbound $alignr ${downspeed ppp0} kb/s
${downspeedgraph ppp0}
Outbound $alignr ${upspeed ppp0} kb/s
${upspeedgraph ppp0}

$processes processes ($running_processes running)

CPU $alignr ${cpu cpu0}%
${cpubar cpu0}

MEM $alignc $mem / $memmax $alignr $memperc%
$membar

/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_free_perc /}%
${fs_bar /}

/home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_free_perc /home}%
${fs_bar /home}

OffHand
December 23rd, 2006, 12:26 PM
My conky keeps disappearing as well. My .conkyrc is below. Can anyone see a reason for it??

own_window_type normal


Try to replace normal with desktop or override.

engineering.concepts
December 23rd, 2006, 01:15 PM
I'm out if ideas then. If u have a irc client installed join #conky at irc.freenode.net

I'm sure they can handle that :) they rule in matter of conky

I'll give them a try at the irc channel.
Thanks for trying:)

hq4ever
December 24th, 2006, 02:34 PM
Im going to have to re-post my problem here...
New Conky is out 1.4.5... trying to compile it (happens with 1.4.4 as well), I run ./configure and get:

checking for XDamageQueryExtension in -lXdamage... no
configure: error: Could not find XDamageQueryExtension in -lXdamage

and it craps out after that.

I *do* have all dependencies installed from the beginning of this thread, so no dice there.

Also, the man page states
For users compiling from source, make sure you have the X development
libraries installed. This should be a package along the lines of
"libx11-dev or xorg-x11-dev".

Which is done...

Anyone have any hints as to how this can be accomplished?

Any news on the above?
I'm having the exact same problem here with edgy...

I'd be glad if someone could shade some light on this issue, do we need to build a new version of X for this to work?

aristotlewilde
December 24th, 2006, 05:25 PM
Still have the amazing disappearing CONKY.

.conkyrc is below, followed by terminal output.

Anyone have ideas? I am determined to use conky for some odd reason...

--------------------------------------

background yes
use_xft yes
xftfont HandelGotD:size=9
xftalpha 0.5
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 200 5
maximum_width 200
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_shade_color red
default_outline_color green
alignment top_right
gap_x 12
gap_y 48
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no

TEXT
$sysname $kernel on $machine

${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'} ${freq_dyn}Mhz

Uptime $alignr $uptime
Load $alignr $loadavg

Hostname $alignr $nodename
eth0 $alignr ${addr eth0}
ppp0 $alignr ${addr ppp0}

Inbound $alignr ${downspeed ppp0} kb/s
${downspeedgraph ppp0}
Outbound $alignr ${upspeed ppp0} kb/s
${upspeedgraph ppp0}

$processes processes ($running_processes running)

CPU $alignr ${cpu cpu0}%
${cpubar cpu0}

MEM $alignc $mem / $memmax $alignr $memperc%
$membar

/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_free_perc /}%
${fs_bar /}

/home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_free_perc /home}%
${fs_bar /home}



------------------------

scott@blackbox:~$ conky
Conky: forked to background, pid is 5472
scott@blackbox:~$
Conky: desktop window (100005b) is subwindow of root window (45)
Conky: window type - desktop
Conky: hint - undecorated
Conky: hint - below
Conky: hint - sticky
Conky: hint - skip_taskbar
Conky: hint - skip_pager
Conky: drawing to created window (2e00002)
Conky: drawing to double buffer

Atreus12
December 25th, 2006, 12:51 AM
Thanks for the guide, I got conky set up and looking good, but I was wondering how to get CPU temperature to work. I played around with it for a while, and it only says 0 degrees.I have a dell 8400 desktop, and when I type (at the terminal):
acpi -V
I get the following output:
No support for device type: thermal

Whats going on?

NeoLithium
December 25th, 2006, 01:04 AM
Still have the amazing disappearing CONKY.

.conkyrc is below, followed by terminal output.

Anyone have ideas? I am determined to use conky for some odd reason...

--------------------------------------

background yes
use_xft yes
xftfont HandelGotD:size=9
xftalpha 0.5
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 200 5
maximum_width 200
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_shade_color red
default_outline_color green
alignment top_right
gap_x 12
gap_y 48
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no

TEXT
$sysname $kernel on $machine

${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'} ${freq_dyn}Mhz

Uptime $alignr $uptime
Load $alignr $loadavg

Hostname $alignr $nodename
eth0 $alignr ${addr eth0}
ppp0 $alignr ${addr ppp0}

Inbound $alignr ${downspeed ppp0} kb/s
${downspeedgraph ppp0}
Outbound $alignr ${upspeed ppp0} kb/s
${upspeedgraph ppp0}

$processes processes ($running_processes running)

CPU $alignr ${cpu cpu0}%
${cpubar cpu0}

MEM $alignc $mem / $memmax $alignr $memperc%
$membar

/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_free_perc /}%
${fs_bar /}

/home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_free_perc /home}%
${fs_bar /home}



------------------------

scott@blackbox:~$ conky
Conky: forked to background, pid is 5472
scott@blackbox:~$
Conky: desktop window (100005b) is subwindow of root window (45)
Conky: window type - desktop
Conky: hint - undecorated
Conky: hint - below
Conky: hint - sticky
Conky: hint - skip_taskbar
Conky: hint - skip_pager
Conky: drawing to created window (2e00002)
Conky: drawing to double buffer

While I don't use GNOME, have you tried setting the own_window_type to override?

aristotlewilde
December 25th, 2006, 09:01 PM
While I don't use GNOME, have you tried setting the own_window_type to override?

Override did the same thing. I am at a loss...

+++++edit++++

Thought I edited this yesterday. Override actually got it to work, however, conky "conks" out when my wallpaper comes in at startup. If I start conky once my computer is running, it stays indefinitely.

blonder
December 26th, 2006, 05:49 AM
How can i change the output Color from white to red ?

# Conky 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.
#
# The additions to this config require curl and xsltproc be installed

# 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-*-*-*-*-*-*-*

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

# 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

# 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 1.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 yes

# If own_window is yes, you may use type normal, desktop or override
own_window_type override

# 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 black

# If own_window is yes, these window manager hints may be used
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

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

# Max window size
maximum_width 300

# 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

# Draw borders around graphs
draw_graph_borders yes

# Stippled borders?
stippled_borders 0

# 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
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 5
gap_y 5

# 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

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

# 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
$color
${color #246eb5}SYSTEM ${hr 2}$color
${time %e %B %G} ${alignr}${time %H:%M}
${color #246eb5}Core:$color ${execi 1000 cat /proc/cpuinfo | grep 'model name' | cut -c 21-31} 2800+ 1.6GHz
${color #246eb5}Host:$color $nodename
${color #246eb5}Kernel:$color $kernel
${color #246eb5}Uptime:$color $uptime
${color #246eb5}POWER ${hr 2}$color
${color #246eb5}Adapter Stat:$color ${acpiacadapter} ${color #246eb5}${alignr}Battery Info:$color ${battery}
${color #246eb5}CPU ${hr 2}$color
${color #246eb5}Speed:$color ${freq}MHz ${color #246eb5}Load:$color ${loadavg} ${color #246eb5}${alignr}CPU Temp:$color ${acpitemp}
$cpubar
${cpugraph 000000 ffffff}
${color #246eb5}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}
${color #246eb5}MEMORY / DISK ${hr 2}$color
RAM: $memperc% ${membar 6}$color
$mem of $memmax
Swap: $swapperc% ${swapbar 6}$color
$swap of $swapmax
HDA: ${fs_free_perc /}% ${fs_bar 6 /}$color
${color #246eb5}Total:$color ${fs_used /} ${color #246eb5}${alignc}Free:$color ${fs_free /} ${color #246eb5}${alignr}Used:$color ${fs_used /}
${color #246eb5}NETWORK (${addr ppp0}) ${hr 2}$color
${downspeedgraph ppp0 25,140 000000 ff0000} ${alignr}${upspeedgraph ppp0
25,140 000000 00ff00}$color
Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768
61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}
${color #246eb5}Inbound Connection ${alignr} Local Service/Port$color
${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}
${color #246eb5}Outbound Connection ${alignr} Remote Service/Port$color
${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
${color #246eb5}SYSTEM LOGS ${hr 2}$color
${color #246eb5}Messages:$color
${execi 10 /usr/bin/tail -n 4 /var/log/messages | cut -c 27-}
${color #246eb5}Security:$color
${execi 10 /usr/bin/tail -n 5 /var/log/auth.log | cut -c 27-}

NeoLithium
December 26th, 2006, 05:51 AM
How can i change the output Color from white to red ?


Just replace all instances of white with red, as well as any #246eb5 to red as well.

blonder
December 26th, 2006, 05:57 AM
#246eb5 is blue

Is this the place where I can change the output colour ?


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


thats my Problem :

eXisor
December 26th, 2006, 07:05 AM
DamageQueryExtension in -lXdamage

The error message means you do not have libxdamage installed.

See my post in the thread below for the additional libraries you will need.

http://ubuntuforums.org/showpost.php?p=1923799&postcount=6

NeoLithium
December 27th, 2006, 06:04 PM
#246eb5 is blue

Is this the place where I can change the output colour ?




thats my Problem :

Yep, that's where you change the default color output when none of the lines in the TEXT Field have ${color WHATEVER}

harrisony
December 27th, 2006, 07:46 PM
Im going to have to re-post my problem here...
New Conky is out 1.4.5... trying to compile it (happens with 1.4.4 as well), I run ./configure and get:

checking for XDamageQueryExtension in -lXdamage... no
configure: error: Could not find XDamageQueryExtension in -lXdamage

and it craps out after that.

I *do* have all dependencies installed from the beginning of this thread, so no dice there.

Also, the man page states
For users compiling from source, make sure you have the X development
libraries installed. This should be a package along the lines of
"libx11-dev or xorg-x11-dev".

Which is done...

Anyone have any hints as to how this can be accomplished?
if you still need it
sudo aptitude install xorg-dev
worked for me
EDIT:hahahah i didnt read opps

dragnazz5.0
December 28th, 2006, 10:20 PM
well i just installed this and its working but any time i happen to drag a window over top of it or click on it the thing kind of freezes and goes white for a second. am i missing something or is it just the way it is. also, the only way i can run it is if i go to "run program" and type it in. im using xubuntu right now because i cant figure out how in the world to get it to work on regular ubuntu

Gumper
December 30th, 2006, 02:37 AM
I apologize if this has been already mentioned but I couldn't find anything when searching. I installed Conky and I'm happy with the results. I have xmms showing up and my system temps, fan speeds, etc. But the only thing that doesn't seem to work is when I add Conky to the "start up programs" in session it will start when ubuntu starts but it will then disappear from the screen.

Any idea on how to correct this?

Thanks,

Gumper

raul_
December 30th, 2006, 10:43 AM
sudo gedit <filenameyouwant>.sh


then place these lines in there

sleep 10 && conky;


replace 10 with whatever time you want, save it, and add that script to the startup programs..that should do it

Gumper
December 30th, 2006, 11:23 AM
Thanks. I'll give it a try.

raul_
December 30th, 2006, 11:25 AM
Let me know if it worked

Gumper
December 30th, 2006, 11:36 AM
i tried it but it didn't seem to do anything. In your ex. does "10" represent 10 sec. or minutes?

Gumper
December 30th, 2006, 11:38 AM
I'm trying it again. I made a typo.

raul_
December 30th, 2006, 11:39 AM
seconds. But what do you mean with nothing? Conky doesn't start or it starts and it stays behind the background?

Gumper
December 30th, 2006, 11:45 AM
it doesnt start. when i add the script to my sessions i hit add and then pointed it to my script location. Is this correct?

/home/gumper/conkdel.sh

raul_
December 30th, 2006, 11:47 AM
I'm assuming you logged out and in again. Can you do post the results of this command:


ps aux | grep conky

Gumper
December 30th, 2006, 11:53 AM
Yes i did reboot.

5037 0.0 0.0 3900 800 pts/0 R+ 10:52 0:00 grep conky

raul_
December 30th, 2006, 12:05 PM
You don't need to reboot. In the very max you just have to restart X with ctrl+alt+backspace . Reboot is for windows (kidding) So good news! conky isn't starting so it's a problem with the script or with the way you start it. here is my script


raul@raul:~$ cat .conky_start.sh
#!/bin/bash
sleep 20 && conky;


it's pretty much the same, so try adding it again. Step by step, System->Preferences->Sessions->Startup Programs->Add and browse for the script

DAMN!! i forgot...my bad. Make the script executable.


chmod +x ~/conkdel.sh


~ is the user's home folder btw

Gumper
December 30th, 2006, 12:10 PM
i tried to make it exe but i get "changing permissions of `/home/gumper/conkydel.sh': Operation not permitted"

raul_
December 30th, 2006, 12:13 PM
sudo chmod blablabla

Gumper
December 30th, 2006, 12:21 PM
got it! thanks for all the help!

helpdeskdan
January 3rd, 2007, 11:25 PM
My desktop picture covers conky! It comes up, it changes color, desktop image shows up, conky disappears. But, it's still running:

dan@dan-desktop:~$ ps ax | grep conky
27190 ? Ss 0:00 conky
27455 pts/0 S+ 0:00 grep conky

If I kill it and relaunch, I can see it fine. Certainly somebody else is having this problem, but I can't find the answer.

Thanks,
-Dan

raul_
January 3rd, 2007, 11:46 PM
Try using the script solution posted in this thread (some posts behind)

AlexC_
January 4th, 2007, 03:38 AM
yep! Im having the same problem. It's annoying,

edit: didn't see raul_'s comment, I'll try that now. ( sleep && conky )

raul_
January 4th, 2007, 09:24 AM
sleep <timeinseconds> && conky;

helpdeskdan
January 4th, 2007, 01:16 PM
Great, thanks!

diskotek
January 7th, 2007, 09:27 PM
are there any codes that conky can display what i'm listening on "exaile" media player?

oyvindaa
January 8th, 2007, 04:06 PM
Thanks for a great howto.

It works great my end, apart from one little detail.

When I reboot it doesn't re-appear on my desktop. The only way to get it back is to log out and log back in.

Anyone ever experienced this problem?

m.musashi
January 9th, 2007, 12:46 AM
Thanks for a great howto.

It works great my end, apart from one little detail.

When I reboot it doesn't re-appear on my desktop. The only way to get it back is to log out and log back in.

Anyone ever experienced this problem?

How do you have it set to start? If It's added to your session I think it will cause a problem as it loads before the desktop. Perhaps logging in and out is a work around because by the time you log in again the desktop is already loaded. Just a guess though. Somewhere in here is a short bash script that will start conky 60 seconds after your session starts and thus avoid that problem. It's probably a little less elegant but I just start it manually. I have a custom launcher on the top panel for conky so I just click it if I want conky to load. I use beryl a lot so I want to be sure I start beryl first as well.

If you are using the delayed start then I'm afraid I don't know.

raul_
January 9th, 2007, 01:04 AM
How do you have it set to start? If It's added to your session I think it will cause a problem as it loads before the desktop. Perhaps logging in and out is a work around because by the time you log in again the desktop is already loaded. Just a guess though. Somewhere in here is a short bash script that will start conky 60 seconds after your session starts and thus avoid that problem. It's probably a little less elegant but I just start it manually. I have a custom launcher on the top panel for conky so I just click it if I want conky to load. I use beryl a lot so I want to be sure I start beryl first as well.

If you are using the delayed start then I'm afraid I don't know.

I use beryl and the script with a 2s sleep works fine with me ;)

m.musashi
January 9th, 2007, 01:32 AM
I use beryl and the script with a 2s sleep works fine with me ;)

I didn't try such a short sleep but I decided I didn't really want it or beryl to auto load - especially beryl. Sometime I don't really need or want it so I'd rather decided at login what to use. Afterall, with a custom launcher it's only a single click to load.

oyvindaa
January 9th, 2007, 03:11 AM
How do you have it set to start? If It's added to your session I think it will cause a problem as it loads before the desktop. Perhaps logging in and out is a work around because by the time you log in again the desktop is already loaded. Just a guess though. Somewhere in here is a short bash script that will start conky 60 seconds after your session starts and thus avoid that problem. It's probably a little less elegant but I just start it manually. I have a custom launcher on the top panel for conky so I just click it if I want conky to load. I use beryl a lot so I want to be sure I start beryl first as well.

If you are using the delayed start then I'm afraid I don't know.

Yeah, it's added to my sessions. Thanks, I'll try that script :)

EDIT: That script worked a treat. Everything's fine now.


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


It's not just a conky-related problem though, because this was happening when I was using adesklets as well. Oh well, sorted now :)

truthfatal
January 9th, 2007, 07:11 AM
Great HOWTO :)

I had a few problems at first. For some reason my ~/.config was read-only and owned by root. that prevented me from adding startup programs from the sessions menu. I also had the problem where the background was hiding the conky display. but that little "sleep 10" script fixed that right up :)

oyvindaa
January 10th, 2007, 04:47 AM
I found out that the hd part was wrong in my setup.

However, when I change it to /dev/hda1 , which is my hd, it shows up as 99% in conky, and that's wrong. First it was /media/hda1, but I've got nothing there.

The hd is a 60gb one with 38gb free space at the moment. That makes the 99% part very wrong.

Any suggestions?

NeoLithium
January 10th, 2007, 04:51 AM
I found out that the hd part was wrong in my setup.

However, when I change it to /dev/hda1 , which is my hd, it shows up as 99% in conky, and that's wrong. First it was /media/hda1, but I've got nothing there.

The hd is a 60gb one with 38gb free space at the moment. That makes the 99% part very wrong.

Any suggestions?

Try using the mount points instead, for my conky, I have to list them as / and /home in the conkyrc file.

marx2k
January 11th, 2007, 04:23 AM
Attempts at compiling conky 1.4.5 ... This is the same error I get in 1.4.2 through 1.4.5


checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for correct ltmain.sh version... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... cat: /etc/ld.so.conf.d/*.conf: No such file or directory
GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... cat: /etc/ld.so.conf.d/*.conf: No such file or directory
GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.17.2... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking for GLIB... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... /bin/bash: ./config.rpath: No such file or directory
done
checking for iconv... yes
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for X11... yes
checking for XEXT... yes
checking for XDamageQueryExtension in -lXdamage... no
configure: error: Could not find XDamageQueryExtension in -lXdamage
marx2k@Commodore-64:~/source/conky-1.4.5$


Anyone? Anyone?

EDIT: SOLVED: Had to install via Synaptic- X11 damaged region extension library (development headers)

marx2k
January 11th, 2007, 04:36 AM
Looking good now!

marx2k@Commodore-64:~/source/conky-1.4.5$ conky -v
Conky 1.4.5 compiled Thu Jan 11 02:26:28 CST 2007 for Linux 2.6.17-10-generic (i686)

Compiled in features:

X11:
* Xdamage extension
* Xdbe extension (double buffer)
* xft

Music detection:
* mpd

General features:
* hddtemp
* portmon


The only thing is that it installs to /usr/local/bin but that can be changed with ./configure options.

function1
January 13th, 2007, 12:04 AM
Works great except for one minor annoyance:
If I click on conky it seems to create a selection box starting from the left side of the screen and going under conky. It also seems counterintuitive that when dragging a desktop icon over conky, the icon ends up below conky. Perhaps there is no way around this given that conky is its "own_window" or whatever.
I used the exact same .conkyrc provided by the HOWTO.

seelk
January 14th, 2007, 04:18 PM
I get a black background under Kubuntu using conky 1.4.5. Does anyone have any ideas what could be causing this.

conkyrc (http://paste.ubuntu-nl.org/1599/)

oyvindaa
January 14th, 2007, 04:29 PM
Try using the mount points instead, for my conky, I have to list them as / and /home in the conkyrc file.

Alright, that worked a treat. Thanks.

I've got another problem now though (typical isn't it).

I changed my .conkyrc to this:


background yes
use_xft yes
xftfont HandelGotD:size=9
xftalpha 0.5
update_interval 1.0
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
minimum_size 200 5
maximum_width 200
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_shade_color red
default_outline_color green
alignment top_right
gap_x 12
gap_y 12
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no

TEXT
$sysname $kernel on $machine

Uptime $alignr $uptime
Load $alignr $loadavg

Hostname $alignr $nodename
eth1 $alignr ${addr eth1}

Inbound $alignr ${downspeed eth1} kb/s
${downspeedgraph eth1}
Outbound $alignr ${upspeed eth1} kb/s
${upspeedgraph eth1}

$processes processes ($running_processes running)

CPU $alignr ${cpu cpu0}%
${cpubar cpu0}

MEM $alignc $mem / $memmax $alignr $memperc%
$membar

/home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_free_perc /home}%
${fs_bar /home}

swap $alignc $swap / $swapmax $alignr $swapperc%
${swapbar}

${execi 60 wmctrl -a conky}


Whenever I log off or reboot/shutdown I get the following message ("Warning"):


These windows do not support
"save current setup" and will have
to be restarted manually next time
you log in.

TITLE | CLASS
aassveen -conky conky


So, what's the problem here?

EDIT: Problem solved. I had another look at the .conkyrc and noticed it was running inside a window. I removed that and the warning disappeared as well.

lime4x4
January 14th, 2007, 07:43 PM
I'm running he latest version of conky on ubuntu-edgy. The only problem i'm having is i also have the weather in my conky file which works great for the most part except when there is a special weather announcement.Then my conky windows becomes real big how can i add word wrap or something so that it stays the same size all the time? I don't mind if it increases it's size verticaly just not horizontaly. I also included a copy of my file the weather part is at the bottom. and i also added a copy of my weather script as well

# 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 250 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 green

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}
${color green}CPU1 Usage:${color} ${cpu cpu1}% ${cpubar cpu1}
${color purple}CPU2 Usage:${color} ${cpu cpu2}% ${cpubar cpu2}
${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
hdb1: ${fs_free_perc /dev/hdb1}% ${fs_bar 6 /dev/hdb1}$color
${color #0077ff}/home $color${fs_used /home}/${fs_size /home}${alignr}${color #0077ff}${fs_bar 5,120 /home}
$color$stippled_hr
sda1: ${fs_free_perc /media/sda1}% ${fs_bar 6 /media/sda1}$color
sdb1: ${fs_free_perc /media/sdb1}% ${fs_bar 6 /media/sdb1}$color
$color$stippled_hr
Internet/Networking Status (${addr eth0}):
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}
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 -w50}
$color$stippled_hr
${execi 15 wmctrl -R " - conky"}
$color$stippled_hr
${execi 1800 /home/john/scripts/weather.sh 18071}


and here is my weather script

#!/bin/sh

#
# Grab weather data from weather.com and format it according to the given XSLT
# Script written by boojit
# Modified by Hellf[i]re
# The orignal script and xslt can be downloaded from http://pondol.com/weather.tar.gz

# Usage:
# ${execi 1800 /path/to/weather/weather.sh location}
# Usage Example:
# ${execi 1800 /home/harryc/downloads/weather/weather.sh USNY1175}

# your Location ID: use http://xoap.weather.com/search/search?where=[yourcity] to find it
# U.S. users can just use their zip code; doubt that works for anyone else though (YMMV)
LOCID=$1

# s=standard units, m=metric units
UNITS=s

# where this script and the XSLT lives
RUNDIR=/home/john/scripts

# there's probably other stuff besides CURL that will work for this, but i haven't
# tried any others.
# you can get curl at http://curl.haxx.se/
CURLCMD=/usr/bin/curl

# get it at http://xmlsoft.org/XSLT/
XSLTCMD=/usr/bin/xsltproc

# you probably don't need to modify anything below this point....

# CURL url. Use cc=* for current forecast or dayf=10 to get a multi-day forecast
CURLURL="http://xoap.weather.com/weather/local/$LOCID?cc=*&unit=$UNITS&dayf=2"

# The XSLT to use when translating the response from weather.com
# You can modify this xslt to your liking
XSLT=$RUNDIR/weather.xslt

#filter (if you want to convert stuff to lower-case or upper case or something)
#FILTER="|gawk '{print(tolower(\$0));}'"


#####
eval "$CURLCMD \"$CURLURL\" 2>/dev/null| $XSLTCMD $XSLT - $FILTER"

m.musashi
January 14th, 2007, 08:11 PM
I get a black background under Kubuntu using conky 1.4.5. Does anyone have any ideas what could be causing this.

conkyrc (http://paste.ubuntu-nl.org/1599/)

I been fighting this battle for a while. I'm still using 1.4.2 but it seems that conky uses the root desktop for fake transparency. However, in kde the root desktop is not the one you see. Someone posted a link to a solution some pages back. It involved setting a root background that is the same as the desktop. Another work around involved opening the desktop configuration and deselecting the draw icons on desktop or something like that (I'm not using kde at the moment and can't remember exactly) and then applying and the reselecting it and applying. It only works for the one session so it's not a fix. Afaik, there is no fix yet unless 1.4.5 somehow addressed it.

bloodfilledwater
January 25th, 2007, 07:36 PM
When I start conky before beryl, it doesn't use my .conkyrc that's in my home directory. Where it the other config file or how can I get it to use it?

Andifferous
January 28th, 2007, 02:15 AM
lime4x4

the word wrap problem that you have with your weather, I've been having with xmms
say I want to listen to: the glorious liberation of vinnland by the combined forces of the united territories of europa by type o negative. It bumps half of my conky off the leftside of my screen until the song is over. I'm new to conky, but from looking at the code, and the man pages for something like word wrap... I haven't found it.

OffHand
January 28th, 2007, 06:07 AM
lime4x4

the word wrap problem that you have with your weather, I've been having with xmms
say I want to listen to: the glorious liberation of vinnland by the combined forces of the united territories of europa by type o negative. It bumps half of my conky off the leftside of my screen until the song is over. I'm new to conky, but from looking at the code, and the man pages for something like word wrap... I haven't found it.

# Minimum size of text area
minimum_size 260 5
maximum_width 260

phssthpok
January 29th, 2007, 03:38 AM
I was wondering if anyone has had this issue with $tcp_portmon and showing outbound connections. When I navigate away from a webpage in firefox, the connections made for that website seem to be "kept open" and occupy the first positions in the connection list; thus, newer connections are never shown. I've tried flushing cookies but the only thing that works is to actually restart firefox. Then the connections are refreshed but the first website I visit will fill up all the slots again.

Athanasius
February 1st, 2007, 09:22 PM
Two questions.

First, when I click on the "show desktop" icon conky goes away. Is there a way to always make it stay on top?

Second, how do I get the weather in conky? I have seen some examples in people's scripts but they don't work for me. Is there something I am supposed to install first?

raul_
February 2nd, 2007, 12:54 PM
You have to install a program called "pymetar" that is available in the repositories. Then you can tweak the programs file to edit the output

BLTicklemonster
February 2nd, 2007, 01:27 PM
Nice!

Athanasius
February 2nd, 2007, 09:32 PM
Raul,

Could you perhaps show a script that uses pymetar?

raul_
February 2nd, 2007, 10:01 PM
${execi 60 /usr/bin/pymetar LPPT}

replace LPPT with your location's code. i think you can get it from weather.com or something like that

tturrisi
February 2nd, 2007, 10:32 PM
${execi 60 /usr/bin/pymetar LPPT}

replace LPPT with your location's code. i think you can get it from weather.com or something like that
(KIAD = Dulles Intl. Airport)
${execi 60 /usr/bin/pymetar KIAD}

Full list of stations:
http://www.nws.noaa.gov/tg/siteloc.shtml

Athanasius
February 2nd, 2007, 11:37 PM
Ah! Thank you!

foormea
March 3rd, 2007, 04:37 PM
hi

i've got two problems:

1) when using a if_running or if_exist or stuff, if the whatever-i'm-checking exists/runs, then it works fine. however, if it doesn't exist, conky will print a blank line. pretty ugly. any way to prevent it?
${if_mounted /media/usbdisk-1}usb: ${color lightblue}${fs_used_perc /media/usbdisk-1} ${color}% ${color lightblue}${fs_used /media/usbdisk-1}${color}/${fs_size /media/usbdisk-1} ${fs_bar /media/usbdisk-1}${endif}

2) here's the part of my .conkyrc relevant with fonts:
use_xft yes
xftfont Bitstream Vera Sans Mono:size=9

whatever size i put, it'll be the same size on screen
i don't understand how fonts, either regular or xft, work
for example, i know they're in /usr/share/fonts
but if i go in /usr/share/fonts/truetype/ttf-dejavu. there're a few files in that directory, but let's consider only one file, randomly, DejaVuSans-BoldOblique.ttf. should i put spaces, like Deja Vu Sans ....? how do i know the actual name of the font? how do i know if it's an xft font or regular font?

i've also heard i could put fonts in ~/.fonts
would i have to add that path to my xorg.conf ?
i've also noticed that i have to refresh font path after installing new fonts or stuff? how does all that work? i'm somewhat confused! :confused: :confused:

edit: currently reading some howto about fonts :)

BOBSONATOR
March 5th, 2007, 01:16 AM
are there any codes that conky can display what i'm listening on "exaile" media player?

Im looking for this too.

Thanks for the great tut!

Frenzy-br
March 18th, 2007, 12:37 PM
took me a while to get it running below everythign because every time i ran it it would go over every other screen, now i can only see it when i move the beryl cube ... other than that its invisible...

DoorGunner
March 22nd, 2007, 05:54 AM
I am curious has anyone been able to get amarok to work with conky?

aeiah
March 28th, 2007, 03:34 PM
I am curious has anyone been able to get amarok to work with conky?

yea there's a script on the conky homepage for amarok, in the screenshot section

Muppeteer
April 25th, 2007, 06:30 AM
Here's mine...Only started it yesterday, haven't really changed much, just tweaked the default one for now :)

# 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_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 yes
use_xft no

# 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
font padmaa
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 green
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 110

# stuff after 'TEXT' will be formatted on screen

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

${color lightgrey}CPU1 Usage:${color} ${cpu cpu1}% ${cpubar cpu1}
${color lightgrey}CPU2 Usage:${color} ${cpu cpu2}% ${cpubar cpu2}
${freq}MHz Load: ${loadavg} Temp: ${acpitemp}
${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 0e5075}MEMORY${hr 2}$color
RAM: $memperc% ${membar 6}$color
Swap: $swapperc% ${swapbar 6}$color

${color 0e5075}DISK ${hr 2}$color
Root: ${fs_used_perc /}% ${fs_bar 6 /}$color
Windows: ${fs_used_perc /media/HDD1}% ${fs_bar 6 /media/Windows}$color
linux: ${fs_used_perc /media/HDD2}% ${fs_bar 6 /media/linux}
Games: ${fs_used_perc /media/HDD3}% ${fs_bar 6 /media/Games}
Downloads:${fs_used_perc /media/HDD4}% ${fs_bar 6 /media/Downloads}
Maritas: ${fs_used_perc /media/HDD5}% ${fs_bar 6 /media/Maritas}

${color 0e5075}NETWORK (${addr eth1}) ${hr 2}$color
Down: $color${downspeed eth1} k/s ${alignr}Up: ${upspeed 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}

${color 0e5075}LOGGING ${hr 2}$color
${execi 30 tail -n3 /var/log/messages | fold -w50}

${color 0e5075}FORTUNE ${hr 2}$color
${execi 120 fortune -s | fold -w50}

http://img176.imageshack.us/img176/7964/screenshotjb8.th.png (http://img176.imageshack.us/my.php?image=screenshotjb8.png)

satellite360
April 30th, 2007, 01:53 AM
Hi all

I'm running Conky 1.4.5 and all is working well except I can't figure out how to display MB etc in abbreviated form. Currently I am Conky is displaying something like 343MiB/1.98GiB when all I really want to display is 343M/1.98G.

This isn't a setting which can be changed in the conkyrc file as far as I can see.

Grateful if anyone can point me in the right direction.

Thanks

chm0d
April 30th, 2007, 09:20 AM
I must be a complete idiot because I have not yet been able to get amarok to work with conky. I have the script from sourceforge. I have put the script in /home/usr/.conky but still I cannot get anything out of it. Only thing that displays is Now Playing and it refreshes every 10 secs. I will post my conkyrc. Any help would be greatly appreciated.

chm0d

m.musashi
April 30th, 2007, 01:56 PM
I think this might be an issue with how it's compiled - there are a lot of options you can enable. I found this:
Compiling

For users compiling from source, make sure you have the X development libraries installed. This should be a package along the lines of "libx11-dev or xorg-x11-dev".

Gentoo users -- Conky is in Gentoo's Portage... simply use "emerge app-admin/conky" for installation. There is also usually an up-to-date ebuild within Conky's package or in Svn.

Debian,etc. users -- Conky will be in Debian's repositories soon (by mid-September, hopefully), and then Ubuntu shortly thereafter. Until then, "dpkg -i" the .deb package to install.

Example to compile and run Conky with all optional components (note that some configure options may differ for your system):

sh autogen.sh # Only required if building from Svn
./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-xft --enable-own-window --enable-proc-uptime --enable-audacious --enable-bmpx --enable-hddtemp --enable-mpd --enable-xmms2 --enable-imlib2 --enable-portmon --enable-debug --enable-double-buffer --enable-xdamage --enable-x11

It was posted in another conky thread by a user who found it in the gentoo forums.

m.musashi
April 30th, 2007, 01:56 PM
Oops. That was double posted for some reason. Sorry

r0nin
May 14th, 2007, 12:26 PM
In "nvidia-settings" I can see how hot my GPU gets. Is there anyway I could put that into my Conky setup?

justleen
May 21st, 2007, 04:19 AM
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"




I found there was already a line Load "vbe" in my xorg. I had to change this to "dbe" in order for conky to work correctly with double buffering./

Thore
May 30th, 2007, 07:04 PM
In "nvidia-settings" I can see how hot my GPU gets. Is there anyway I could put that into my Conky setup?


${color black}Nvidia: ${color white}${exec /usr/bin/nvidia-settings -q gpus | cut -c 29-43 | tail -n2}
${color black}GPU Core Temp: ${color white}${exec /usr/bin/nvidia-settings -q gpucoretemp |grep Attribute |cut -c 44-45}'C

http://www.thore.org/nvidiatemp.png


My NVIDIA Driver version is 9631
Hope this helps you on your way :)

Thore

r0nin
May 30th, 2007, 07:22 PM
Cheers mate. Works nicely!

RichJacot
May 31st, 2007, 09:42 AM
I must be a complete idiot because I have not yet been able to get amarok to work with conky. I have the script from sourceforge. I have put the script in /home/usr/.conky but still I cannot get anything out of it. Only thing that displays is Now Playing and it refreshes every 10 secs. I will post my conkyrc. Any help would be greatly appreciated.

chm0d



Is your amarok collection in mysql?

I just copied the last lines out of your conkyrc (changed paths), converted my amarok from sqlite to mysql, downloaded the script form conky's screenshot page and it appears to be working fine.

qchi
June 6th, 2007, 08:21 AM
Hi all!

I just wanted to share my conky config files!

I've written a script to show weather information from yahoo in conky, but it is still using too many resources, so i will try to optimize it in the future.

ENJOY!

nightfire117
June 20th, 2007, 11:51 AM
Sorry if this post is a bit off-topic. (Great topic by the way, it's been quite helpful.) Erm, is there a way to center everything in my conky config into the top center of my screen?

Erm, thanks - hopefully this isn't the wrong place to ask.

~Nightfire

OffHand
June 20th, 2007, 01:09 PM
Sorry if this post is a bit off-topic. (Great topic by the way, it's been quite helpful.) Erm, is there a way to center everything in my conky config into the top center of my screen?

Erm, thanks - hopefully this isn't the wrong place to ask.

~Nightfire

Play with these settings (or add them to) in your .conkyrc file
gap_x and gap_y are measured in pixels.

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

nightfire117
June 20th, 2007, 02:59 PM
Play with these settings (or add them to) in your .conkyrc file
gap_x and gap_y are measured in pixels.

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

Thanks, tweaking those settings work well.

~Nightfire

[EDIT]: Erm, what about laptop battery? Thanks.... XD

~Nightfire

OffHand
June 20th, 2007, 04:05 PM
Thanks, tweaking those settings work well.

~Nightfire

[EDIT]: Erm, what about laptop battery? Thanks.... XD

~Nightfire

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

;)

nightfire117
June 20th, 2007, 05:26 PM
http://conky.sourceforge.net/variables.html

;)

Heh, thanks. Not exactly sure how to implement these variables though, since I started using Conky about... erm, a couple days ago. I guess I should put the line $battery somewhere in my Conky under the "TEXT" section, or do I have to define something in the file before "TEXT?" I'll give it a shot for now anyways. Thanks. XD

~Nightfire

raul_
June 20th, 2007, 07:16 PM
battery BAT0/BAT1/whatever fits you

and

battery_time BAT0/BAT1/.......

after "TEXT"

nightfire117
June 20th, 2007, 07:25 PM
Yeah, I checked and I have BAT1 and BAT2 (actually I only have one battery in my laptop, I dunno where the BAT2 came from - Windows, when I had it on this laptop, reported 2 batteries as well, the second one not being present - hmm). So I put ${execi 200 SCRIPT HERE} to report the battery, and it works. (Seems to have quite a large empty space though but I'm fine with that.) Actually, I think I'll try your method too.

Thanks.

~Nightfire

[EDIT]: And it works, even better.

~Nightfire

Megatog615
June 21st, 2007, 03:22 AM
Anyone know how to get Conky to use the CPU temperature output from the "sensors" command? My Athlon64's sensors only work through the module "k8temp" and the sensors command is the only way to get correct temperatures.

Here's an example output of "sensors":
$ sensors
k8temp-pci-00c3
Adapter: PCI adapter
Core0 Temp:
+31°C

How can I get that temperature to display in Conky? Neither i2c or acpitemp work.

Megatog615
June 21st, 2007, 03:10 PM
I got it to work. Here's the command to replace ${acpitemp} with:
${execi 4 sensors | grep ° | cut -c 15-16 ;}C

For those who have the same situation as I.

nightfire117
June 21st, 2007, 06:54 PM
I got it to work. Here's the command to replace ${acpitemp} with:
${execi 4 sensors | grep ° | cut -c 15-16 ;}C

For those who have the same situation as I.

Nice job. I got the {acpitemp} but if I run into problems with another comp I'll keep this in my mind.

Anyways, I've got another question.

I configured my Conky just the way I like it, and it even has weather. Which is the problem. When I put this computer to sleep/hibernate/standby (it's a notebook - Function+F4 puts it into standby), after I wake it up the portion displaying the weather is missing. I have to reload Conky manually in order to get it to reload that weather part. Here's the code for my Conky:

# stuff after 'TEXT' will be formatted on screen
TEXT
@kr-note - ${color}CPU: $cpu% - ${color}${freq_dyn}MHz${color} ${color}${acpitemp}C - ${color}$mem/$memmax ${color}- ${battery BAT1} - ${color}${execi 100 ~/.conky/weather.sh JAXX0055}

So I guess the refresh is just too slow? I don't want Conky to keep refreshing and updating - if it did so frequently, would it pose a threat to overall system performance? What exactly does "100" mean? I turned it down from "500" in hopes that it would refresh more quickly, but I'm not even sure what kind of time this is measured in. Milliseconds is what I thought but I figured if I put it to sleep, 100 milliseconds after I woke it up shouldn't it have refreshed that part of the Conky config? Should I just put something somewhere to refresh either that part or the whole config, and would such a refresh be visible, i.e. disappear and reappear? (Have 512 MB RAM, P4-M 2.0 GHz.) Anyways, thanks in advance.

~Nightfire

raul_
June 21st, 2007, 10:21 PM
I think it's seconds

nightfire117
June 22nd, 2007, 08:27 AM
I think it's seconds

Hmm, alright. Thanks for the info. :-D

~Nightfire

RichJacot
June 27th, 2007, 09:57 AM
Does anyone know if there is a way to have the $cpubar ignore or not show nice processes?

Basically I like the cpu bar but when I have a process that I nice because it takes 100% of the CPU for a day or two, I don't notice or can't quickly see if something else is hogging the CPU that I haven't niced.

JMO707
June 27th, 2007, 03:01 PM
I have a problem: conky seems to "shrink" and "expand" his width all the time.

My conkyrc is:

# 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_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 yes
use_xft yes
xftfont nu:size=10
xftalpha 0.8

# Update interval in seconds
update_interval 1.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 0

# border width
border_width 0

# Default colors and also border colors, #7e7e9790 == #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 0
gap_y 0

# stuff after 'TEXT' will be formatted on screen

TEXT
$color

${color #7e7e97}SYSTEM ${hr 2}$color
Computer Name: $nodename
Kernel: $kernel
Uptime: ${uptime}

${color #7e7e97}CPU ${hr 2}$color
AthlonXP Barton ${freq}MHz
Load: ${loadavg} Temp: ${acpitemp}
Processes: ${processes} Running: ${running_processes}

CPU: ${cpu 0}% ${cpubar 6}
${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 #7e7e97}MEMORY ${hr 2}$color
RAM: $memperc% ${membar 6}$color
${mem} / ${memmax}

${color #7e7e97}DISK ${hr 2}$color
Root: ${fs_used_perc /}% ${fs_bar 6 /}$color
${fs_used /} / ${fs_size /}

Musik: ${fs_used_perc /musik}% ${fs_bar 6 /musik}$color
${fs_used /musik} / ${fs_size /musik}

Datos: ${fs_used_perc /datos}% ${fs_bar 6 /datos}$color
${fs_used /datos} / ${fs_size /datos}

${color #7e7e97}NETWORK (${addr eth0}) ${hr 2}$color
Down: $color${downspeed eth0} k/s ${alignr}Up: ${upspeed eth0} k/s
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 #7e7e97}MPD: ${alignc}$mpd_artist - $mpd_title
${color #7e7e97}$mpd_bar
${color #7e7e97}${alignc}$mpd_status

raul_
June 27th, 2007, 03:03 PM
You have to use monospace fonts

Rudy246
June 28th, 2007, 03:30 PM
Hello. I seem to be having a bit of trouble around step 2.

My problems begin at:
./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


After returning many successful lines, it returns this:


checking for GLIB... configure: error: Package requirements (glib-2.0) were not met:

No package 'glib-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


I've been looking around for solutions, but thus far haven't found anything. Any help is greatly appreciated.

Also, I'm fairly new to Ubuntu, I've only been using it for about two weeks, so forgive the possibly newbish question.
-Rudy

linuks
June 28th, 2007, 03:57 PM
checking for GLIB... configure: error: Package requirements (glib-2.0) were not met:

No package 'glib-2.0' found

Install 'glib-2.0' and run the .configure again. Search for the package first by doing sudo apt-cache search glib and then install it with sudo apt-get install `packagename` (remove `).

GLuck

Rudy246
June 28th, 2007, 04:49 PM
Thanks for the advice, but I'm not sure which package to download.

It gave me a lengthy list of packages after I entered the search command.

I picked "libglib2.0-0" since it seemed to be the most accurate.

When I installed it, it said that it was already installed.

rudy@rudy-laptop:~$ sudo apt-get install libglib2.0-0
Reading package lists... Done
Building dependency tree... Done
libglib2.0-0 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


Any idea what the name of the package is that I need to install?
-Rudy

johnc4510
June 30th, 2007, 01:57 PM
Anyone know the trick to getting conky on all desktops in comp-fusion? I would appreciated it

because right now it only shows on the first desktop. Thanks

johnc4510
June 30th, 2007, 02:11 PM
OK, solved this by changing conky start delay from 10 seconds to 15. Now it runs on all desktops.

Rudy246
July 1st, 2007, 05:46 PM
[edit]
Nevermind, this problem is unrelated to Conky.

OffHand
July 2nd, 2007, 06:58 AM
Hello. I seem to be having a bit of trouble around step 2.

My problems begin at:
./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


After returning many successful lines, it returns this:


checking for GLIB... configure: error: Package requirements (glib-2.0) were not met:

No package 'glib-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


I've been looking around for solutions, but thus far haven't found anything. Any help is greatly appreciated.

Also, I'm fairly new to Ubuntu, I've only been using it for about two weeks, so forgive the possibly newbish question.
-Rudy

I f you want to compile you will need the dev versions... glib-2.0-dev or something like that. You will need the package build-essential as well to compile stuff.

FNDII
July 12th, 2007, 07:11 PM
I dont see conky in the sessions window. This is the first time even clicking on sessions window

Nekiruhs
July 12th, 2007, 07:18 PM
I dont see conky in the sessions window. This is the first time even clicking on sessions window
You have to add it. Go to system > preferences > Sessions, and add it there.

FNDII
July 12th, 2007, 07:20 PM
system > preferences > Sessions

> New > "command line" > ok ?

like that?

FNDII
July 12th, 2007, 10:35 PM
Problem is that I don't see conky in my sessions menu and or don't know where to look for the command line

FNDII
July 13th, 2007, 01:09 AM
I did a file search for conky. found a couple clicked on one and it started up no problem. figure that one is the executable. Next I

system > preferences > Sessions > startup programs

> New > name = conky > command = /usr/X11R6/bin/conky > Ok

But that wont load it on startup, i have to click the file to start it after boot.

stalker145
July 13th, 2007, 12:41 PM
I did a file search for conky. found a couple clicked on one and it started up no problem. figure that one is the executable. Next I

system > preferences > Sessions > startup programs

> New > name = conky > command = /usr/X11R6/bin/conky > Ok

But that wont load it on startup, i have to click the file to start it after boot.

in place of command = /usr/X11R6/bin/conky all i put was conky in the appropriate spot and it worked out for me.

FNDII
July 13th, 2007, 12:57 PM
well I just put conky in the command line. when i restart it looks like cony loads but it soon disappear. I'll have to go and start it up manualy again. Unless its already there and i just cant see it for some reason.

miceagol
July 19th, 2007, 02:22 PM
well I just put conky in the command line. when i restart it looks like cony loads but it soon disappear. I'll have to go and start it up manualy again. Unless its already there and i just cant see it for some reason.

It might help to issue the command

kdeinit

and then restart conky. If conky won't start at every boot, add kdeinit to sessions.

boob11
July 22nd, 2007, 02:30 AM
Thanx man

prkfriryce
July 25th, 2007, 07:37 AM
My conky refresh or update frequency is every 10 or more seconds. For the first 8 seconds it is visible on the desktop, but then disappears before it re-populates around the 10 second mark. I installed lm-sensors, but even if I remove the 'i2c' variables from my config, the problem still persists.

As you can see, my update_interval is 1:


# 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 300

# 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 70
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}$sysname $kernel $machine - $nodename

${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}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}MB:${color lightgrey}${i2c 9191-0290 temp 1}C${alignr}${color #0077ff}CPU:${i2c 9191-0290 temp 2}C



${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} Muzik ${color lightgrey}${fs_used /home/muzik}/${fs_size /home/muzik}${alignr}${color #0077ff}${fs_bar 5,120 /home/muzik}
${color #0077ff} Video ${color lightgrey}${fs_used /home/video}/${fs_size /home/video}${alignr}${color #0077ff}${fs_bar 5,120 /home/video}


${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}Network: ${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 180} $alignr${color #0077ff}${upspeedgraph eth0 27,120 000000 0077ff 25}
${color lightgrey}${totaldown eth0} $alignr${color lightgrey}${totalup eth0}

${color #0077ff}Network: ${color lightgrey}${addr eth1}

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

${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}



Any ideas why it is not updating every second? thanks

wnelson
July 25th, 2007, 07:56 AM
${color #0077ff}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'} ${color lightgrey}${freq_dyn}Mhz
execi is the line causing updates to be slow modify that line.

Walt

prkfriryce
July 25th, 2007, 10:09 AM
${color #0077ff}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'} ${color lightgrey}${freq_dyn}Mhz
execi is the line causing updates to be slow modify that line.

Walt

The script is only executing every 1000 seconds. Should It be closer to the interval of 1 second?

OffHand
July 25th, 2007, 05:54 PM
The script is only executing every 1000 seconds. Should It be closer to the interval of 1 second?

I think it is ms

raul_
July 25th, 2007, 07:06 PM
It's in seconds

prkfriryce
July 25th, 2007, 07:06 PM
I think it is ms


thanks guys, updated to '1000000' ( 1000s ) and it's updating fine now

:)

prkfriryce
July 26th, 2007, 04:27 PM
thanks guys, updated to '1000000' ( 1000s ) and it's updating fine now

:)

well, after about 20 hours, it is back to updating every 10 seconds or so again. the only two processes that are using any CPU are

5180 root 15 0 321m 42m 10m S 0 4.2 10:30.44 Xorg
1 root 15 0 2912 1848 524 S 0 0.2 0:01.71 init

anyone else experiencing this?

limaunion
July 29th, 2007, 02:09 PM
Hi! I've just finished switching from gkrellm to conky and am really impressed!

I'm having two issues, maybe someone can help me:

1) I want to add the calendar output (/usr/bin/cal) aligned to the right margin of conky, but I'm just getting the first line aligned in this way (month/year), the rest is on the left margin. Any idea how to fix this ?

2) How can I divide by two the speed displayed by my CPU Fan sensor in order to have it correcly displayed ?
Thanks for any info!
JC

Cryptic1911
July 29th, 2007, 09:24 PM
Hi, just wondering if anyone here has tried getting core temps from a quad core cpu yet.. I have conky all setup and working great except for the temps that i'm after. My problem is that I can't figure out what to put in conky for it to display the cpu core temps.. I can get other temps to show (mb chips)but those are "i2c temp1, 2 , 3". The ones I'm after are listed from sensors as coretemp-isa0000 , 0001 , 0002 and 0003.

here's sensors full output:


it8718-isa-0290
Adapter: ISA adapter
in0: +1.12 V (min = +0.00 V, max = +4.08 V)
in1: +2.02 V (min = +0.00 V, max = +4.08 V)
in2: +3.38 V (min = +0.00 V, max = +4.08 V)
in3: +2.85 V (min = +0.00 V, max = +4.08 V)
in4: +0.30 V (min = +0.00 V, max = +4.08 V)
in5: +0.00 V (min = +0.00 V, max = +4.08 V) ALARM
in6: +0.83 V (min = +0.00 V, max = +4.08 V)
in7: +3.09 V (min = +0.00 V, max = +4.08 V)
in8: +3.07 V
fan1: 1102 RPM (min = 0 RPM)
fan2: 0 RPM (min = 0 RPM)
fan3: 0 RPM (min = 0 RPM)
temp1: +52°C (low = +127°C, high = +127°C) sensor = thermistor
temp2: +40°C (low = +127°C, high = +127°C) sensor = diode
temp3: -2°C (low = +127°C, high = +127°C) sensor = thermistor
vid: +0.000 V

coretemp-isa-0000
Adapter: ISA adapter
temp1: +62°C (high = +100°C)

coretemp-isa-0001
Adapter: ISA adapter
temp1: +63°C (high = +100°C)

coretemp-isa-0002
Adapter: ISA adapter
temp1: +58°C (high = +100°C)

coretemp-isa-0003
Adapter: ISA adapter
temp1: +57°C (high = +100°C)

logos34
August 5th, 2007, 11:18 AM
nice tutorial. I just used the conky deb straight from the Feisty repos though, and it works fine. I installed wmctrl, added 'dbe' module to xorg.conf, and added the bottom part of your conyrc.conf stuff (after 'TEXT') to my own conky file (plus a few other tweaks of my own). Here is what works for me:
# 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 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 no

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

# Text alpha when using Xft
xftalpha 0.8

# 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 3.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 yes

# If own_window is yes, you may use type normal, desktop or override
own_window_type override

# 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

# If own_window is yes, these window manager hints may be used
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 280 5

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Draw borders around graphs
draw_graph_borders yes

# Stippled borders?
stippled_borders 3

# border margins
border_margin 9

# border width
border_width 10

# Default colors and also border colors
default_color white

own_window_colour grey
own_window_transparent yes

# 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 10
gap_y 10

# 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

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

# Maximum number of special things, e.g. fonts, offsets, aligns, etc.
#max_specials 512

# Maximum size of buffer for user text, i.e. below TEXT line.
#max_user_text 16384

# 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
$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
Home: ${fs_free_perc /home}% ${fs_bar 6 /home}$color
hda1: ${fs_free_perc /media/hda1}% ${fs_bar 6 /media/hda1}$color
hda5: ${fs_free_perc /media/hda5}% ${fs_bar 6 /media/hda5}$color
hda8: ${fs_free_perc /media/hda8}% ${fs_bar 6 /media/hda8}$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}
Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768
61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}

${color orange}LOGGING ${hr 2}$color
${execi 30 tail -n3 /var/log/messages | fold -w50}

${color orange}FORTUNE ${hr 2}$color
${execi 120 fortune -s | fold -w50}

HarshReality
August 7th, 2007, 04:48 PM
Anybody been able to get battery_bar to work? As I understand it uses height, width & number BAT0 being default...

I have status and time remaining working but the bar wont go for anything

fwojciec
August 7th, 2007, 05:39 PM
Here is my conky setup, maybe someone will find it useful.

http://img339.imageshack.us/img339/3714/screenaugust07aa5.th.png (http://img339.imageshack.us/my.php?image=screenaugust07aa5.png)

Conky (very minimal) is in upper right corner. Other apps on the screenshot are pypanel (top left) and tint (bottom left). The WM is Openbox.

# conky configuration

# 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 7x12
#font 6x10
#font 7x13
#font 8x13
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1
#font -artwiz-snap-normal-r-normal-*-10-100-75-75-*-*-*-*
#font -*-terminus-medium-*-*-*-12-*-*-*-*-*-*-*
#font *nu*

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
#xftfont Sans:size=8
xftfont nu


# Text alpha when using Xft
xftalpha 0.8

# Print everything to console?

# out_to_console no

# 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 yes
own_window_transparent yes
own_window_type desktop
#own_window_type override
own_window_hints below,undecorated,skip_taskbar

#own_window_type desktop

#own_window_hints below

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

# Minimum size of text area

#minimum_size 190
minimum_size 400
#maximum_width 500

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_margin 5

# border width

border_width 1

# Default colors and also border colors

#default_color A29F84
default_color ffffff

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


# Gap between borders of screen and text

# same thing as passing -x at command line
gap_x 7
gap_y 5

# 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

# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT

override_utf8_locale yes

# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer no
TEXT
$alignr${color #6FA637}CPU: ${color }$cpu% / ${color }${freq_g} GHz ${color #6FA637}Bat: ${color }${execi 45 /home/filip/Scripts/readbattery.sh} ${color #6FA637}RAM: ${color }$mem/$memmax


I also need a little script to read the battery charge:

#!/bin/sh
acpi -b | awk '{print $3, $4}' | sed -e s/,//2


This is a very useful thread, btw!

HarshReality
August 7th, 2007, 09:04 PM
Why do you need a script? Granted my system is using ACPI but...

Battery Status: ${battery BAT1} $alignr ${battery_time BAT1}

Screenshot is here:
http://harrea.100webspace.net/Shot-3.png

incidentally, the powers that be indicated the battery_bar only works in current SVN for conky.

fwojciec
August 7th, 2007, 09:52 PM
Why do you need a script? Granted my system is using ACPI but...

Battery Status: ${battery BAT1} $alignr ${battery_time BAT1}

Screenshot is here:
http://harrea.100webspace.net/Shot-3.png

incidentally, the powers that be indicated the battery_bar only works in current SVN for conky.

Silly me - no need for the script anymore ;) Thanks.

Edit: I spoke too soon... I knew there was a reason why I had to use this script. The battery variable, I was just reminded, works correctly only with the AC cord plugged in; when the laptop is on battery power $battery returns "full" all the time (which is pretty useless, naturally). It's probably a hardware/bios issue - ACPI on my laptop is pretty sketchy...

pt123
August 11th, 2007, 02:27 AM
Is it possible for Conky to read a text file and output the text file over the desktop with the rest of the CPU load etc.

HarshReality
August 11th, 2007, 09:32 AM
example of usage please?

pt123
August 11th, 2007, 05:34 PM
example of usage please?

I want to try and get a text file with my todo list on my desktop.

HarshReality
August 12th, 2007, 03:28 AM
So, your wanting a list of sorts.. perhaps using the calander might be of more acceptable use?

a5benwillis
August 13th, 2007, 08:22 AM
Hi all!

I just wanted to share my conky config files!

I've written a script to show weather information from yahoo in conky, but it is still using too many resources, so i will try to optimize it in the future.

ENJOY!



Has anyone gotten this weather script to work?

Nessa
August 13th, 2007, 09:16 AM
Can conky show the internet speed?

OffHand
August 13th, 2007, 11:38 AM
Can conky show the internet speed?

Yes, it can.

Nessa
August 14th, 2007, 02:44 AM
Can anyone share the how?