PDA

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


Pages : 1 2 [3] 4

5-HT
August 14th, 2007, 05:48 AM
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.
Here's what I'm using:
$alignc${color red} CPU Temps(C): $color ${execi 6 /usr/bin/sensors | grep Core | paste -s | cut -c15-16,19-20,71-72}You'll need to play around with the parameters (replacing 'Core' for 'temp' would the the first thing, and then the cut parameters. I prefer piping through pasts to get everything on one line, but that's a preference thing.
Please refer to the manual pages for cut, paste, and grep if necessary.
Cheers,

RichJacot
August 14th, 2007, 07:08 AM
I don't know if this is what your looking for or not, but try adding the following to your .conkyrc file for your interface to the internet.

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}

boob11
August 15th, 2007, 12:11 AM
Thanx!

legatek
August 16th, 2007, 10:27 AM
I am having trouble getting the output of a log file to wrap long lines in conky. It appears that the fold command doesn't work when you tail log files, is that correct? How can I get long lines to wrap instead of simply disappearing when they run out of room? Here is the relevant line:

${tail /var/log/messages 3 | fold -w35}

boob11
August 17th, 2007, 12:25 AM
thnx

lixx
August 20th, 2007, 07:33 AM
hey guys, how do i fix my battery status?

the status is currently located at /proc/acpi/battery/C16D
but if i use ${battery_time} it doesn't display the info

yodaky
August 21st, 2007, 03:06 AM
I have been playing with various settings and I have finally gotten one that I like however now it would seem that the "space" taken up by what would be the window is roughly double what it should be. Does anyone know how to "push" the box further to the right?

markonhismobile
August 21st, 2007, 05:44 AM
Just a quick one here, I've dabbled with Conky before but could never get quite the right initial setup. I have now used the one from this guide and it provides all the details I need and I will tweak these so I'd like to say a big thank you for an excellent howto!

Now onto my question! I have installed the latest .deb from sourceforge (0.46.1 i think!) and it runs great, I have added conky to the startup items under Sessions and it does seem to load as Gnome is coming up but once my wallpaper is applied it seems to disappear! I can then launch it from a terminal or the Alt+F2 and it shows up fine!

I'm not using any 3D effects or anything like Compiz/Beryl etc. as this is on an old Tecra laptop! Would creating a script like the one shown for the 3D windows managers to avoid the shadows being drawn help at all by delaying it's launch until the wallpaper is displayed?

Nicram
August 21st, 2007, 09:17 AM
Hi,
Is it possible to have conky visible all the time?
The problem is, when you maximize a window, conky is covered up. How to keep it visible like a panel in Gnome, Kde for example or at least as a docking option in gkrellm?
There's a hack for this using this file: space_dapp.c (http://www.tenr.de/junk/space_dapp.c.html) but it's for flubox.
I have been playing with various settings, but with no result.

Any ideas

This is my conkyrc by the way:

kevdog
August 22nd, 2007, 02:00 PM
Can someone post a snippet from their conkyrc file to show me how to used a fixed font? Although this is a can of worms how do I find a list of fixed fonts to use -- Im looking for a nice one!!

litemotiv
August 23rd, 2007, 07:45 AM
Can someone post a snippet from their conkyrc file to show me how to used a fixed font? Although this is a can of worms how do I find a list of fixed fonts to use -- Im looking for a nice one!!

use_xft yes
xftfont Bitstream Vera Sans Mono:size=8

kevdog
August 26th, 2007, 01:42 PM
This script still doesnt work for me:

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

I did exactly the above, changed permissions to 755, added the script to the Sessions menu.

Now when I reboot I get nothing coming up.
sudo ps -ef | grep conky
doesnt show any process running.

Before with just conky in the sessions menu, I would at least get conky up for a brief second before being replaced by the background.

Any other suggestions?

EinA
August 26th, 2007, 06:40 PM
Has anyone gotten this weather script to work?

Hi,
Can't see your script. Maybe the following script(tweather.sh) will help.
It was originally used in Torsmo but works fine in my Conky. (Thanks to the Puppy Linux forum)
P.S I don't know much about how it works :-)

#!/bin/bash

# This script receives two parameters
# LOCATION : is the LOCATION name in weather.yahoo.com without the .html
# SCALE: can be "C" or "F" the default is "F"

LOCATION="$1"
SCALE="$2"
WEATHER_FILE=/tmp/weather${LOCATION}.txt

if [ ! -e $WEATHER_FILE ] ; then
ELAPSED_TIME=601
else
# Only execute the script every 10 minutes
CURRENT_TIME=`date -u +%s`
PREV_TIME=`date -r $WEATHER_FILE +%s`
ELAPSED_TIME=`expr $CURRENT_TIME - $PREV_TIME`
fi


if [ $ELAPSED_TIME -gt 600 ] ; then
if [ "${SCALE}" == "C" ] ; then
wget http://weather.yahoo.com/forecast/${LOCATION}_c.html?force_units=1 \
-O $WEATHER_FILE
else
SCALE="F"
wget http://weather.yahoo.com/forecast/${LOCATION}.html?force_units=1 \
-O $WEATHER_FILE
fi
fi

awk '/<div id="forecast-temperature">/,/&deg;</' $WEATHER_FILE | \
grep "&deg" | \
sed -e 's/.\+>\([0-9]\+\)&deg.\+/\1/' > /tmp/tmp$$

echo `cat /tmp/tmp$$` " ${SCALE}"

rm /tmp/tmp$$

#These are to extract more
#awk '/More Current/,/Local/' $WEATHER_FILE | tr -d "\n" > tmp.txt
# cat tmp.txt | cut -d">" -f17
# cat tmp.txt | cut -d">" -f20
# cat tmp.txt | cut -d">" -f27
# cat tmp.txt | cut -d">" -f32
################################################## ###### end of script

and this is the line from my .conkyrc

${color}Maidenhead: ${color green}${execi 1800 /root/tweather.sh UKXX0090 C }

to find your towns code go to http://weather.yahoo.com find your town and then look in the url and you will see its code. Swap that for mine. (UKXX0090)

and some other chaps bring in stocks and share prices.

hope this helps
EinA

legatek
August 27th, 2007, 04:13 AM
This script still doesnt work for me:

Before with just conky in the sessions menu, I would at least get conky up for a brief second before being replaced by the background.

Any other suggestions?

I had to specify the entire path in the sessions menu (ie. /home/.../.conky_start.sh) to get the script to work. Now conky sits on top of everything until I kill it and restart it, but at least it shows up!

raul_
August 27th, 2007, 09:49 AM
This script still doesnt work for me:

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

I did exactly the above, changed permissions to 755, added the script to the Sessions menu.

Now when I reboot I get nothing coming up.
sudo ps -ef | grep conky
doesnt show any process running.

Before with just conky in the sessions menu, I would at least get conky up for a brief second before being replaced by the background.

Any other suggestions?

try a "sudo chmod a+x script" instead

and then try to run it yourself

waldorsockbat
August 28th, 2007, 10:13 PM
Ok guy's I need a little help here if you will be so kind.I can't get video card temp to work not sure what info besides what in the conky.

Also I can't get the weather from a couple posts up to work either. I copied and pasted the script ,chmod a+x weather.sh. I then changed the location in the conky line.

Here's my conky config

# 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 normal
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 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 orange}$nodename $sysname $kernel on $machine
${color #C0C8CD}UpTime: ${uptime} Load: ${loadavg}
${color orange}$stippled_hr
CPU:Pentium D940 ${freq}mhz ${alignr} Temp: ${execi 1 sensors | grep "CPU Temp:" | cut -c12-16 ;}C
${color orange} CPU0: ${cpu cpu1}%
${color #C0C8CD}${cpubar cpu1}
${color orange} CPU1: ${cpu cpu2}%
${color #C0C8CD}${cpubar cpu2}
${color orange}Processes:${color #C0C8CD} $processes ${color orange} Running:${color #C0C8CD} $running_processes

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

Hard Drive Temp: WD1600JB ${execi 1 nc localhost 7634 | cut -c31-32 ;}C
Root: ${fs_free_perc /}% ${fs_bar 6 /}$color
hda1: ${fs_free_perc /media/hda1}% ${fs_bar 6 /media/hda1}$color
hdb3: ${fs_free_perc /media/hdb3}% ${fs_bar 6 /media/hdb3}

${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 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
${color}Maidenhead: ${color orange}${execi 1800 /root/tweather.sh USAL0162 C }

Plasma_NZ
August 29th, 2007, 06:49 PM
re-post #509 by Nicram

Hi,
Is it possible to have conky visible all the time?
The problem is, when you maximize a window, conky is covered up. How to keep it visible like a panel in Gnome, Kde for example or at least as a docking option in gkrellm?
There's a hack for this using this file: space_dapp.c but it's for flubox.
I have been playing with various settings, but with no result.

Any ideas


Anyone able to help...? Wouldnt mind a solution myself as im lookin for the same solution..

codedmin
August 30th, 2007, 11:35 AM
Hy there it's possible click in some place of conky and then run one script?

Like shortcut?

Thanks in advance

OffHand
August 30th, 2007, 12:53 PM
Hy there it's possible click in some place of conky and then run one script?

Like shortcut?

Thanks in advance

You cannot make conky clickable if that is what you mean.

Yes
August 30th, 2007, 01:10 PM
For anyone who needs help loading Conky after Copiz or Beryl, someone gave me this script and it works perfectly:

#!/bin/bash

sleep 15 &&
conky &
exit

Make sure you make it executable:

chmod a+x /path/to/file.sh

codedmin
August 31st, 2007, 04:37 AM
You cannot make conky clickable if that is what you mean.

It's a shame :(

Thanks

stalker145
September 4th, 2007, 01:45 PM
Decided to tune up my Conky and can't seem to figure this one out.

I looked up the variables and found ${wireless_essid ath1}should allow me to view the name of the wireless AP that I'm hooked to. Doesn't quite seem to work - it just prints the code to screen.

I've already found that the code for the wireless quality is incorrect as read from the sourceforge page (http://conky.sourceforge.net/variables.html), so I'm sure this is the case here. I found how to do this by culling the Post Your Conky Files (http://ubuntuforums.org/showthread.php?p=3307374#post3307374) thread, but I couldn't find the above needed correction.

Thanks to all, in advance.

foureight84
September 4th, 2007, 09:20 PM
Decided to tune up my Conky and can't seem to figure this one out.

I looked up the variables and found ${wireless_essid ath1}should allow me to view the name of the wireless AP that I'm hooked to. Doesn't quite seem to work - it just prints the code to screen.

I've already found that the code for the wireless quality is incorrect as read from the sourceforge page (http://conky.sourceforge.net/variables.html), so I'm sure this is the case here. I found how to do this by culling the Post Your Conky Files (http://ubuntuforums.org/showthread.php?p=3307374#post3307374) thread, but I couldn't find the above needed correction.

Thanks to all, in advance.


if you want conky to display your wireless essid, then you can just do
${exec iwconfig eth1 | grep "ESSID" | cut -c 25-50}

the cut command depends on your output. but that's the general idea.

stalker145
September 4th, 2007, 09:59 PM
if you want conky to display your wireless essid, then you can just do
${exec iwconfig eth1 | grep "ESSID" | cut -c 25-50}

the cut command depends on your output. but that's the general idea.

Most excellent. With a little finagling of the cut numbers it worked perfectly. I thank you much.

foureight84
September 5th, 2007, 02:44 AM
Most excellent. With a little finagling of the cut numbers it worked perfectly. I thank you much.

no problem =D

Matt Jones
September 9th, 2007, 04:33 AM
Can anybody help me.. I have conky set to load on start-up - it loads, then goes off again and I have to manually start it from the terminal.

any suggestions?

kevdog
September 11th, 2007, 10:39 AM
Im trying to conky 1.47 from source. I think Ive installed all the required dependencies (there are more that what are actually listed on the sourceforge conky website). Anyway at the end of the configure process I get the following:

* x11:
x11 support: yes
xdamage support: yes
xdbe support: yes
xft support: yes

* music detection:
audacious: no
bmpx: no
mpd: yes
xmms2: no

* general:
hddtemp: yes
portmon: yes
RSS: no
wireless: no


Does anyone know how I can make some of those no statements become yes?? Specifically wireless and RSS. Ive looked for the configure options available (such as --enable-wireless), but I couldnt find any available options. Any suggestions??

I guess on the same note I tried to compile the svn sources, but also keep getting errors in the configure process

checking for BASE_DEPENDENCIES... configure: error: Package requirements (cairo >= 0.9.2.
libsvg-cairo >= 0.1.6) were not met:

No package 'libsvg-cairo' 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 BASE_DEPENDENCIES_CFLAGS
and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


Im stumped on this error, b/c obviously this is pointing to a mssing package dependency but I dont know what this is!!

kevdog
September 12th, 2007, 08:39 AM
Ive managed to get a little farther and found these were the options to compile the conky-1.47 version:

./configure --enable-wlan --enable-rss -enable-audacious --enable-bmpx

The xmms2 package is not available in the repositories.

The configure process completes however this is what Im finding during the make process:

make
make: *** No rule to make target `configure.ac', needed by `Makefile.in'. Stop.


Help???

mikawber
September 18th, 2007, 11:23 PM
I love this application, however I have a major question. I have an Intel Core 2 Quad Q6600 processor. Is there anyway to get a temp for every core?

dcast
September 23rd, 2007, 08:34 PM
Hey I followed the instructions exactly, however Conky only shows up as gnome is starting and before my wallpaper appears then it disappears. It also shows up as I am shutting down. How can I fix this?

aristotlewilde
October 6th, 2007, 08:34 PM
AAAAAArgh!

I am having an issue that I had before. I have not used conky ina long time and have since lost my original .conkyrc file (due to a full drive reformat).

My conky disappears when I click on the desktop. Or, if I start it thru terminal, when I close the terminal window, it disappears.

I am frustrated because I had this fixed before.

I am using nvidia graphics in Feisty Fawn...

Anyone have thoughts?

Sorry for asking the same question I asked 12 months ago. I can't find the proper responses.


***EDIT

I screwed around with my startup script (sleep for 12) and set desktop to override. All good in the hood now!!!!!!!!!!1

victorbrca
October 21st, 2007, 06:41 PM
Is there anyway I can setup conky to open on a specific viewport when using Gutsy with Compiz?

I added "title=conky" and "X viewport position = 5 and Y viewpoprt position = 0" but it does not work. It always open the desktop where it's called.


Thanks,

Vic.

tturrisi
October 22nd, 2007, 08:44 AM
Im trying to conky 1.47 from source. I think Ive installed all the required dependencies (there are more that what are actually listed on the sourceforge conky website). Anyway at the end of the configure process I get the following:

* x11:
x11 support: yes
xdamage support: yes
xdbe support: yes
xft support: yes

* music detection:
audacious: no
bmpx: no
mpd: yes
xmms2: no

* general:
hddtemp: yes
portmon: yes
RSS: no
wireless: no


Does anyone know how I can make some of those no statements become yes?? Specifically wireless and RSS. Ive looked for the configure options available (such as --enable-wireless), but I couldnt find any available options. Any suggestions??

I guess on the same note I tried to compile the svn sources, but also keep getting errors in the configure process

checking for BASE_DEPENDENCIES... configure: error: Package requirements (cairo >= 0.9.2.
libsvg-cairo >= 0.1.6) were not met:

No package 'libsvg-cairo' 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 BASE_DEPENDENCIES_CFLAGS
and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


Im stumped on this error, b/c obviously this is pointing to a mssing package dependency but I dont know what this is!!
You have to compile conky with the new wlan variables enabled. See my Conky and Cairo writeups here:
http://members.cox.net/tonyt/d830/
and a HowTo Conky wifi at this foruum:
http://ubuntuforums.org/showthread.php?t=563401
To get RSS configure with --enable-rss

cdiem
October 26th, 2007, 03:20 AM
I have the following problem; I have a dual core processor, and would like to setup conky to show the temperature at the ACPI Thermal Zone of each of the cores (i.e., the ACPI temperature of each processor - something that Kima (http://www.kde-apps.org/content/show.php/Kima+-+kicker+monitoring+applet?content=33257) shows). How can I make it? Is it possible at all?

hikeb
October 27th, 2007, 01:51 PM
First of all I want to thank every one for helping out and contributing to this and other topics.

Now let me tell you about my problem. When I go into X for the first time this is what happens when conky is loaded (please look at sswp.png problem highlighted in yellow) notice that conky is loaded on top of my top panel. But if I reload conky every thing loads just fine (please look at sswop.png)

I also included a screenshot of my sessions window.

I'm also posting my config file for conky.

Hope that someone can help me out with this.

mgbdeftones
October 27th, 2007, 05:18 PM
First of all I want to thank every one for helping out and contributing to this and other topics.

Now let me tell you about my problem. When I go into X for the first time this is what happens when conky is loaded (please look at sswp.png problem highlighted in yellow) notice that conky is loaded on top of my top panel. But if I reload conky every thing loads just fine (please look at sswop.png)

I also included a screenshot of my sessions window.

I'm also posting my config file for conky.

Hope that someone can help me out with this.

What you need to do is create a script so that conky will load after gnome/compiz has fully loaded, say 15 seconds after bootup

To do so:
1. Create a "file.sh" (name it whatever, without quotes)
2. In "file.sh" put:
#!/bin/bash
sleep 15 &&
conky &
exit
3. chmod a+x /path/to/file.sh (/path/to being the location that the file is stored, which can be anywhere)
4. Go back to session manager and instead of loading "conky", select the path to this file

Should fix it, good luck

hikeb
October 29th, 2007, 04:02 AM
What you need to do is create a script so that conky will load after gnome/compiz has fully loaded, say 15 seconds after bootup

To do so:
1. Create a "file.sh" (name it whatever, without quotes)
2. In "file.sh" put:
#!/bin/bash
sleep 15 &&
conky &
exit
3. chmod a+x /path/to/file.sh (/path/to being the location that the file is stored, which can be anywhere)
4. Go back to session manager and instead of loading "conky", select the path to this file

Should fix it, good luck
mgbdeftones thanx a lot that did exactly what I need it to do. Now I can enjoy conky at start up.

pt123
November 4th, 2007, 11:19 PM
Anyone able to get Google Calendar working with this

http://code.google.com/p/gcalcli/

I was trying to follow this how to
http://blog.wired.com/monkeybites/20...-embed-go.html

but i am having problems installing the dependencies

zyg0t3
November 8th, 2007, 09:16 PM
Correct me if i'm wrong but dual core is utilizing 2 different cores within or inside of the same chip therefore i would expect the temperature results to be the same.

Pictures of the app in your link show temps for Cpu and Gpu.

I have the following problem; I have a dual core processor, and would like to setup conky to show the temperature at the ACPI Thermal Zone of each of the cores (i.e., the ACPI temperature of each processor - something that Kima (http://www.kde-apps.org/content/show.php/Kima+-+kicker+monitoring+applet?content=33257) shows). How can I make it? Is it possible at all?

MicroChris
November 9th, 2007, 02:28 AM
Anyone know if there's sensor support for Mobile Athlon XP's?

I have a 2500+M that I bought purely due to the fact that it's a sick overclocker, but it comes up as "Unknown CPU Type" in Linux and Windows.

arbulus
November 11th, 2007, 01:12 AM
I use openbox, and I don't use a panel. I just use Tint for a task manager. but I don't have a clock, and I've seen people with clock's in their Conkys. So, I'm curious: how would I need to setup my conkyrc to display just a small 12-hour clock in the bottom right corner of my screen?

lpb331
November 11th, 2007, 08:41 AM
Just make sure the line "alignment bottom_right" is not commented out and add the line "${time %I:%M:%S %p}" at the end of your .conkyrc file. If you want the rest of your conky somewhere else you can run multiple instances, where each conky runs its own config file.

arbulus
November 11th, 2007, 02:10 PM
Just make sure the line "alignment bottom_right" is not commented out and add the line "${time %I:%M:%S %p}" at the end of your .conkyrc file. If you want the rest of your conky somewhere else you can run multiple instances, where each conky runs its own config file.


Awesome! Thank you!

elcasey
November 11th, 2007, 03:20 PM
I'm sure this has been covered before, but I can't find it (these conky threads are huge). I've almost completely reworked my .conkyrc today and am very happy that audacious variables are included in 1.4.8.

But....I can't figure out how to get a line to wrap. Every song title displayed by $audacious_title is wider than the 250px I've set to be conky's maximum width. I know I saw someone asking about this re: XMMS awhile back, but I cannot find the post again.

These are the audacious lines in my .conkyrc:
${color orange}MUSIC (Audacious) ${hr 2}$color
${audacious_title}
${audacious_bar 8,180} $alignr ${audacious_position} / ${audacious_length}

Attached is how it looks on-screen.

Any ideas? :confused:

cdiem
November 14th, 2007, 02:13 PM
Correct me if i'm wrong but dual core is utilizing 2 different cores within or inside of the same chip therefore i would expect the temperature results to be the same.

Pictures of the app in your link show temps for Cpu and Gpu.

I don't get this very well; the Preferences menu in Kima says, that these temperatures come from the "Linux Acpi Thermal Zone Driver"; but as I said, I don't understand this very much.

Issuing
"cat /proc/acpi/thermal_zone/TZS0/temperature " gives me (at the moment):
temperature: 39 C
and "cat /proc/acpi/thermal_zone/TZS1/temperature" gives me (at the moment):
temperature: 49 C

What I was looking for was a command to put this in conky (something like "acpitemp", but for each of the cores, probably).

Edit: -----------------> I think I'll stick with the normal way of putting this in, I mean, something like:
${execi 5 cat /proc/acpi/thermal_zone/TZS1/temperature |cut -c26-27 }
${execi 5 cat /proc/acpi/thermal_zone/TZS0/temperature |cut -c26-27 }

Thanks for help, anyway

BlackMotion
November 14th, 2007, 05:45 PM
Hi all,

I don't know if this question is asked before but i have a problem
but when i press "show desktop"
( i don't know if it's called "show desktop", i have the Dutch version...)
than Conky disappears as well...
I've deleted the line: "own_window_type override" from the .conkyrc file because otherwise it' stay on top always...

can anyone help me please,
i'm sorry if this question is asked before...:KS

BlackMotion
November 14th, 2007, 05:55 PM
i have the same issue...

My conky disappears when I click on the desktop. Or, if I start it thru terminal, when I close the terminal window, it disappears.

CanonKen
November 29th, 2007, 12:14 PM
Any ideas why I'm getting this

ken@ubuntu:~$ conky
Conky: can't load font 'arial'
Conky: statfs '/media/hda1': No such file or directory
Conky: statfs '/media/hdb3': No such file or directory
Conky: desktop window (16000b5) is subwindow of root window (187)
Conky: window type - override
Conky: drawing to created window (4200003)
Conky: drawing to double buffer
Conky: statfs '/media/hdb3': No such file or directory
Conky: statfs '/media/hda1': No such file or directory
Conky: statfs '/media/hdb3': No such file or directory
Conky: statfs '/media/hda1': No such file or directory
Conky: statfs '/media/hdb3': No such file or directory
Conky: statfs '/media/hda1': No such file or directory

stalker145
November 29th, 2007, 08:00 PM
Any ideas why I'm getting this

If you could post the output of sudo fdisk -l we can get to looking. I think the reason, though, is that if you're trying to get Conky to read your installed hard disks, you're putting in the wrong directory. Instead of /media/hda1and so forth, it should be /dev/hda1

mmac
December 2nd, 2007, 12:57 AM
Nevermind, I figured it out. I'll post mine once I finish it.

anthonie
December 7th, 2007, 12:34 PM
Hi there,

Two questions:

1. Installed latest conky without trouble. One thing annoys me though, and that is that Conky is always 'on top', so it always takes up space at my right side of the screen. I'd prefer for Conky to just be available when I go to my desktop. I looked at the config file but can't find where to change the settings.

2. I normally don't work within a Gnome surrounding but rather with E17. Anyone knows why it does not want to work under E17 or what to do to make it work?

First problem somehow solved itself without me doing anything else than a couple of reboots. The second remains though

subs
December 7th, 2007, 12:50 PM
worked gr8!!!

amazing.... much better than the gdesklets i used to work with!!

Mud.Knee.Havoc
December 7th, 2007, 07:46 PM
i have the same issue...

My conky disappears when I click on the desktop. Or, if I start it thru terminal, when I close the terminal window, it disappears.

Any program you run in a terminal will disappear when you close the terminal unless you add a & sign to the end of the command and properly exit the terminal. EDIT: Actually, the & sign at the end of the command just lets you continue using the terminal... handy if you don't want 10 terminals open and useless just to run 10 different processes! But you'll need to follow these steps to do what you're after.

For example, don't run
conky

Run
conky &

When you want to close the terminal, the best way to do it is type exit instead of clicking on the window's X. This way, the process will remain running in the background.

This is very handy... you can add the & to any command to launch a program. :)

An alternative is to install a program like gmrun (I think there's also fbrun which does the same) - it will open a tiny window that lets you input a command (like "conky" or "pidgin") and then disappear, launching the program.

deviouschild
December 8th, 2007, 08:30 PM
Hey i have it up and working now, only issue is after the install my desktop icons dissappear when conky refresh's???

phenolholic
December 12th, 2007, 01:51 AM
my conky(ies) on my touchscreen laptop. envy.

HDave
December 13th, 2007, 12:56 AM
I have a laptop with a wifi card (wlan0), a built in ethernet connection (eth0), a PC Express Card gigE (eth1), and a Verizon wireless card (ppp0).

Anybody out there have a way that I get conky to show the network traffic for the one connection I am using at any given moment in time.....thanks!!

Scriptless...if possible! :)

pt123
December 13th, 2007, 04:42 AM
my conky(ies) on my touchscreen laptop. envy.

can you post you .conkyrc file?how did you get the data into two different areas of the screen?

lpb331
December 13th, 2007, 08:58 AM
I've compiled conky 1.4.9 with audacious and wireless support. It's running fine but for some reason it takes around 8 seconds for ${audacious_position} to refresh even though the update interval is set to 1 second. I don't have a music_player_interval variable in my config, so it's not that. Any ideas on why this is happening?

anthonie
December 14th, 2007, 05:42 AM
Hi all,

I have a question about text positioning. I have been playing around with conky for a while, all to much joy. However, I have a couple of graph-bars for my hdd's, and I'd like the text to sit on top of it, in order to preserve space. To achieve that I use negative margins, but that only solves the horizontal dimension.

Anyone knows how to get the text lined up to the graph-bars?

victorbrca
December 14th, 2007, 07:49 PM
Any one knows how to remove the border of a cpu and memory graph??

http://wazem.dyndns.org/temp/ubuntu-forum/misc/cpu-mem-graph.png


Thanks,


Vic.

anthonie
December 14th, 2007, 09:29 PM
Any one knows how to remove the border of a cpu and memory graph??

In my conky version, 1.4.7, it's

draw_graph_borders no

victorbrca
December 14th, 2007, 09:42 PM
In my conky version, 1.4.7, it's

draw_graph_borders no

Thanks a lot man!!! ;)



Vic.

Mikebert
December 15th, 2007, 03:43 PM
Any program you run in a terminal will disappear when you close the terminal unless you add a & sign to the end of the command and properly exit the terminal. EDIT: Actually, the & sign at the end of the command just lets you continue using the terminal... handy if you don't want 10 terminals open and useless just to run 10 different processes! But you'll need to follow these steps to do what you're after.

Actually, prepend 'nohup' to a command if you want to run no matter what happens to the window that called it.

mike@desktop> nohup conky &

= a conky that runs in the background and won't quit until explicitly killed.

EDIT: nohup [command] & is a still a great way to run a process as described, but for conky, you can go into .conkyrc and set 'background yes' and conky will run the same way. Just found that out after a lot of tinkering.

MachineBucket
December 20th, 2007, 11:22 AM
Is it possible to enable all the variables at once by using apt-get? I installed conky 1.4.7 through synaptic, but it doesn't have audacious variable support.

machinebucket@notebook:~$ conky -v
Conky 1.4.7 compiled Thu Sep 6 13:03:21 GMT 2007 for Linux 2.6.15.7 (x86_64)

Compiled in features:

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

Music detection:
* mpd

General features:
* hddtemp
* portmon
* rss
* wireless


I was also wondering if it matters what version of Audacious I have. I've got version 1.3.2.

CoolHand
December 21st, 2007, 12:19 AM
I haven't posted to this thread in a long time. Amazing how long it is. I thought I would share a screencap of conky on my freshly installed 7.10 system. It was great when I upgraded. Just used apt-get to grab conky, copied over my old config added curl for grabbing web stuff and I was in buisness. Looks good to me even on the default background.

Phurious
December 21st, 2007, 11:05 PM
Hi all,

I have a question about text positioning. I have been playing around with conky for a while, all to much joy. However, I have a couple of graph-bars for my hdd's, and I'd like the text to sit on top of it, in order to preserve space. To achieve that I use negative margins, but that only solves the horizontal dimension.

Anyone knows how to get the text lined up to the graph-bars?

To move your text up or down you are going to have to play with offsets. I had to modify *A LOT* of offsets in my .conkyrc, and it can get confusing. The command you are looking for is ${voffset <AMOUNT>}.

background yes
update_interval 1.0
total_run_times 0

own_window yes
own_window_type normal
own_window_transparent yes
own_window_colour black
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 300 5
maximum_width 300

#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment none

gap_x 40
gap_y 60

use_xft yes
xftfont Candara:size=6
xftalpha 0.8
uppercase no
override_utf8_locale yes
use_spacer no

#default_color dedede
default_color d2d2d2
default_shade_color 404040
#default_outline_color 404040
default_outline_color 597DB2

draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no

stippled_borders 2
border_margin 4
border_width 1

mpd_host localhost
mpd_port 6600

mail_spool $MAIL
no_buffers yes
cpu_avg_samples 2
net_avg_samples 2

#${offset 15}${color B26B59}${execi 3600 curl 'http://www.whatismyip.org'}$color

TEXT
${font bold:size=26}${color ffffff}${shadecolor 202020}${time %I:%M %p}$shadecolor$color$font
${font bold:size=8}${color ffffff}${shadecolor 202020}${time %A %B, %d %Y}$shadecolor$color$font
${color B28F59}$hr${color}
${font size=8}${color ffffff}${shadecolor 202020}$nodename$shadecolor$color$font - $sysname $kernel on $machine$font
${color B28F59}$hr${color}
${voffset -2}${color B28F59}${shadecolor 202020}STATUS :$shadecolor$color
${color B28F59}${voffset -6}$hr${color}
Uptime: $uptime - Load: $loadavg
Processes:
Running: $processes
Active: $running_processes
Processes Detail: ${alignr}${offset -4}PID ${offset 4}CPU% MEM%
${color #B26B59}${offset 17}${top name 1}${alignr}${offset -3}${top pid 1} ${top cpu 1} ${top mem 1}$color
${offset 17}${top name 2}${alignr}${top pid 2} ${top cpu 2} ${top mem 2}
${offset 17}${top name 3}${alignr}${top pid 3} ${top cpu 3} ${top mem 3}
${offset 17}${top name 4}${alignr}${top pid 4} ${top cpu 4} ${top mem 4}
${offset 17}${top name 5}${alignr}${top pid 5} ${top cpu 5} ${top mem 5}

${color B28F59}$hr${color}
${voffset -2}${color B28F59}${shadecolor 202020}PROCESSOR :$shadecolor$color
${color B28F59}${voffset -6}$hr${color}
${cpugraph cpu0 60,299 070F1C 3073AA}
${voffset -68}AMD Athlon(tm) 64 X2 Dual Core Processor 4800+
Core 1: ${freq 1} MHz
${cpu cpu1}% ${color 597DB2}${cpubar cpu1}$color
Core 2: ${freq 2} MHz
${cpu cpu2}% ${color 597DB2}${cpubar cpu2}$color


${voffset -12}${color B28F59}$hr${color}
${voffset -2}${color B28F59}${shadecolor 202020}MEMORY :$shadecolor$color
${color B28F59}${voffset -6}$hr${color}
2GiB Corsair TWINX Pro:
$mem / $memmax
$memperc% ${color 597DB2}${membar}$color
${color B28F59}$hr${color}
${voffset -2}${color B28F59}${shadecolor 202020}STORAGE :$shadecolor$color
${color B28F59}${voffset -6}$hr${color}
File systems:
System: ${fs_used /} / ${fs_size /}
${color 597DB2}${fs_bar /}${color}
RAID: ${fs_used /mnt/RAID} / ${fs_size /mnt/RAID}
${color 597DB2}${fs_bar /mnt/RAID}${color}

${color B28F59}$hr${color}
${voffset -2}${color B28F59}${shadecolor 202020}NETWORK :$shadecolor$color
${color B28F59}${voffset -6}$hr$color
${voffset -5}${downspeedgraph eth0 64,149 495831 91B359}${upspeedgraph eth0 64,149 5C232D B05B6A}
${voffset -67}Ethernet:
Public IP: ${offset 15}${execi 3600 curl 'http://www.whatismyip.org'}
Local IP: ${offset 20}${addr eth0}
Down: ${offset 20}${downspeed eth0} Kb/s${offset 80}Up: ${upspeed eth0}$color Kb/s


${voffset -4}${color B28F59}$hr${color}
${voffset -2}${color B28F59}${shadecolor 202020}REMOVEABLE MEDIA :$shadecolor$color
${color B28F59}${voffset -6}$hr${color}
${if_mounted /media/USB-Thumbdrive}USB-Thumbdrive: ${fs_used /media/USB-Thumbdrive} / ${fs_size /media/USB-Thumbdrive}
${color 597DB2}${fs_bar /media/USB-Thumbdrive}${endif}${color}

${voffset -4}${color B28F59}$hr${color}
${voffset -2}${color B28F59}${shadecolor 202020}WEATHER :$shadecolor$color
${color B28F59}${voffset -6}$hr${color}
Weather report for Dallas, Texas:
${color 597DB2}${execi 60 /usr/bin/pymetar KDFW}$color

A screencap of my conky:

http://i.pbase.com/o4/37/531737/1/90627352.JcW8fpDD.Conky.png

pt123
December 24th, 2007, 04:43 PM
Can someone explain to me what the 10 & 20 mean

${tail /home/username/file.txt 10 20}
because when I looked at the man page for tail, you specify the number of lines by using -n. When I enter the above command in the terminal I get these errors:

tail: cannot open `12' for reading: No such file or directory
tail: cannot open `20' for reading: No such file or directory

The lines ${tail /home/username/file.txt 10 20} is limiting me to 10 lines from the file, even when I change it to 12 20 I am only getting 10 lines.

Edit:

Once I changed this all is fine:
# Maximum size of buffer for user text, i.e. below TEXT line.default is 16384 bytes
max_user_text 32768

CanonKen
December 25th, 2007, 08:40 AM
Whats the PID stand for where you have PID CPU% and MEM%

Edit - Googled it, Prog ID

shareMenaPeace
December 25th, 2007, 05:41 PM
Is there a way to have deskto disabled and see conky?

I use 4 diffrent cube wallpapers thats why... and its configured to be in right corner, but appears left bottom.
Have also screenlets and AWN ...


Thanx

AirOnSkin
December 26th, 2007, 11:12 AM
Hey there...

I just would like to share my conky config. I was searching a lot for examples and did not found the one that fit my desires. So this is my conky-setup. Maybe it helps some of you.

http://img4.myimg.de/conky0ee9c_thumb.jpg (http://www.myimg.de/?img=conky0ee9c.jpg)

ronbrooks
December 27th, 2007, 02:00 PM
I am trying to use conky 1.4.9 and when I try to compile it I get that X11 can't be found. Dose anyone know how to fix this. Here is I out put when I try and compile.

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
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 for a sed that does not truncate output... /bin/sed
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
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 a BSD-compatible install... /usr/bin/install -c
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 recognize 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 xlf... no
checking for f77... 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 xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... 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... 98304
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... 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... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for pkg-config... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.19... 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 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... 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 X... no
configure: error: Can't locate your X11 installation


Maybe I will have to go back to 1.4.2

rjmdomingo2003
January 2nd, 2008, 07:41 AM
Is it possible to have conky scroll horizontally (left to right) instead of just being stationary?

era506
January 2nd, 2008, 12:56 PM
Hi!! I just discovered conky and I love it! Just have some questions:

- How can I display my CPU temp? The acpitemp variable doesn't seem to work
- How about the hard disk temp? The hdtemp variable doesn't work either -- Nevermind, I had to install hddtemp.
I have lmsensors installed and working with screenlets.
- How can I display the current song I'm listening with Exaile, I've read that you can with amarok but couldn't find how to do it.
- My desktop icons have dissapeared and they come back when I hover my mouse over them, this happens since conky was installed, how do I fix it?

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

# Xft font when Xft is enabled
xftfont AquaBase:size=8
#xftalpha 0.5

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



# 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 -*-purisa-*-*-*-*-11-*-*-*-*-*-*-*
#font -*-comic sans ms-*-*-*-*-11-*-*-*-*-*-*-*
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 35



# stuff after 'TEXT' will be formatted on screen

TEXT
${color 469bdc}$nodename ${hr}
${color }Today is: $alignr${color }${time %A, }${time %e %B %G}
${color }The time is: $alignr${color }${time %I:%M %p}
${color }UpTime: $alignr${color }$uptime
${color }Architecture: $alignr${color }$machine
${color }Kernel:$alignr${color }$kernel

${color 469bdc}AMD(R) Athlon64(TM)X2 CPU 4200+ @ 2.2GHz ${hr 2}$color
${color }CPU0: ${cpu cpu1}% ${cpugraph cpu1}
${color }CPU1: ${cpu cpu2}% ${cpugraph cpu2}
${color }CPU Temp: ${acpitemp}.C

${color 469bdc}Memory / Disk ${hr}$color
RAM: $memperc% ${membar 6}$color
Swap: $swapperc% ${swapbar 6}$color
Mint: ${fs_free_perc /} % ${fs_bar 6 /}$color
EdRA: ${fs_free_perc /media/sda6} % ${fs_bar 6 /media/sda6}$color
WinXP: ${fs_free_perc /media/sda1} % ${fs_bar 6 /media/sda1}$color
HDD Temp: ${hddtemp /dev/sda localhost 7634}

${color 469bdc}Internet Conetion ${hr}$color
Down: $color${downspeed eth1} k/s ${alignr}Up: ${upspeed eth1} k/s
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 469bdc}Gmail ${hr}
${color }${execi 300 python /home/era506/.conky/gmail.py}

${color #469bdc}Weather ${hr}
${color }${execi 1800 /home/era506/.conky/weather/weather.sh CSXX0008}

Thanks in advance!

lvleph
January 2nd, 2008, 01:19 PM
Amarok and Conky (http://ubuntuforums.org/showpost.php?p=4017279&postcount=570) Which by the way was only 2 posts before yours.

You already have the CPU Temp in you conkyrc. For the HD temp look around this thread (http://ubuntuforums.org/showthread.php?t=281865).

era506
January 2nd, 2008, 01:45 PM
Thanks!! The HD temp is working but the CPU doesn't, I think I have to use something different than "acpitemp" but I don't know what. Solved icons issue, it was because of the conkyrc I was using.

dannyboy79
January 4th, 2008, 12:43 PM
can anyone tell me how to edit my session startup apps without using X. meaning, what file can I edit through ssh to remove conky from my session startup windows and instead make it run .conkylaunch.

.conkylaunch is the bash script I created with this in it per another thread I read

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

I can just wait until I get home and change it through X while sitting at my desk but I'd like to learn how to add and remove startup apps from the command line. I did a search for conky and found this:
~/.config/autostart/conky.desktop

it had this in it:
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=No name
Name[en_US]=conky
Exec=conky
X-GNOME-Autostart-enabled=true

Would I just change that to be this?:

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=No name
Name[en_US]=conky
Exec=~/.conkylaunch
X-GNOME-Autostart-enabled=true

hopefully that would work. ANy thoughts on this?

John.Michael.Kane
January 4th, 2008, 02:54 PM
Thanks!! The HD temp is working but the CPU doesn't, I think I have to use something different than "acpitemp" but I don't know what. Solved icons issue, it was because of the conkyrc I was using.

Since passing the acpitemp option is not working.You might want to try the method below.

1) Using lmsensors. I included the lines from my conky file. You will have to adjust the cut numbers eg: -c13-16 to fit your cpu's
Core 0: ${freq_g core 0}Ghz ${execi 8 sensors | grep -A 1 'Core 0' | cut -c13-16 | sed '/^$/d'}°C
${cpu core 0}% ${cpubar core 0}
Core 1: ${freq_g core 1}Ghz ${execi 8 sensors | grep -A 1 'Core 1' | cut -c13-16 | sed '/^$/d'}°C
${cpu core 1}% ${cpubar core 1}
To set up lmsensors read the thread below.
HOW TO: Install and configure lm-sensors (http://ubuntuforums.org/showthread.php?t=2780&highlight=lmsensors)

era506
January 4th, 2008, 03:28 PM
Since passing the acpitemp option is not working.You might want to try the method below.

1) Using lmsensors. I included the lines from my conky file. You will have to adjust the cut numbers eg: -c13-16 to fit your cpu's
Core 0: ${freq_g core 0}Ghz ${execi 8 sensors | grep -A 1 'Core 0' | cut -c13-16 | sed '/^$/d'}°C
${cpu core 0}% ${cpubar core 0}
Core 1: ${freq_g core 1}Ghz ${execi 8 sensors | grep -A 1 'Core 1' | cut -c13-16 | sed '/^$/d'}°C
${cpu core 1}% ${cpubar core 1}
To set up lmsensors read the thread below.
HOW TO: Install and configure lm-sensors (http://ubuntuforums.org/showthread.php?t=2780&highlight=lmsensors)

Thank you for the answer!!! I have lmsensors working with screenlets and the panel applet but with those lines didn't work in conky, I think I have to change the numbers c13-16 as you say but don't know how and the howto you linked doesn't mention anything about them. What do those numbers mean?

John.Michael.Kane
January 4th, 2008, 03:58 PM
Thank you for the answer!!! I have lmsensors working with screenlets and the panel applet but with those lines didn't work in conky, I think I have to change the numbers c13-16 as you say but don't know how and the howto you linked doesn't mention anything about them. What do those numbers mean?

Passing the cut command allows the user to cut out selected columns or fields from one or more files.

Example:
Core 0: ${freq_g core 0}Ghz ${execi 8 sensors | grep -A 1 'Core 0' | cut -c13-16 | sed '/^$/d'}°C
${cpu core 0}% ${cpubar core 0}

The above line is passing the cut command with the -c option. Which specifies character positions, and in this case it would pass characters 13-16.

In order for you to pass the cut command correctly you need to adjust the amount of characters passed by the -c option, As everyones -c option will be different.

On the system you are running the characters might be longer or shorter. You would simply count the characters up to the point you want.

Taking your cpu for example. You would run sensors | grep -A 1 'Core0' from your terminal, and count the number of characters including any spaces/gaps until you reach the numbered amount you want cut pass.

You can also try using the version below. " you might still need to adjust the cut numbers"
Core0..:: ${freq_dyn_g cpu0}Ghz ::: Usage: ${cpu cpu0}% ${cpubar cpu0 8,50} ${execi 8 sensors | grep -A 1 'Core0' | cut -c13-16 | sed '/^$/d'}C
Core1..:: ${freq_dyn_g cpu1}Ghz ::: Usage: ${cpu cpu1}% ${cpubar cpu1 8,50} ${execi 8 sensors | grep -A 1 'Core1' | cut -c13-16 | sed '/^$/d'}C

era506
January 4th, 2008, 04:05 PM
This is what appears:
Core0 Temp:
+40°C


That will be 26 characters?

dannyboy79
January 4th, 2008, 04:12 PM
can anyone tell me how to edit my session startup apps without using X. meaning, what file can I edit through ssh to remove conky from my session startup windows and instead make it run .conkylaunch.

.conkylaunch is the bash script I created with this in it per another thread I read

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

I can just wait until I get home and change it through X while sitting at my desk but I'd like to learn how to add and remove startup apps from the command line. I did a search for conky and found this:
~/.config/autostart/conky.desktop

it had this in it:
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=No name
Name[en_US]=conky
Exec=conky
X-GNOME-Autostart-enabled=true

Would I just change that to be this?:

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=No name
Name[en_US]=conky
Exec=~/.conkylaunch
X-GNOME-Autostart-enabled=true

hopefully that would work. ANy thoughts on this?

can anyone answer this question please? I would really appreciate it.

era506
January 4th, 2008, 04:18 PM
Got it!!! Thanks for everything!!

${color0}CPU1 Temp: ${color}${execi 8 sensors | grep -A 1 'Core0' | cut -c15-19 | sed '/^$/d'}
${color0}CPU2 Temp: ${color}${execi 8 sensors | grep -A 1 'Core1' | cut -c15-19 | sed '/^$/d'}

John.Michael.Kane
January 4th, 2008, 04:58 PM
Got it!!! Thanks for everything!!

${color0}CPU1 Temp: ${color}${execi 8 sensors | grep -A 1 'Core0' | cut -c15-19 | sed '/^$/d'}
${color0}CPU2 Temp: ${color}${execi 8 sensors | grep -A 1 'Core1' | cut -c15-19 | sed '/^$/d'}

Glad it worked out.

funnypanks
January 4th, 2008, 09:58 PM
hi i have a very strange problem. conky runs perfect when i launch it from alt+f2 but when i put it in sessions to boot with the computer it floats for some reason. to it stays above all windows. any help?

Bruce M.
January 4th, 2008, 10:53 PM
hi i have a very strange problem. conky runs perfect when i launch it from alt+f2 but when i put it in sessions to boot with the computer it floats for some reason. to it stays above all windows. any help?

What do you mean by "floats" ?

Sounds like it could be the same problem I had.
When I set up conky to run at bootup, it came up before my desktop then was hidden when the destop came online.

If that's your problem try this.
Modify this to fit your situation.


#!/bin/bash
sleep 30 &&
conky -c ~/.startconky/conkymain &
sleep 2 &&
conky -c ~/.startconky/conkyweather &



A 30 second pause before conky starts, and another 2 second for the second instance of conky.

Hope this helps.
Bruce

John.Michael.Kane
January 5th, 2008, 12:24 AM
hi i have a very strange problem. conky runs perfect when i launch it from alt+f2 but when i put it in sessions to boot with the computer it floats for some reason. to it stays above all windows. any help?

After installing conky via synaptic run
zcat /usr/share/doc/conky/examples/conkyrc.sample.gz > ~/.conkyrc

Next run
gedit ~/.conkyrc

Find the following lines below, and edited them.
# set to yes if you want Conky to be forked in the background
background no <---- change this from no to yes

# If own_window is yes, these window manager hints may be used
Remove this from in front of the line-->#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

funnypanks
January 5th, 2008, 12:47 AM
thanks bruce and mike but shortly after posting i found this
http://ubuntuforums.org/showthread.php?t=424670&highlight=conky+start

very similar i think to bruce's post. ubuntu has the best support ever!

dannyboy79
January 5th, 2008, 10:13 AM
can anyone answer this question please? I would really appreciate it.

that was it if anyone else is interested in knowing how to edit session startup apps from the cli. BUT it worked when I removed the tilde and put the whole path like this:

Exec=/home/daniel/.conkylaunch

RavUn
January 5th, 2008, 11:00 AM
I have my conky set to load at startup and it does but then it goes away... it seems like it may load before the desktop...? Isn't there a way to make conky wait before starting? I had it setup like that on my other desktop but I forget how.

System>preferences>sessions Add... something like sleep 10 && conky but that didn't work...

Bruce M.
January 5th, 2008, 11:37 AM
I have my conky set to load at startup and it does but then it goes away... it seems like it may load before the desktop...? Isn't there a way to make conky wait before starting? I had it setup like that on my other desktop but I forget how.

System>preferences>sessions Add... something like sleep 10 && conky but that didn't work...

As you can see a few posts earlier than this one, I use 30 seconds, just to make sure. Works like a champ.

Bruce

RavUn
January 5th, 2008, 11:42 AM
#!/bin/bash
sleep 30 &&
conky -c ~/.startconky/conkymain &
sleep 2 &&
conky -c ~/.startconky/conkyweather &


Yeah, I saw your post but I don't see how to add it to startup sessions... do you add it just like that in that one command line? I don't have conkymain or conkyweather... so I figured I'd just use "sleep 30 && conky" but that does not work in the startup sessions.. it works when I put it in the terminal, though. Would you know what I should put in the startup sessions to just make conky wait 30 seconds?

Bruce M.
January 7th, 2008, 04:12 PM
#!/bin/bash
sleep 30 &&
conky -c ~/.startconky/conkymain &
sleep 2 &&
conky -c ~/.startconky/conkyweather &


Yeah, I saw your post but I don't see how to add it to startup sessions... do you add it just like that in that one command line? I don't have conkymain or conkyweather... so I figured I'd just use "sleep 30 && conky" but that does not work in the startup sessions.. it works when I put it in the terminal, though. Would you know what I should put in the startup sessions to just make conky wait 30 seconds?

Hi RavUn
OK, I see your dilemma now. Do this:

$ gedit ~/.startconky


Creates a hidden file in your home folder called startconky ( the . means it's hidden) in that file put this:.


#!/bin/bash
sleep 30 &&
conky


Now in you can start it with the terminal command:


$ ./.startconky


or for auto startup:
System>Preferences>Sessions>New
Name: Conky
Command: /home/{your foldername}/.startconky

Click on the [OK] buttom and make sure Conky is checked for startup.

Now if you ever want to add a second conky you only need to create it and change:

#!/bin/bash
sleep 30 &&
conky

to something like this:

#!/bin/bash
sleep 30 &&
conky -c ~/.startconky/conkymain &
sleep 2 &&
conky -c ~/.startconky/conkyweather &


BTW: You can stop conky with:


$ killall conky


Bruce

b4d
January 17th, 2008, 03:10 PM
Hi is there a way to hide eth1 data if I am not connected to wireless? or maybe somehow that conky himself finds out what an i connected to pppoe, eth0, eth1? ty

erwall
January 17th, 2008, 04:00 PM
Hi is there a way to hide eth1 data if I am not connected to wireless? or maybe somehow that conky himself finds out what an i connected to pppoe, eth0, eth1? ty
http://ubuntuforums.org/showthread.php?t=644463&highlight=conky

torgrot
January 21st, 2008, 11:58 AM
Well I installed the version in the repositories 1.4.7 and copied the conkyrc file to my home directory. I created the script to start it at login. So far so good. Conky displays as by default in the bottom left position. I don't like it there so I modified conkyrc this way
# Text alignment, other possible values are commented
#alignment top_left
#alignment top_right
#alignment bottom_left
alignment bottom_right

Which I though would move it to the bottom right of the desktop, but it still shows up at the bottom left of the desktop. :confused: What am I doing wrong? If I kill conky and start it from a terminal with the -a bottom_right it starts where I want it.

torgrot

Bruce M.
January 21st, 2008, 08:04 PM
Well I installed the version in the repositories 1.4.7 and copied the conkyrc file to my home directory. I created the script to start it at login. So far so good. Conky displays as by default in the bottom left position. I don't like it there so I modified conkyrc this way
# Text alignment, other possible values are commented
#alignment top_left
#alignment top_right
#alignment bottom_left
alignment bottom_right

Which I though would move it to the bottom right of the desktop, but it still shows up at the bottom left of the desktop. :confused: What am I doing wrong? If I kill conky and start it from a terminal with the -a bottom_right it starts where I want it.

torgrot

Post your startup script please.
Bruce

torgrot
January 21st, 2008, 11:16 PM
#!/bin/bash
sleep 30;
exec conky -d
exit


It starts just not in the correct locataion. Here is the resource file

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

# stuff after 'TEXT' will be formatted on screen

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

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

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

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

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



torgrot

Bruce M.
January 22nd, 2008, 03:22 PM
I take it this is your "autostart" for conky?
And you are using the regular concyrc file.


#!/bin/bash
sleep 30;
exec conky -d
exit


If so try this one:


#!/bin/bash
sleep 30 &
conky &


It starts just not in the correct locataion. Here is the resource file

torgrot


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

Looks ok, you do want it on the bottom right, right?

torgrot
January 22nd, 2008, 06:15 PM
I'll try your startup script. Yes I do want it to start on the bottom right. It is just the default script with the alignment changed. I figured I needed to start somewhere first.

torgrot::oops:

I feel so stupid right now. When I copied the default .conkyrc, I mistyped the name. Sorry for bothering you.

torgrot

brainkilla
February 3rd, 2008, 05:46 AM
Given that my knowledge of sed is virtually non-existent, I would like to ask for something my config sorely lacks: I copied someone's .conkyrc and managed to delete lines I don't need, yet I cannot succeed in removing the part of sed output which displays processor model name - I have dual core Athlon 64, therefore processor name is displayed twice. How can I make output from /proc/cpuinfo more discriminatory, i.e. make it display processor name only once? Thanx...

rustutzman
February 5th, 2008, 07:39 PM
Since that's not a piece of info that changes why not just type it in? That's what I ended up doing for my quad core.

Russ

TEXT
$nodename - $sysname $kernel on $machine
$stippled_hr
${color lightgrey}Uptime:$color $uptime ${color lightgrey} - Load:$color $loadavg
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.4 GHz
${color #ddaa00}Core 1: $color${freq 1} MHz $alignc${color lightgrey}${cpubar 5, 100 cpu1}$color ${cpu cpu1}%
${color #ddaa00}Core 2: $color${freq 2} MHz $alignc${color lightgrey}${cpubar 5, 100 cpu2}$color ${cpu cpu2}%
${color #ddaa00}Core 3: $color${freq 3} MHz $alignc${color lightgrey}${cpubar 5, 100 cpu3}$color ${cpu cpu3}%
${color #ddaa00}Core 4: $color${freq 4} MHz $alignc${color lightgrey}${cpubar 5, 100 cpu4}$color ${cpu cpu4}%
${color #ddaa00}CPU 1 ${exec sensors | grep -A 2 '^coretemp-isa-0000' | cut -c15-18 | grep '\u00b0'} CPU 2 ${exec sensors | grep -A 2 '^coretemp-isa-0001' | cut -c15-18 | grep '\u00b0'} CPU 3 ${exec sensors | grep -A 2 '^coretemp-isa-0002' | cut -c15-18 | grep '\u00b0'} CPU 4 ${exec sensors | grep -A 2 '^coretemp-isa-0003' | cut -c15-18 | grep '\u00b0'}

ikt
February 10th, 2008, 06:08 AM
Bit of a problem, I have read parts of this thread and done a bit of a search but does not appear to immediately stand out to me the answer.

I have followed the instructions on the first page as best I can, and when I am in terminal and type 'conky' it comes up and looks good, however if I close the terminal window, conky goes with it.

when I start the pc however nothing comes up initially even though i have added it to the startup programs :/

Here is a picture of what it looks like when i start it in terminal:

http://adam.com.au/totalss/conky.png

but otherwise it doesn't start up properly, does anyone know what it might be?

RichJacot
February 10th, 2008, 10:24 AM
Try this thread for your start up issue:
http://ubuntuforums.org/showthread.php?t=424670&highlight=conky+start

It also appears your config can't see your drives. Do a df -h in a terminal window, look for your drives an put those devices inplace of the /media ones you have in your config.

ikt
February 19th, 2008, 03:07 AM
Try this thread for your start up issue:
http://ubuntuforums.org/showthread.php?t=424670&highlight=conky+start

It also appears your config can't see your drives. Do a df -h in a terminal window, look for your drives an put those devices inplace of the /media ones you have in your config.

thanks, that worked great.

coljohnhannibalsmith
February 28th, 2008, 01:22 PM
I have an Acer 5102 WLMi Laptop with 2x AMD TL50 64 bit processors. I have "ATI Radeon Xpress 1100" graphics. I'm running the Ubuntu 7.10 "Gutsy Gibbon" AMD64 Alternate Install distribution. I'm using XGL/Compiz for 3D effects and am using "Nautilus" as a window manager. I also have conky 1.4.7, which I downloaded with:

"sudo apt-get install conky"

I have all the libraries and I believe I have satisfied all the dependencies by running:

"sudo apt-get update"
"sudo apt-get install"

I'm running conky with the following startup script which I'm launching at startup with "Session Manager:'

#! /bin/sh

sleep 30

/usr/bin/conky

The above mentioned script attempts to launch conky after 30 seconds. The desktop is almost always completely stable by then.

What happens intermittantly is that a small black square, about the size of a thumbnail will appear in the upper right hand corner on the desktop, then just go away. Other times conky will load just fine. When I try to run conky from "Terminal" and it fails, I get "segmenation faults."

I have my .conkyrc setup to " own use window" and "double buffering." I also have the window type set to "override."

I have edited my "xorg.conf" file to include the following line:

Load "dbe"

I have also compiled the current 1.4.9 version by hand successfully; but when I replace v1.4.7 with v1.4.9 the problem persists.

I suspect the problem could be caused by any of the following:

*Basic incompatibility with "Nautilus."
*conky being incompatible with the AMD64 platform.
*An improperly configured xorg.config file.
*Incompatible Desktop effects set.
*Incorrect settings in "gconf-editor."

I've read many of the previous posts and it doesn't appear anyone has solved this:confused:

**Does anyone have a reasonable idea what might be causing the problem? Should I just change my Window Manager to "Thunar" or something else that conky will get along with?

Any well thought out suggestions will be greatly appreciated.



Thanks, John

WernerBrandt
March 1st, 2008, 11:24 AM
worked 1st attempt on fresh Kubuntu install

Great ' howto'

Thank you!

koleoptero
March 5th, 2008, 04:11 PM
Thank you for this great guide. Needed to do some tweaking, but I managed it. :KS

johnny9794
March 5th, 2008, 05:13 PM
Heya, I'm having a bit of little trouble from my end, I'd like conky to read my hdd temp, I have installed hddtemp and configured it correctly from my point of stand. for .conkyryc i might be doing something wrong for it to not show hddtemp. could someone help me out?

Here are my configs for hddtemp and conkyryc and a screenshot with gparted to show hdd info.

I am running one entire hdd with multi partitions.

Kerry_W
March 12th, 2008, 11:19 PM
Heya, I'm having a bit of little trouble from my end, I'd like conky to read my hdd temp, I have installed hddtemp and configured it correctly from my point of stand. for .conkyryc i might be doing something wrong for it to not show hddtemp. could someone help me out?

Here are my configs for hddtemp and conkyryc and a screenshot with gparted to show hdd info.

I am running one entire hdd with multi partitions.

to get my hd temps i just used the following in my conky script
${color lightgrey}Sata 1: ${color orange}${hddtemp /dev/sda}
check my screenshot for the output.

Hope this helps.
Kerry

andybleaden
March 20th, 2008, 04:32 PM
Well despite my worse fears and a few glitches I had a play around with this and got it running just perfectly for me.

Changed the layout and did a few changes with me using wireless etc but looks fine and dandy.

I attach the txt file if you want to adapt it feel free :)

You will need to save it as a file called .conkyrc in your home folder though.

Feel free to ask any questions

arbulus
March 20th, 2008, 08:04 PM
I have a question. I recently got a new computer, and in the shuffle I lost my old conky script. I was my favourite conky, just a clock and date. I had copied it from someone in the forums here, but I can't remember who it was, but I think I got it maybe six months ago.

Anyway, I've attached a screenshot of what it looks like. Is anyone using this script or something very similar that could share with me?

http://img177.imageshack.us/img177/346/cleandesktopmk5.th.jpg (http://img177.imageshack.us/my.php?image=cleandesktopmk5.jpg)

banewman
March 22nd, 2008, 06:47 AM
I have a question. I recently got a new computer, and in the shuffle I lost my old conky script. I was my favourite conky, just a clock and date. I had copied it from someone in the forums here, but I can't remember who it was, but I think I got it maybe six months ago.

Anyway, I've attached a screenshot of what it looks like. Is anyone using this script or something very similar that could share with me?

I just knocked up a quick one that is similar
alignment bottom_right
own_window yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
background yes
double_buffer yes
use_spacer yes
use_xft yes
update_interval 1
maximum_width 200
draw_shades no
draw_outline no # amplifies text if yes
draw_borders no
xftfont Bitstream Vera Sans Mono:size=8
uppercase no
stippled_borders 0
border_margin 10
border_width 1
default_color white
own_window_colour black
own_window_transparent yes
gap_x 25
gap_y 50

TEXT
${color white}${time %A %e} ${alignr}
${font size=1}${time %I:%M} ${time %p}
Hope it is close enough :)

arbulus
March 22nd, 2008, 09:10 PM
I just knocked up a quick one that is similar
alignment bottom_right
own_window yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
background yes
double_buffer yes
use_spacer yes
use_xft yes
update_interval 1
maximum_width 200
draw_shades no
draw_outline no # amplifies text if yes
draw_borders no
xftfont Bitstream Vera Sans Mono:size=8
uppercase no
stippled_borders 0
border_margin 10
border_width 1
default_color white
own_window_colour black
own_window_transparent yes
gap_x 25
gap_y 50

TEXT
${color white}${time %A %e} ${alignr}
${font size=1}${time %I:%M} ${time %p}
Hope it is close enough :)


Thank you so much!

zmjjmz
March 27th, 2008, 03:33 PM
I'm running on an old Fluxbuntu box here, and whenever I turn on conky, it reserves this grey area in the screen instead of being transparent. I commented out the own_window stuff, and then the rest of the desktop went grey. Can anyone help?
Also, when I add conky to the startup file (I did use conky &) it didn't start...

SkonesMickLoud
March 30th, 2008, 05:44 AM
Got my conky all set up the way I like it today, but when I hit my "Show Desktop" button conky disappears. This doesn't happen when I manually minimize all windows open.

Any way to disable this?

andybleaden
April 1st, 2008, 05:37 AM
Now then...having had a few weeks to play with this and there is one thing I cannot seem to sort which is to get the conky screen to be transparent ie the same background as the desktop. I have had a play around with this but wither end up with no display or all black....any ideas where I am going wrong?

I attach a txt of the conky script

andybleaden
April 1st, 2008, 04:06 PM
Sorted the above with the help of the conky irc channel and used a srcipt called feh

which I found about through this

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

http://linuxbrit.co.uk/feh/wiki

Which helped the settings and I now have a transparent backgroud ...yippe another in the eye for those nasty windows things!

SkonesMickLoud
April 1st, 2008, 10:25 PM
Now then...having had a few weeks to play with this and there is one thing I cannot seem to sort which is to get the conky screen to be transparent ie the same background as the desktop. I have had a play around with this but wither end up with no display or all black....any ideas where I am going wrong?

#own_window yes
#own_window_transparent no

Uncomment these and change "no" to "yes".

andybleaden
April 3rd, 2008, 06:13 AM
Well after many different changes I have more success. Still struggling to get an amarok script that works but here is what I have now and a screen print for the first time

zmjjmz
April 3rd, 2008, 01:25 PM
Does anyone know of a good way to get Audacious to display statistics in conky? I fixed the other problem; by installing antiX, but I want an Audacious script...

Chame_Wizard
April 3rd, 2008, 05:36 PM
search and you will find it :lolflag:

dccrens
April 6th, 2008, 04:40 PM
Does anyone have the color variables working? From reading the docs and various posts it looks like you should be able to predefine color variable "color0 - color9" so you can change colors easily throughout the rc file. You can set "default_color" and then use "color" to ref it.

I assume you would put for example:
color2 #42AE4A

and then later in the rc you would be able to say something like:
${color2}CPU0 ${cpu cpu1}% ${color #5000a0}${cpubar 6 cpu1}${color}

But this doesn't appear to work.

If I say:
${color #42AE4A}CPU0 ${cpu cpu1}% ${color #5000a0}${cpubar 6 cpu1}${color}

Then it works fine.

But I would then have to go through and manually change every line that refs the color #42AE4A if I want to change it. Whereas, if I can define "color2" as "#42AE4A" in one spot then I could just change it in one place.

Any help is appreciated.

dccrens
April 6th, 2008, 05:30 PM
After experimenting more you can set the color0-color9 variable to "standard" color names such as red, blue, cyan, etc. But not the hex codes. Anyone have a list of the acceptable colors? Things like "cornflower blue" do not work.

Hobbes87
April 6th, 2008, 06:42 PM
If I want a word to appear in bold in conky, for example: System. How do I get this done?

ian320
April 10th, 2008, 07:00 PM
After experimenting more you can set the color0-color9 variable to "standard" color names such as red, blue, cyan, etc. But not the hex codes. Anyone have a list of the acceptable colors? Things like "cornflower blue" do not work.

Try entering the hex values without the pound '#' sign. That works fine for me.

tone77
April 14th, 2008, 07:26 AM
Has anyone tried this on Hardy yet?
Is it still a bunch of work to get it working on Hardy?

zmjjmz
April 14th, 2008, 02:56 PM
I'd imagine it'd be quite the same.

Voorhees1979
April 14th, 2008, 03:45 PM
1.5.1 is available for Hardy just use Synaptic to install it. Have it working here fine. There was a bug reported but its not needed you change just change a setting in the conf file. Read here on how to do it:

https://bugs.launchpad.net/ubuntu/+source/conky/+bug/195022

"own_window no" working fine here in overlay mode with no window. Just need to see how to make it a little bit bigger.

shanepardue
April 15th, 2008, 10:54 PM
How do we prevent the flicker in Hardy? The modules section doesn't exist in my xorg.conf anymore. Thanks!

ashley1987
April 18th, 2008, 03:58 PM
hi... im new to ubuntu... so im looking for such an obvious fix that i will say durrr lol

im running gutsy, i followed the instructions on the how-to until i tried to save the *.conkyrc file. it says:

Could not save the file /home/bob/.conkyrc. Unexpected error: File not found.

What am i doing wrong?

Thanks everyone.

zmjjmz
April 18th, 2008, 04:42 PM
It should be saved as .conkyrc, not *.conkyrc.

zka
April 26th, 2008, 05:48 AM
I created a new thread before finding this one but since noone replied to it i guess its okay to paste it here ...

My conky stopped being transparent as soon as I disabled nautilus option show deskop through configuration editor in order to have different wallpapers on each workspace. Instead the background of conky shows the part of the old wallpaper(default background on hardy).

Googled around and the problem seems to be that conky uses the default background of nautilus instead of being a "real" transperant. One solution was to use feh but the only guide on how to do it was for kde and it didn't work for me..

How do I fix this ? :(

PS: Only started using ubuntu few weeks ago so be easy on an eventual answer so that i can apply it myself =)

Thanks

My conky cfg taken from gnomelooks i think...

background no
font Zekton:size=7
xftfont Zekton:size=7
use_xft yes
xftalpha 0.1
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
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 220 5
maximum_width 220
default_color d7d7d7
default_shade_color black
default_outline_color black
alignment middle_right
gap_x 2
gap_y 10
no_buffers yes
cpu_avg_samples 2
override_utf8_locale no
uppercase no # set to yes if you want all text to be in uppercase
use_spacer left

TEXT
${font Zekton:style=Bold:pixelsize=42}${alignc}${time %H:%M:%S}${font Zekton:size=7}
SYSTEM ${hr 1 }

Hostname: $alignr$nodename
Kernel: $alignr$kernel
Uptime: $alignr$uptime
Processes: ${alignr}$processes ($running_processes running)
Load: ${alignr}$loadavg
Battery ${battery_time BAT0} ${alignr}(${battery BAT0})
${battery_bar 4 BAT0}
CPU ${alignc} ${freq}MHz / ${acpitemp}C ${alignr}(${cpu cpu1}%)
${cpubar 4 cpu1}
${cpugraph}
RAM ${alignr}$mem / $memmax ($memperc%)
${membar 4}
SWAP ${alignr}$swap / $swapmax ($swapperc%)
${swapbar 4}

Highest CPU $alignr CPU% MEM%
${top name 1}$alignr${top cpu 1}${top mem 1}
${top name 2}$alignr${top cpu 2}${top mem 2}
${top name 3}$alignr${top cpu 3}${top mem 3}

Highest MEM $alignr CPU% MEM%
${top_mem name 1}$alignr${top_mem cpu 1}${top_mem mem 1}
${top_mem name 2}$alignr${top_mem cpu 2}${top_mem mem 2}
${top_mem name 3}$alignr${top_mem cpu 3}${top_mem mem 3}

FILESYSTEM ${hr 1}${color}

Root: ${alignr}${fs_free /} / ${fs_size /}
${fs_bar 4 /}
Home: ${alignr}${fs_free /home} / ${fs_size /home}
${fs_bar 4 /}

NETWORK ${hr 1}${color}

Down ${downspeed wlan0} k/s ${alignr}Up ${upspeed wlan0} k/s
${downspeedgraph wlan0 25,107} ${alignr}${upspeedgraph wlan0 25,107}
Total ${totaldown wlan0} ${alignr}Total ${totalup wlan0}


Tried reading 30 pages of this thread before i died :( .. so if the problem was already addressed pls redirect me to what page...

waldorsockbat
April 27th, 2008, 07:10 PM
I have a question about getting conky to display local tv listings with selected stations and times for the program.I have been searching for a few days now and all I have found is this how to in the link below but not exactly what I am looking for.

http://howto.wikia.com/wiki/Howto_add_an_RSS_feed_to_Conky

Any ideas on how to take this script and tweak it or if you know where a guide is that will help I would very much appreciate your input.

Th3Professor
May 6th, 2008, 11:28 AM
I originally used gkrellm, it was okay... then tried torsmo, really liked it... just discovered conky, and it's looking pretty cool. I just took the the generic config from the original post of this thread and made a couple adjustments to fit it to my computer and it's working great. :)

EDIT:
I've gotta dual core... how do I get both to show?

shadowtroopers
May 7th, 2008, 11:21 AM
ok, how to enable autostart conky every time we boot? i'm not sure what to put on the "add start-up proggramme" details (name field,command field and comment field)

Th3Professor
May 7th, 2008, 03:18 PM
ok, how to enable autostart conky every time we boot? i'm not sure what to put on the "add start-up proggramme" details (name field,command field and comment field)

Here's a real quick step-by-step...

1. Create a conky start-up script like ~/.conky_start.sh
Put this in the file:
#!/bin/bash
sleep 60 && conky;
2. chmod 755 ~/.conky_start.sh
3. If you're in GNOME, go to System>Preferences>Sessions.
4. In the "Startup Programs" tab, click on "Add".
5. Click the "Browse..." button, find your new file and add it, name it, comment, etc.

That should do it.

gonio5
May 13th, 2008, 11:34 AM
Hey guys! that's my first post in the forum. I am running Linux ubuntu 8.04 right now, i m a noob basically so excuse my questions i m sure they ll be a bit silly.

Anyway, I installed CONKY following the instructions of this thread : http://ubuntuforums.org/showthread.php?t=205865&highlight=conky

But, I had several problems while trying to make it work properly.
1: It was only running when I was logged in as root
2: I managed to make it work (Through TERMINAL) while logged in as my username but it gives me this:
Conky: use_spacer should have an argument of left, right, or none. 'yes' seems to be some form of 'true', so defaulting to right.
Conky: can't load font 'arial'
Conky: statfs '/media/hda1': No such file or directory
Conky: statfs '/media/hdb3': No such file or directory
Conky: desktop window (10000b4) is subwindow of root window (5d)
Conky: window type - override
Conky: drawing to created window (3c00003)
Conky: drawing to double buffer
Conky: statfs '/media/hdb3': No such file or directory
Conky: statfs '/media/hda1': No such file or directory

Plus it is not aligned correctly, half of it is out of the screen site :(
I did change the conky script with others I found while researching in the forum (eg. http://ubuntuforums.org/showthread.php?t=281865&highlight=install+conky )

3: I made the executable script mentiond in other posts above and in other threads : #!/bin/bash
sleep 60 && conky;

But still no luck.....
And finally today when I logged in i realised my compiz is not working, as in the cube rotation and the extra effects I had on.
I know is really hard to tell what's going on and my post will be quite a pain, but please if someone knows post here, i really want this to work, i ve been trying 3 days now to make it work :(

ps. If my question is answered somewhere in the forum please direct me, I tried reading as much as i could before posting, but didnt find anything relevant.


Cheers :):):):)

zmjjmz
May 13th, 2008, 03:10 PM
Check the permissions on your .conkyrc
try sudo chmod 777 ~/.conkyrc

gonio5
May 13th, 2008, 04:14 PM
Check the permissions on your .conkyrc
try sudo chmod 777 ~/.conkyrc

Ok I did that, it asked for my password then nothing. it basically looked like this:
gonio5@ozzy:~$ sudo chmod 777 ~/.conkyrc
[sudo] password for gonio5:
gonio5@ozzy:~$

I restarted still no change, It doesnt show on startup, the compiz is not working and if i started from the terminal it's not alligned correctly and it gives me this again:

Conky: use_spacer should have an argument of left, right, or none. 'yes' seems to be some form of 'true', so defaulting to right.
Conky: can't load font 'arial'
Conky: statfs '/media/hda1': No such file or directory
Conky: statfs '/media/hdb3': No such file or directory
Conky: desktop window (e000b5) is subwindow of root window (5d)
Conky: window type - override
Conky: drawing to created window (3200003)
Conky: drawing to double buffer
Conky: statfs '/media/hdb3': No such file or directory
Conky: statfs '/media/hda1': No such file or directory
Conky: statfs '/media/hdb3': No such file or directory
Conky: statfs '/media/hda1': No such file or directory
Conky: statfs '/media/hdb3': No such file or directory

:(

Th3Professor
May 15th, 2008, 02:58 PM
"find the section titled Section "Module", and add
Code:
Load "dbe"
"

Okay... I went into xorg.conf and didn't see "Module"... I'm assuming that's for the old xorg config files. My new xorg.conf (Ubuntu 8.04) is really short and to the point:

Section "Device"
Identifier "Configured Video Device"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection



That's ommitting the keyboard and mouse stuff.

So can I just add the Load "dbe" line within the "Monitor" section or maybe the "Screen" section?

My conky is not flickering every second or every single time it refreshes something within its "window", like the CPU bar or the DL/UL graphs... but rather, every few minutes the entire conky flickers - even when behind other windows, causing a flicker within other applications (on top of it).

Would the "dbe" line even stop that flicker?

SkonesMickLoud
May 15th, 2008, 04:51 PM
@ gonoi5:

Try changing "hda#" to "sda#".

TWeerts
May 18th, 2008, 03:29 PM
i have conky installed, and it runs in standard configuration. when i go to make a config file, it says:

bash: gedit/home/ted/.conkyrc: No such file or directory

anticapitalista
May 18th, 2008, 04:37 PM
Leave a space between gedit and the /
so it is like this.
gedit /home/ted/.conkyrc

Th3Professor
May 19th, 2008, 12:35 AM
questions in my quote...

"find the section titled Section "Module", and add
Code:
Load "dbe"
"

Okay... I went into xorg.conf and didn't see "Module"... I'm assuming that's for the old xorg config files. My new xorg.conf (Ubuntu 8.04) is really short and to the point:

Section "Device"
Identifier "Configured Video Device"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection

That's ommitting the keyboard and mouse stuff.

So can I just add the Load "dbe" line within the "Monitor" section or maybe the "Screen" section?

My conky is not flickering every second or every single time it refreshes something within its "window", like the CPU bar or the DL/UL graphs... but rather, every few minutes the entire conky flickers - even when behind other windows, causing a flicker within other applications (on top of it).

Would the "dbe" line even stop that flicker?

signseeker
May 19th, 2008, 06:51 PM
I've got a dual monitor setup (2 separate screens driven by 2 graphics cards)

How would I go about getting conky to appear on the 2nd screen?

eberndl
May 19th, 2008, 11:41 PM
Hi, I'm having some slight problems, I've been following the instructions for this tutorial (but slightly out of order).

Everything seems to be good, but when I did that big ./configure, I think it didn't do everything it was supposed to...

The last lines are:

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

and then when I went to the "make" line... I got

lizz@lizz-desktop:~$ gedit /home/lizz/.conkyrc
lizz@lizz-desktop:~$ make
make: *** No targets specified and no makefile found. Stop.

I realise it's a n00bie question, but can anyone help with either of these??

Thanks!!!

zmjjmz
May 20th, 2008, 02:51 PM
I believe conky is in the repos, no need to compile it.
sudo apt-get install conky

signseeker
May 20th, 2008, 07:46 PM
I've got a dual monitor setup (2 separate screens driven by 2 graphics cards)

How would I go about getting conky to appear on the 2nd screen?

Found this on the web, and it works like a charm,



Thriving with two monitors

If there are particular programs you want to start automatically when you log in, do the following:

1. Create a start-up script:
1. Create a file called startup.sh in your home directory.
2.

In startup.sh, set the first display and type in the applications you want to start there. Then, set the second display and type in the applications you want to start on that monitor. You may want to put the "intrusive" applications (email, IRC) on the secondary monitor.

Here is an example start-up script for a dual-independent display (that is, on in which you specify either DISPLAY=:0.0 or DISPLAY=:0.1):

# Applications on the left monitor
export DISPLAY=:0.1
evolution&
xchat&

# Applications on the right monitor
export DISPLAY=:0.0
firefox&
gnome-terminal&
gaim&

3. Make startup.sh executable:

eberndl
May 20th, 2008, 11:15 PM
zmjjmz, thanks. I thought that I'd tried that before I did the self-compile, but I must have done something wrong the first time.

Th3Professor
May 21st, 2008, 11:35 PM
"find the section titled Section "Module", and add
Code:
Load "dbe"
"

Okay... I went into xorg.conf and didn't see "Module"... I'm assuming that's for the old xorg config files. My new xorg.conf (Ubuntu 8.04) is really short and to the point:

Section "Device"
Identifier "Configured Video Device"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection

That's ommitting the keyboard and mouse stuff.

So can I just add the Load "dbe" line within the "Monitor" section or maybe the "Screen" section?

My conky is not flickering every second or every single time it refreshes something within its "window", like the CPU bar or the DL/UL graphs... but rather, every few minutes the entire conky flickers - even when behind other windows, causing a flicker within other applications (on top of it).

Would the "dbe" line even stop that flicker?
?

citakis
May 22nd, 2008, 01:41 PM
thank you very much for the help. The article was amazing. Very good work

jharkn
May 25th, 2008, 10:17 AM
Great howto :)

One problem though, I don't seem to be able to get conky to run on startup, I have to run it from the terminal each time. Any idea why this is? I followed the instructions here but it still doesn't work...

Fenris_rising
May 25th, 2008, 03:29 PM
great tut lovely implementation on the desktop. but i have one problem!
cpu temp doesnt work with the acpitemp argument. i have read almost every page of this post and tried all the variations of the cpu temp text but to no avail. my M/B does use temp probes as under xp i had the ASUS monitoring software displaying the info. currently i have on my top bar the desktop all 3 HDD temps (this uses HDDTEMP) and the cpu core temp which uses the (kernel i2c sensors (hwmon). can anyone give me the nudge in the right direction. ive managed to add a few lines myself and adjust the code for my HDD id codes and my wireless lan so im not entirely stupid.........i think.

hufferd
May 25th, 2008, 05:51 PM
I had this some place else but moved it here in hope that I may get help

Conky Help
Im not sure if this is posted in the right place

But I installed Conky .. using this tutorial here

Everything is working but ......

the conky window even though it appears to be on the desk top it covers up everything

ie I can see the desk top surface but not any open windows behind it


any
ideas?

Old Marcus
May 25th, 2008, 08:20 PM
Hmm, it loads up when I log in, then when my desktop background appears, it disappears.

I try and run it in the terminal and get this:
Conky: can't load font 'arial'
Conky: statfs '/media/hda1': No such file or directory
Conky: statfs '/media/hdb3': No such file or directory
Conky: desktop window (12000bc) is subwindow of root window (1a5)
Conky: window type - override
Conky: drawing to created window (3a00003)
Conky: drawing to double buffer
Conky: statfs '/media/hdb3': No such file or directory
Conky: statfs '/media/hda1': No such file or directory

Did I do something wrong here? could it be that this guide isn't compatible with gutsy? I used the OP guide so...

EDIT: No matter, it seems to be running fine now. Any idea how the change the text colour though? it's a bit invisible against my background...

signseeker
May 25th, 2008, 10:53 PM
Great howto :)

One problem though, I don't seem to be able to get conky to run on startup, I have to run it from the terminal each time. Any idea why this is? I followed the instructions here but it still doesn't work...

What desktop environment are you running?

signseeker
May 25th, 2008, 10:57 PM
Hmm, it loads up when I log in, then when my desktop background appears, it disappears.

I try and run it in the terminal and get this:
Conky: can't load font 'arial'
Conky: statfs '/media/hda1': No such file or directory
Conky: statfs '/media/hdb3': No such file or directory
Conky: desktop window (12000bc) is subwindow of root window (1a5)
Conky: window type - override
Conky: drawing to created window (3a00003)
Conky: drawing to double buffer
Conky: statfs '/media/hdb3': No such file or directory
Conky: statfs '/media/hda1': No such file or directory

Did I do something wrong here? could it be that this guide isn't compatible with gutsy? I used the OP guide so...

EDIT: No matter, it seems to be running fine now. Any idea how the change the text colour though? it's a bit invisible against my background...


The text colour needs to be put in after 'TEXT'

for example -

TEXT

${color #00ff00}${time %A, %d %B}${alignr}${alignr}${time %T}

${color #00ff00}System:
${color #00ff00}$nodename ${alignr}linux-$kernel

${color #00ff00} Uptime:${color #7f8ed3} $uptime ${color #00ff00}- Load:${color #7f8ed3} $loadavg
${color #00ff00} CPU Frequency:${color #7f8ed3} $freq_dyn_g ${color #00ff00} Maximum:${color #7f8ed3} $freq_g

So basically, pick a colour you like, and start playing :)

jharkn
May 26th, 2008, 04:53 AM
What desktop environment are you running?

Gnome (with compiz-fusion if that has any effect, the conky process isn't in the system monitor though so I don't think that it's just been hidden by some special effect or other).

Fenris_rising
May 26th, 2008, 07:39 AM
hi all

well it seems that half my problem was lm_sensors wasnt installed. so i have downloaded the tar file and installed it.........what do i do now. ive been trawling thru my file system trying to find anything that will give me a clue, same with the interweb. trouble is im not fluant in program language. i have a vague idea what certain things mean but not a clue how to implement it. in terminal the output of 'sensors' is;

k8temp-pci-00c3
Adapter: PCI adapter
Core0 Temp: +53.0°C

other than that its abject failure. can anyone instruct me in the dark art of getting the cpu temp going.

ive just managed to run the lm sensor detect program and its says i have w83627ehf sensor and k8temp sensor other than that im still going round in circles.

Th3Professor
May 26th, 2008, 09:58 AM
Questions below...
"find the section titled Section "Module", and add
Code:
Load "dbe"
"

Okay... I went into xorg.conf and didn't see "Module"... I'm assuming that's for the old xorg config files. My new xorg.conf (Ubuntu 8.04) is really short and to the point:

Section "Device"
Identifier "Configured Video Device"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection

That's ommitting the keyboard and mouse stuff.

So can I just add the Load "dbe" line within the "Monitor" section or maybe the "Screen" section?

My conky is not flickering every second or every single time it refreshes something within its "window", like the CPU bar or the DL/UL graphs... but rather, every few minutes the entire conky flickers - even when behind other windows, causing a flicker within other applications (on top of it).

Would the "dbe" line even stop that flicker?

Green_Star
May 26th, 2008, 02:11 PM
Gnome (with compiz-fusion if that has any effect, the conky process isn't in the system monitor though so I don't think that it's just been hidden by some special effect or other).

If you are running conky using startup, trying running it after 10-15 seconds. Like

sleep 20;conky

I am not sure about above syntax in startup but what I did is a created a shell program with two commands first one is sleep and second one is to run conky. If still not running then try catching conky log by doing something like "conky > /home/user/conkylog.log" and check the log after you logged in.

Fenris_rising
May 26th, 2008, 06:27 PM
hi all
well ive got my conky showing the temp at last. big thanks to the poster who guided me. now my next question is really going to show me up as a noob. but here goes. the auto start string, i understand (starts conky at boot but with a delay so its drwn ontop of the background). ok i get that its very simple. my problem is i have no idea how to start. what app do i need to open up to type the code into. :oops: any one do an idiots guide please, ive been at this all day and ive also fixed a mates PC and installed 7.10 on it. so i have transferred my conkyrc file over to it and id like to just add the icing to the cake.

tigersrock
May 26th, 2008, 10:27 PM
i have the "show desktop" option disabled in nautilus (i can't see icons on desktop) to be able to use different wallpapers on each side of the cube using compiz fusion.

Conky works fine but the background of its window remains the same on each side and i really don't know much about this so....is there a way to get conky with different window background in each side?. I'm on ubuntu hardy.

Th3Professor
May 26th, 2008, 10:54 PM
i have the "show desktop" option disabled in nautilus (i can't see icons on desktop) to be able to use different wallpapers on each side of the cube using compiz fusion.

Conky works fine but the background of its window remains the same on each side and i really don't know much about this so....is there a way to get conky with different window background in each side?. I'm on ubuntu hardy.

You mean the background (wallpaper) image? A different image on each workspace?

I second that, I'm curious to know how to get a different background on each workspace too. :)

EDIT:
Correction - I'm referring to backgrounds, in general, not specifically the background behind conky.

Fenris_rising
May 27th, 2008, 12:40 PM
ok im ](*,) ive tried every variation of the conky start file and i cant get it to start automatically. im running Hrdy Heron 8.04. this is what im doing.

sudo gedit ~/.conky_start.sh...........to create the file in home or
sudo gedit /home/fenris/.conky_start.sh......a variation of the above.

in the resulting file i put

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


save it and then do this

chmod a+x .conky_start.sh.....to grant permission and allow as an exe or
chmod 755 ~/.conky_start.sh.... a variation of the above.

then i do this

go to System>Preferences>Sessions. and add

./conky_start.sh

so far its failed. what am i doing wrong? and i have checked that the file is set to run.

heeeeeeeeeeeeelp! :confused:

RichJacot
May 27th, 2008, 01:29 PM
Does it start properly or as expected if you just type conky at the command line? If so, try adding the path to it in your start script.

Fenris_rising
May 27th, 2008, 01:46 PM
hi there

yes in terminal 'conky' starts it know problem. at your suggestion i have no done this;
#!/bin/bash
sleep 60 &&
/home/fenris/.conky_start.sh

just going to try it, fingers crossed

Fenris_rising
May 27th, 2008, 01:55 PM
failed!!!!!!!!!! blast!!!!!! it must be me

RichJacot
May 27th, 2008, 01:58 PM
If that doesn't help I'll walk through how I have mine configured.

Fenris_rising
May 27th, 2008, 02:14 PM
please do. its a small thing to want but it will all help with the learning curve.

RichJacot
May 27th, 2008, 02:28 PM
Okay here we go....

My startup script looks like: (which may be overkill, but it works)


#!/bin/sh

# conky startup script
sleep 10
if pidof conky | grep [0-9] > /dev/null
then
exec killall conky
else
exec conky

fi


Notice the 10 second sleep.


In my sessions I have a conky startup that has this in the command section:

/usr/local/bin/conky.sh

which is where my startup is located (not in my home dir.).

I have nothing other than this on a fresh 64bit install of 8.04. Let me know if this helps.

Rich

jjgomera
May 27th, 2008, 02:49 PM
#!/bin/bash
sleep 60 && conky;


maybe that semicolon, remove it and retry

Fenris_rising
May 27th, 2008, 03:15 PM
lololol this is so frustrating. every one else can do it except me!!!!!
didnt work on both counts. can you run me through the actual procedure of opening whatever it is you write the bash script in, right through to implementing it from session. i must be doing something wrong somewhere. i know its been written about extensively but not for a thick b$%^&*( like me.

RichJacot
May 27th, 2008, 03:21 PM
Lets try something else first.

At the end of your session startup command line add: > /tmp/conky.out 2>&1

So your session startup command should look like this:

/home/fenris/.conky_start.sh > /tmp/conky.out 2>&1

Lets see what output that gives you. Once you log back in cat /tmp/conky.out and let me know what you get.

BTW: your just doing a ctrl backspace and not rebooting to test this, right? ;-)

Fenris_rising
May 27th, 2008, 03:50 PM
gentlemen i am a fish of the first order! the tmp/ string produced a no such file or directory..............so i went back to the session string to check id added it properly which i had...........however when you notice that .sh has been typed in asssss..................ch oh god im such a pratt!!!! your thanks icons have been ticked and im now going to remove my worthless carcus to the back garden and have myself shot through the lungs.
thankyou for all you time and effort in helping me get this sorted.

RichJacot
May 27th, 2008, 04:29 PM
Okay. In a terminal window in your home dir.


rm .conky_start.sh
vi .conky_start.sh


Copy and past my conky.sh from my other post into that vi session (don't forget to 'esc i' for insert mode before pasting). You can really use any editor you like here though. Then:



chmod 777 .conky_start.sh



Yes, 777 for now can can turn it back later.

Now in System -> Preferences -> Sessions

remove your current startup and then add a new one with the command:



/home/fenris/.conky_start.sh



The name and comment fields can be whatever you'd like.

Ctrl-backspace and log back in and it "should" work.

Good Luck!

RichJacot
May 28th, 2008, 09:54 AM
Hello,

After a fresh install of 64bit 8.04 with my same .conkyrc file my calendar is cut off.

http://www.flickr.com/photos/39672899@N00/2531248800/

Here's the end of my .conkyrc file and my calendar.sh.


.conkyrc:

$color$stippled_hr${if_running amarokapp}
${color}${alignc}Now Playing${color white}
${alignc}${execi 10 /usr/local/bin/amarok_conky.sh artist}
${alignc}${execi 10 /usr/local/bin/amarok_conky.sh title}
${execibar 2 /usr/local/bin/amarok_conky.sh progress}
${alignc}"${execi 10 /usr/local/bin/amarok_conky.sh album}"
${alignc}${execi 10 /usr/local/bin/amarok_conky.sh year} - ${color white}${alignc}${execi 10 /usr/local/bin/amarok_conky.sh genre}
$endif
${color #0774FC}CALENDAR ${hr 2}$color
${color #FFFFFF}${execi 300 /usr/local/bin/calendar.sh}


calendar.sh:

cal | awk 'NR>1' | sed -e 's/ / /g' -e 's/[^ ] /& /g' -e 's/..*/ & /' -e 's/ \('`date | awk '{print $3}'`'\) /\['`date | awk '{print $3}'`'\]/'



Here is what I get when I run calendar.sh via cmd line.


borg:/usr/local/bin$ ./calendar.sh
Su Mo Tu We Th Fr Sa
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 [28] 29 30 31



Any ideas why the end of my calendar is being cut off now?

jjgomera
May 28th, 2008, 10:21 AM
if you count the character of calendar in conky, you will see conky show around 128, you must add this line at the beginning of conkyrc to modify that:

text_buffer_size=256

RichJacot
May 28th, 2008, 10:46 AM
Thank you! Minus the = sign it worked great.

It appears that this was changed on 3/19 according to the change log.

Thanks again!

Old Marcus
May 28th, 2008, 05:46 PM
Odd, when compiz isn't running, the conky interface is hidden, but when compiz is running, conky appears over everything I open, including the top panel. Any help?

If needed, I can provide a screenshot.

dccrens
May 29th, 2008, 10:38 AM
Has anyone used the "short_units" setting to get G vice GiB (Gigabytes) output? I have tried it but it doesn't seem to work. I tried "short_units on" but no joy...

Nessa
May 29th, 2008, 01:03 PM
Any idea why conly says I have zero swap? I know for a fact that I have 1 gig. Just upgraded to 8.04.

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

jjgomera
May 29th, 2008, 01:33 PM
go to gnome-system-monitor and check your real swap

Fenris_rising
June 1st, 2008, 05:03 PM
hi all
heres my conky script again. i seem to have been able to select an alternate text however it know causes the PID, CPU, and MEM lists to wave in reaction to the name processors no longer remaining contracted, i assume this is just down to the larger font. ive tried to just space out the code but i assume im missing something basic. any one know how to cure this.

# 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

# Update interval in seconds
update_interval 3.0

# Minimum size of text area
minimum_size 300 5

# Draw shades?
draw_shades no

# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
# Xft font when Xft is enabled
xftfont Sans:size=9

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, purple
default_color purple

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 red}SYSTEM ${hr 1}$color
$nodename $sysname $kernel on $machine

${color red}Time: ${color purple}${time %k:%M:%S}
${color red}Date: ${color purple}${time %A, %d %B}

${color red}CPU ${hr 1}$color
${color purple}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'}
${freq}MHz Load: ${loadavg} Temp: ${execi 2 cat /sys/bus/pci/drivers/k8temp/000*/temp1_input | cut -c1,2} C
${cpubar 7}$color
${cpugraph C11B17 571B7e}
ATI Driver Version:$alignr${execi 3600 fglrxinfo | tail -n2 | tail -c19}

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}
${top name 5}${top pid 5} ${top cpu 5} ${top mem 5}
${top name 6}${top pid 5} ${top cpu 6} ${top mem 6}
${top name 7}${top pid 5} ${top cpu 7} ${top mem 7}

${color red}MEMORY / DISK ${hr 1}$color
RAM: $memperc% ${membar 7}$color
Swap: $swapperc% ${swapbar 7}$color

Root: ${fs_free_perc /}% ${fs_bar 7 /}$color
sdb1: ${fs_free_perc /media/sdb1}% ${fs_bar 7 /media/sdb1}$color
sdc1: ${fs_free_perc /media/sdc1}% ${fs_bar 7 /media/sdc1}

${color red}NET ${hr 1}$color
${color red}Total:${color purple} ${totaldown wlan0}${color red} Down${color purple} ${totalup wlan0}${color red} Up

${color red}Wireless ${hr 1}$color
${color red}Down:${color purple} ${downspeedgraph wlan0 20,100 C11B17 571B7e}${color red} Up:${color purple} ${upspeedgraph wlan0 20,100 C11B17 571B7e} ${wireless_bitrate wlan0}
${color red}ESSID:${color red} ${wireless_essid wlan0}

${color red}Ethernet ${hr 1}$color
${color red}Down:${color purple} ${downspeedgraph eth1 20,100 C11B17 571B7e}${color red} Up:${color purple} ${upspeedgraph eth1 20,100 C11B17 571B7e} 100Mb/s

${color red}AMAROK ${hr 1}$color
${if_running amarokapp}

${voffset -3}${color red}Artist:$alignc${if_empty execi 10 dcop amarok player artist}$alignc${color purple}Music Stopped $else${color purple}${execi 10 dcop amarok player artist}$endif

${voffset -3}${color red}Title:$alignc${color purple}${execi 10 dcop amarok player title}

${voffset -3}${color red}Time:$alignc${color purple}${execi 1 dcop amarok player currentTime} / ${execi 10 dcop amarok player totalTime}

${voffset -3}${color red}Album:$alignc${color purple}${execi 10 dcop amarok player album}$endif${font }

jjgomera
June 1st, 2008, 05:10 PM
you can prove with:

${top name 1}${alignr}${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2}${alignr}${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3}${alignr}${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4}${alignr}${top pid 4} ${top cpu 4} ${top mem 4}
${top name 5}${alignr}${top pid 5} ${top cpu 5} ${top mem 5}
${top name 6}${alignr}${top pid 5} ${top cpu 6} ${top mem 6}
${top name 7}${alignr}${top pid 5} ${top cpu 7} ${top mem 7}

Fenris_rising
June 1st, 2008, 05:19 PM
ah that crossed my mind lol. thanks very much

h33tman
June 3rd, 2008, 12:53 PM
I'm sure this was probably covered already, I was searching through the pages, and it seems everyone but me knows how to do this.

How do I make the script executable? I'm running compiz on hardy, but I am not sure how to make that script executable for the boot.

Fenris_rising
June 3rd, 2008, 01:11 PM
in terminal type:

sudo gedit /home/yourname/.conky_start.sh to create a document notice the full stop at the front of conky! add the following code and save it.

#!/bin/bash

sleep 20 && conky; 20 is the time in seconds from the login to conky being drawn. dont go any less than 10.

in terminal type:

chmod a+x .conky_start.sh to make it executable.

go to sessions under system > preferences > session and 'add' then;

name: conky
command: /home/yourname/.conky_start.sh (notice the fullstop @ front of conky!)

and close. itll boot next time you restart.

h33tman
June 3rd, 2008, 01:46 PM
Thanks! I'll definitely give it a go when I get home. I kept struggling on the making executable last night. Thanks for the help

Fenris_rising
June 3rd, 2008, 02:01 PM
sorry dont forget to sudo the line:

sudo chmod a+x .conky_start.sh to make it executable

@jj i did the {alignr} but the string length of the {top name} seems to be causing the ripple in the columns which are well to the right as they should be. it seems the longer the output of the name string the following info in the same lines is pulled and pushed to the string names in reaction to the lengths.

cl0ckwork
June 3rd, 2008, 02:15 PM
another great conky thread!
sadly i have "borrowed" a few lines of code again :lolflag:

Fenris_rising, im borrowing from you mostly, ive been looking for a delayed start and im hoping this will work.

heres my code and screenshot for everyone else

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

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

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

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont Kochi Gothic:size=8

# Text alpha when using Xft
xftalpha .8

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

# Update interval in seconds
update_interval 3

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

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

# Minimum size of text area
minimum_size 230 5
maximum_width 230

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

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

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

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

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

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

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


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



# blue color ${color 246eb5}

# stuff after 'TEXT' will be formatted on screen

TEXT
${color goldenrod}SYSTEM ${hr 2}$color
Ubuntu (7.10) Gutsy Gibbeon
${time %B%e, %G} ${alignr}Uptime: $uptime
${color goldenrod}POWER ${hr 2}$color
Adapter Stat: ${acpiacadapter}
Battery Info: ${battery}
${color goldenrod}NETWORK ${hr 2}$color
Down: ${downspeedf wlan0} Kb/s ${alignr}${downspeedgraph wlan0 15,130}
Up: ${upspeedf wlan0} Kb/s ${alignr}${upspeedgraph wlan0 15,130}
Bitrate: ${wireless_bitrate wlan0} ${alignr}Wireless: ${wireless_essid wlan0}
${color goldenrod}CORE ${hr 2}$color
${exec cat /proc/cpuinfo | grep 'model name' | sort -u | cut -c 18-59}
CPU1: ${cpu cpu0}% ${freq} MHz$color ${alignr}CPU2: ${cpu cpu1}% ${freq} MHz$color
${cpubar cpu0 5,110} ${alignr}${cpubar cpu1 5,110}
RAM: $memperc% ${mem} / ${memmax}$color
${membar 5,110} ${alignr}Temp:$color ${acpitempf} F
${color goldenrod}MEMORY ${hr 2}$color
Root/ ${alignr}${fs_used /}/${fs_size /}
${fs_bar 5,120 /}
Windows ${alignr}${fs_used /media/Windows}/${fs_size /media/Windows}
${fs_bar 5,120 /media/Windows}
Data ${alignr}${fs_used /media/sdb1}/${fs_size /media/sdb1}
${fs_bar 5,120 /media/sdb1}
${if_running amarokapp}
${color goldenrod}AMAROK ${hr 2}$color

${voffset -3}${color goldenrod}Artist:$alignc${if_empty execi 10 dcop amarok player artist}$alignc${color wheat1}Music Stopped $else${color wheat1}${execi 10 dcop amarok player artist}$endif

${voffset -3}${color goldenrod}Title:$alignc${color wheat1}${execi 10 dcop amarok player title}

${voffset -3}${color goldenrod}Time:$alignc${color wheat1}${execi 1 dcop amarok player currentTime} / ${execi 10 dcop amarok player totalTime}

${voffset -3}${color goldenrod}Album:$alignc${color wheat1}${execi 10 dcop amarok player album}$endif${font }
${color goldenrod}${hr 2}$color

Fenris_rising
June 3rd, 2008, 05:12 PM
:lolflag::lolflag: i think everyone starts by nicking code, thats the beauty of conky. im currently trying to tweak it on my laptop as that has dapper drake on it and amarok 1.3.......the Amarok code needs tweaking somehow to suit conky 1.4.2. unless i can get conky 1.5.1 to compile..........and thats a struggle. still my PC looks bloody great hehehe
dont ya just love ubuntu!

TWeerts
June 3rd, 2008, 08:37 PM
i have a great layout, but i cant seem to cange the fonts. how do you cange the fonts? font size?

Fenris_rising
June 3rd, 2008, 08:49 PM
make sure you change:
'use_xft no' to
'use_xft yes'

replace 'font arial' with:
xftfont Sans:size=9

i look in the font dropdown list of open office currently im using:

xftfont Purisa:size=8............i would like to try the bold, underline and italic's to if thats possible.

TWeerts
June 5th, 2008, 10:25 PM
for some reason, my graphix driver was turned off. i turned it back on, and restarted. now, when i run conky , it takes a good 45 seconds for it to appear, and refreshes after another 45 seconds. any help?

i tried another restart as well

HpZ
June 7th, 2008, 09:09 AM
i installed it but how do I get it to stay to the desktop and not on top of other windows?

cl0ckwork
June 7th, 2008, 12:26 PM
i installed it but how do I get it to stay to the desktop and not on top of other windows?

what does your code look like?

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

also what worked for me is setting up a bash script for conky to start after x amount of seconds

#!/bin/bash

sleep 20 && conky;

save it as something like .conky_startup, make it executable, and add it to your startup programs in system->pref->sessions

Th3Professor
June 8th, 2008, 11:54 AM
."find the section titled Section "Module", and add
Code:
Load "dbe"
"

Okay... I went into xorg.conf and didn't see "Module"... I'm assuming that's for the old xorg config files. My new xorg.conf (Ubuntu 8.04) is really short and to the point:

Section "Device"
Identifier "Configured Video Device"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection

That's ommitting the keyboard and mouse stuff.

So can I just add the Load "dbe" line within the "Monitor" section or maybe the "Screen" section?

My conky is not flickering every second or every single time it refreshes something within its "window", like the CPU bar or the DL/UL graphs... but rather, every few minutes the entire conky flickers - even when behind other windows, causing a flicker within other applications (on top of it).

Would the "dbe" line even stop that flicker?

How do I stop the flickering?

The flickering occurs every minute or couple/few minutes.

Raistlin82
June 8th, 2008, 04:33 PM
another great conky thread!
sadly i have "borrowed" a few lines of code again :lolflag:

Fenris_rising, im borrowing from you mostly, ive been looking for a delayed start and im hoping this will work.

heres my code and screenshot for everyone else

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

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

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

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont Kochi Gothic:size=8

# Text alpha when using Xft
xftalpha .8

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

# Update interval in seconds
update_interval 3

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

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

# Minimum size of text area
minimum_size 230 5
maximum_width 230

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

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

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

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

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

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

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


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



# blue color ${color 246eb5}

# stuff after 'TEXT' will be formatted on screen

TEXT
${color goldenrod}SYSTEM ${hr 2}$color
Ubuntu (7.10) Gutsy Gibbeon
${time %B%e, %G} ${alignr}Uptime: $uptime
${color goldenrod}POWER ${hr 2}$color
Adapter Stat: ${acpiacadapter}
Battery Info: ${battery}
${color goldenrod}NETWORK ${hr 2}$color
Down: ${downspeedf wlan0} Kb/s ${alignr}${downspeedgraph wlan0 15,130}
Up: ${upspeedf wlan0} Kb/s ${alignr}${upspeedgraph wlan0 15,130}
Bitrate: ${wireless_bitrate wlan0} ${alignr}Wireless: ${wireless_essid wlan0}
${color goldenrod}CORE ${hr 2}$color
${exec cat /proc/cpuinfo | grep 'model name' | sort -u | cut -c 18-59}
CPU1: ${cpu cpu0}% ${freq} MHz$color ${alignr}CPU2: ${cpu cpu1}% ${freq} MHz$color
${cpubar cpu0 5,110} ${alignr}${cpubar cpu1 5,110}
RAM: $memperc% ${mem} / ${memmax}$color
${membar 5,110} ${alignr}Temp:$color ${acpitempf} F
${color goldenrod}MEMORY ${hr 2}$color
Root/ ${alignr}${fs_used /}/${fs_size /}
${fs_bar 5,120 /}
Windows ${alignr}${fs_used /media/Windows}/${fs_size /media/Windows}
${fs_bar 5,120 /media/Windows}
Data ${alignr}${fs_used /media/sdb1}/${fs_size /media/sdb1}
${fs_bar 5,120 /media/sdb1}
${if_running amarokapp}
${color goldenrod}AMAROK ${hr 2}$color

${voffset -3}${color goldenrod}Artist:$alignc${if_empty execi 10 dcop amarok player artist}$alignc${color wheat1}Music Stopped $else${color wheat1}${execi 10 dcop amarok player artist}$endif

${voffset -3}${color goldenrod}Title:$alignc${color wheat1}${execi 10 dcop amarok player title}

${voffset -3}${color goldenrod}Time:$alignc${color wheat1}${execi 1 dcop amarok player currentTime} / ${execi 10 dcop amarok player totalTime}

${voffset -3}${color goldenrod}Album:$alignc${color wheat1}${execi 10 dcop amarok player album}$endif${font }
${color goldenrod}${hr 2}$color



Hi all, just been looking at the above and tried it out, I like it, been playing around with Conky trying to see what I like and don't, on that note can anyone tell me how I can change the temp measurement from Fahrenheit to Celsius? Cos i have no idea about degrees f, was always brought up to know degrees c:)

Raistlin82
June 8th, 2008, 06:19 PM
Figured it out, was easier than I thought it would be and I feel a bit stupid now, still i'm only learning!!! All I had to do was insert ${acpitemp} Celsius rather than ${acpitempf} F

cl0ckwork
June 8th, 2008, 08:34 PM
Figured it out, was easier than I thought it would be and I feel a bit stupid now, still i'm only learning!!! All I had to do was insert ${acpitemp} Celsius rather than ${acpitempf} F

:)
everyones gotta start somewhere
also check these links for reference
the first one is for the settings before TEXT, second one is for everything after
http://conky.sourceforge.net/config_settings.html
http://conky.sourceforge.net/variables.html

davethomas691
June 9th, 2008, 12:33 PM
Hey all, I've had a look around to see if anyone else has had this problem and I haven't found anything like it yet. When I run Conky, the pseudo transparency is off. It appears as though it took the background from a few pixels off in each direction and set that as the Conky background. Check out the screenshot. The problem is easiest to see at the top near the System and CPU sections

Here is my .conkyrc


background yes
font Zekton:size=8
xftfont Zekton:size=8
use_xft yes
xftalpha 0.1
update_interval 0.3
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
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 256 5
maximum_width 300
default_color d7d7d7
default_shade_color black
default_outline_color black
alignment top_right
gap_x 2
gap_y 0
no_buffers yes
cpu_avg_samples 2
override_utf8_locale yes
uppercase no # set to yes if you want all text to be in uppercase
use_spacer no

TEXT




${font Zekton:style=Bold:pixelsize=24}${alignc}${time %l:%M:%S %p}${font Zekton:size=8}
SYSTEM ${hr 1 }

CPU ${alignc} ${freq_dyn}MHz / ${acpitempf}F ${alignr}(${cpu cpu1}%)
${cpubar 4 cpu1}
${cpugraph}
RAM ${alignr}$mem / $memmax ($memperc%)
${membar 4}
SWAP ${alignr}$swap / $swapmax ($swapperc%)
${swapbar 4}

Processes: ${alignr}$processes ($running_processes running)

Highest CPU $alignr CPU% MEM%
${top name 1}$alignr${top cpu 1} ${top mem 1}
${top name 2}$alignr${top cpu 2} ${top mem 2}
${top name 3}$alignr${top cpu 3} ${top mem 3}

Load: ${alignr}$loadavg

FILESYSTEM ${hr 1}${color}

Root: ${alignr}${fs_free /} / ${fs_size /}
${fs_bar 4 /}
Home: ${alignr}${fs_free /home} / ${fs_size /home}
${fs_bar 4 /}
Storage: ${alignr}${fs_free /media/storage} / ${fs_size /media/storage}
${fs_bar 4 /media/storage}

NETWORK ${hr 1}${color}

Down ${downspeed eth0} k/s ${alignr}Up ${upspeed eth0} k/s
${downspeedgraph eth0 24,128} ${alignr}${upspeedgraph eth0 24,128}
Total ${totaldown eth0} ${alignr}Total ${totalup eth0}

WEATHER${hr 1}${color}

${color}Location: ${color ffffff}Orlando, FL$color

${color #B3B3B3}${execi 3600 python /home/davidthomas/.scripts/conkyForecast.py --location=32816 --imperial --template=/home/davidthomas/.scripts/conkyForecast2.template}
${alignr}${voffset -130}${offset -70}${font weather:size=45}${color}${execi 3600 python ~/.scripts/conkyForecast.py --location=32816 --startday=0 --datatype=WF}$font$color
${alignr}${voffset 5}${offset -70}${font weather:size=45}${color}${execi 3600 python ~/.scripts/conkyForecast.py --location=32816 --startday=0 -n --datatype=WF}$font$color


${voffset 7}${color}3 day forecast
${voffset 7}${color}${offset 12}${execi 3600 python ~/.scripts/conkyForecast.py -w --location=32816 --startday=1 --endday=3 --datatype=DW --spaces=27}
${font weather:size=44}${color}${offset 12}${execi 3600 python ~/.scripts/conkyForecast.py --location=32816 --startday=1 --endday=3 --datatype=WF} $font$color
${color e0e0e0}${execi 3600 python /home/davidthomas/.scripts/conkyForecast.py --location=32816 --imperial --spaces=27 --template=/home/davidthomas/.scripts/conkyForecast.template}

Any help would be greatly appreciated.

Sealbhach
June 10th, 2008, 04:56 AM
OK, I have a reasonably good conky now....



.

Green_Star
June 10th, 2008, 05:38 AM
Hey all, I've had a look around to see if anyone else has had this problem and I haven't found anything like it yet. When I run Conky, the pseudo transparency is off. It appears as though it took the background from a few pixels .................

Can I see your templates, please. I mean

/home/davidthomas/.scripts/conkyForecast.template
/home/davidthomas/.scripts/conkyForecast2.template

cl0ckwork
June 10th, 2008, 01:09 PM
Hi,

I copied in the config from the first page and it looks nice but...

It stays on top, even when I'm in Firefox, it's on top, blocking my view.

EDIT:

I think I missed the script to start Conky after Compix starts



in

.conky_start.sh


Would that be the reason?


.

thats what happened with mine. it doesnt have to be 60 seconds though. 20 worked fine for me but nothing less than 10

Camuso21
June 16th, 2008, 06:09 PM
Hey I'm new to this whole Linux dance, and I really want to get conky working and am currently stuck at steps three and four, this is the results I get in terminal when I try to run steps three and four, its probably a really simple mistake but I'm making it anyway.

:~$ gedit /home/bob/.conkyrc
Fontconfig error: "~/.fonts.conf", line 1: XML declaration not well-formed

** (gedit:24734): WARNING **: Hit unhandled case 1 (File not found) in gedit_unrecoverable_saving_error_message_area_new.

raul_
June 16th, 2008, 06:11 PM
Well, there's something wrong with your ~/.fonts file, but that shouldn't compromise this guide. Just proceed as if it was nothing.

Camuso21
June 16th, 2008, 06:19 PM
Wow, I'm so depressed at how miserable of a mistake that was, anyways I figured it out.

Camuso21
June 16th, 2008, 06:50 PM
New problems, conky doesnt appear to be transparent, when I start a new session it appears to be above all of the windows. My other problems are probably easy, the first is that I can't find the module section of the /etc/X11/xorg.conf file. And finally could someone go into a little detail about creating a startup script (the last step).

davethomas691
June 16th, 2008, 11:26 PM
Can I see your templates, please. I mean

/home/davidthomas/.scripts/conkyForecast.template
/home/davidthomas/.scripts/conkyForecast2.template

A couple of restarts and a new script to start conky fixed things up for me. Thanks for being willing to help.

cl0ckwork
June 16th, 2008, 11:53 PM
New problems, conky doesnt appear to be transparent, when I start a new session it appears to be above all of the windows. My other problems are probably easy, the first is that I can't find the module section of the /etc/X11/xorg.conf file. And finally could someone go into a little detail about creating a startup script (the last step).

#!/bin/bash
sleep 20 && conky

save that as .startconky,sh or something then run

chmod u+x ~/.startconky

to make it exectutable

then add the .startconky.sh to your sessions menu and you are all set
the sleep 20 section should also sove the problem of having it on top of other windows

jokermatt999
June 19th, 2008, 12:15 AM
I'm kind of a linux newbie here, but I like my Conky rc file. I know a few of the scripts I use with it could be cleaned up, but they work for now.

I was wondering, however, if there was a way to set the scale of the upspeed graph to the downspeed. I couldn't find a way to pass the downspeed variable through conky, and I searched in vain for an easy way to find it through shell scripting, so I was wondering if anyone here could show me a solution.

Anyway, screenshot, conkyrc, and scripts below.

http://i32.tinypic.com/157q60.png

Edit: img tags + fullscreenshot = bad idea

cl0ckwork
June 19th, 2008, 10:54 AM
I'm kind of a linux newbie here, but I like my Conky rc file. I know a few of the scripts I use with it could be cleaned up, but they work for now.

I was wondering, however, if there was a way to set the scale of the upspeed graph to the downspeed. I couldn't find a way to pass the downspeed variable through conky, and I searched in vain for an easy way to find it through shell scripting, so I was wondering if anyone here could show me a solution.

how do you mean scale it? you can change the size of the graphs and bar sizes my adding variables after it
ex: ${downspeedgraph wlan0 15,130} or ${fs_bar 5,120 /}
where the first number is the height and second number is the length.

any other Q's feel free to ask

Th3Professor
June 19th, 2008, 11:41 AM
I'm kind of a linux newbie here, but I like my Conky rc file. I know a few of the scripts I use with it could be cleaned up, but they work for now.

I was wondering, however, if there was a way to set the scale of the upspeed graph to the downspeed. I couldn't find a way to pass the downspeed variable through conky, and I searched in vain for an easy way to find it through shell scripting, so I was wondering if anyone here could show me a solution.

Anyway, screenshot, conkyrc, and scripts below.

http://i32.tinypic.com/157q60.png

Edit: img tags + fullscreenshot = bad idea

Where'd ya get that pretty clock? :)

jokermatt999
June 19th, 2008, 12:16 PM
Oh, I already know how to set the size of a graph, what I wanted was the scale parameter. It makes the graph treat the number passed to it as the maximum. So if the scale for the downspeed_graph was 30, the graph would reach the top when it was 30kps or above. I want to set the scale of the upspeed to the downspeed, so the graphs will be proportional.

As for the clock, I believe I got it from the screenlets app. It's definitely my favorite clock app I've seen.

cl0ckwork
June 19th, 2008, 01:20 PM
Oh, I already know how to set the size of a graph, what I wanted was the scale parameter. It makes the graph treat the number passed to it as the maximum. So if the scale for the downspeed_graph was 30, the graph would reach the top when it was 30kps or above. I want to set the scale of the upspeed to the downspeed, so the graphs will be proportional.

As for the clock, I believe I got it from the screenlets app. It's definitely my favorite clock app I've seen.

ah :oops: i was looking into that a while ago.
but then i jsut gave up the graph all together :)

jokermatt999
June 19th, 2008, 07:10 PM
In the end, I just said screw it, and set the scale to both bars as 80. It doesn't have quite the effect I wanted, but I do like how I combined both bars into one.
I improved on the song bar code as well; it no longer gives an error when switching songs.

new graph code below:

${color black}${downspeedgraph wlan0 0000FF 0000FF 80}
${voffset -35}${color black}${upspeedgraph wlan0 FF0000 FF0000 80}

http://tinypic.com/view.php?pic=1zlrr6b&s=3

Edit: I've now made a script that uses Amarok's similarArtist function, checks if the suggestion is in my collection already (or a text file), and if not, adds them to a text file. Basically, its a music suggestions mine. :D

geezerone
June 24th, 2008, 10:14 AM
Once again, thank you for writing this great tutorial.

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

Nice program but same for me. Also transparancy doesn't work too.

Th3Professor
June 24th, 2008, 10:59 AM
i still get a flicker when conky does the refresh (every minute or couple minutes or something). . . i tried previous steps in removing the flicker but they don't work. so i removed conky. well, not deinstall... just stopped using it. bummer really, it's a pretty neat app. i wonder if torsmo works on this distro, tried it once before but had no luck with it.

cl0ckwork
June 24th, 2008, 11:20 AM
Nice program but same for me. Also transparancy doesn't work too.

are you using KDE?

geezerone
June 24th, 2008, 02:47 PM
Using Gnome.

kaivalagi
June 24th, 2008, 03:49 PM
Hi All,

I thought this was a good place to make mention my post, and get some feedback.

I have created a Google Calendar python script specifically for Conky, which uses the gdata api rather than the cli app talked about here. I've done this on the premise that it should be much more customizable than would otherwise be possible.

You can find the post here: http://ubuntuforums.org/showthread.php?t=837385

I would appreciate some feedback on the script and any suggestions for further functionality are welcome.

Key feature are:

Utilises the Google Calendar API.
Supports the use of a template to define the layout of each event output
Supports regional datetime formats, by way of system locales
Optional event limit so you can reduce the total output in Conky if you have lot's of events, events should be returned earliest first (needs testing)


I have already created a weather forecasting script for Conky in much the same manner, which has gone down well, and I hope the same can be the case for this one.

Cheers

Nullack
June 24th, 2008, 07:25 PM
Ive realised a strange issue. While compiling a program my cpu utilusation expectedly hit 100%, but my cpu top only showed a fraction in conky. Curiously so did top in the command line.

None of the processes add up to 100%, and its not by a little, but by a huge amount.

Whats going on here??? :confused:

kaivalagi
June 24th, 2008, 08:04 PM
Ive realised a strange issue. While compiling a program my cpu utilusation expectedly hit 100%, but my cpu top only showed a fraction in conky. Curiously so did top in the command line.

None of the processes add up to 100%, and its not by a little, but by a huge amount.

Whats going on here??? :confused:

Could it be an averaging thing? I know Conky can average out the CPU utilisation calculation, so if you have peaks and troughs, you'll see a lower %....

Just a guess....quite strange

Nullack
June 25th, 2008, 04:37 AM
Ive attached an archived screenshot showing the problem. Also my conkyrc. This is truly bizzare!

kaivalagi
June 25th, 2008, 09:14 AM
Ive attached an archived screenshot showing the problem. Also my conkyrc. This is truly bizzare!

Your conkyrc does include the cpu averaging option. The option is describde in the conky documentation as "cpu_avg_samples - The number of samples to average for CPU monitoring"

Try adding the following to see if things change:

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

Nullack
June 25th, 2008, 11:58 AM
There is something seriously wrong here. Ive now moved into top to better diagnose this problem as Conky behaves the same as top.

Simple test, compile something that takes awhile and see the user cpu load hit say 93% and the system cpu load ar 7%. In this condition I only see top show user processes of about 30% not 93%!

This is a default top run with no command line switches. I even confirmed that top is doing the default of sorting by cpu % - sort option K.

:confused::confused::confused::confused:

jjgomera
June 25th, 2008, 12:20 PM
Simple test, compile something that takes awhile and see the user cpu load hit say 93% and the system cpu load ar 7%. In this condition I only see top show user processes of about 30% not 93%!maybe this is the reason, can you trace while you are compiling top in a terminal and sudo top in another terminal?

i think conky only show user process, maybe compiling is root process

Nullack
June 25th, 2008, 01:05 PM
I launched make from my account not root though????

cl0ckwork
June 25th, 2008, 08:14 PM
heres my setup as of now, i will probably change it by next week

sys. info. (bottom left)
# set to yes if you want Conky to be forked in the background
background yes

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

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

# Use Xft?
use_xft yes

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

# Text alpha when using Xft
xftalpha 0.8

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

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,sticky,skip_taskbar,skip_pager
own_window_type override

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

# Minimum size of text area
minimum_size 250 5
maximum_width

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

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color black
color1 white #00FF00
color2 white #EEAA00
color3 white #9933FF

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

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

# Subtract file system buffers from used memory?
no_buffers yes

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

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

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

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



# blue color ${color 246eb5}

# stuff after 'TEXT' will be formatted on screen

TEXT
${font zekton:size=14} ${time %I:%M:%S}${font} ${goto 120}${font zekton:size=8}${exec cat /proc/cpuinfo | grep 'model name' | sort -u | cut -c 18-59} ${goto 360}CPU Temp: ${color orange}${acpitempf}°F${color}${font} ${goto 480} Quality: ${color 78e6e4}$alignr${wireless_link_qual_perc wlan0} %${color}
${time %B %e, %G} ${goto 120}${color1}CPU1: ${cpu cpu1}% ${freq_g} GHz ${goto 240}${color2}CPU2: ${cpu cpu2}% ${freq_g} GHz ${goto 360}${color3}RAM: $memperc% ${mem} ${color}${goto 480} Down:${color green}$alignr${downspeedf wlan0} Kb/s$color
Uptime: $uptime ${goto 120}${color1}${cpubar cpu1 5,110} ${goto 240}${color2}${cpubar cpu2 5,110} ${goto 360}${color3}${membar 5,110} ${color}${goto 480} Up: ${color red}$alignr${upspeedf wlan0} Kb/s$color
${voffset 3}
${exec feh --bg-scale `dcop kdesktop KBackgroundIface currentWallpaper 1`}

amarok, top right
TEXT
${color3}Artist: ${color}$alignr${if_empty execi 10 dcop amarok player artist}$alignc Music Stopped $else${execi 10 dcop amarok player artist}$endif
${voffset 3}${color3}Title: ${color}$alignr${execi 10 dcop amarok player title}
${voffset 3}${color3}Time: ${color}$alignr${execi 1 dcop amarok player currentTime} / ${execi 10 dcop amarok player totalTime}
${voffset 3}${color3}Album: ${color}$alignr${execi 10 dcop amarok player album}$endif${font }
${color3}${hr 2}$color

geezerone
July 1st, 2008, 09:56 AM
Hey all, I've had a look around to see if anyone else has had this problem and I haven't found anything like it yet. When I run Conky, the pseudo transparency is off. It appears as though it took the background from a few pixels off in each direction and set that as the Conky background. Check out the screenshot. The problem is easiest to see at the top near the System and CPU sections

Here is my .conkyrc


background yes
font Zekton:size=8
xftfont Zekton:size=8
use_xft yes
xftalpha 0.1
update_interval 0.3
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 256 5
maximum_width 300
default_color d7d7d7
default_shade_color black
default_outline_color black
alignment top_right
gap_x 2
gap_y 0
no_buffers yes
cpu_avg_samples 2
override_utf8_locale yes
uppercase no # set to yes if you want all text to be in uppercase
use_spacer no

TEXT




${font Zekton:style=Bold:pixelsize=24}${alignc}${time %l:%M:%S %p}${font Zekton:size=8}
SYSTEM ${hr 1 }

CPU ${alignc} ${freq_dyn}MHz / ${acpitempf}F ${alignr}(${cpu cpu1}%)
${cpubar 4 cpu1}
${cpugraph}
RAM ${alignr}$mem / $memmax ($memperc%)
${membar 4}
SWAP ${alignr}$swap / $swapmax ($swapperc%)
${swapbar 4}

Processes: ${alignr}$processes ($running_processes running)

Highest CPU $alignr CPU% MEM%
${top name 1}$alignr${top cpu 1} ${top mem 1}
${top name 2}$alignr${top cpu 2} ${top mem 2}
${top name 3}$alignr${top cpu 3} ${top mem 3}

Load: ${alignr}$loadavg

FILESYSTEM ${hr 1}${color}

Root: ${alignr}${fs_free /} / ${fs_size /}
${fs_bar 4 /}
Home: ${alignr}${fs_free /home} / ${fs_size /home}
${fs_bar 4 /}
Storage: ${alignr}${fs_free /media/storage} / ${fs_size /media/storage}
${fs_bar 4 /media/storage}

NETWORK ${hr 1}${color}

Down ${downspeed eth0} k/s ${alignr}Up ${upspeed eth0} k/s
${downspeedgraph eth0 24,128} ${alignr}${upspeedgraph eth0 24,128}
Total ${totaldown eth0} ${alignr}Total ${totalup eth0}

WEATHER${hr 1}${color}

${color}Location: ${color ffffff}Orlando, FL$color

${color #B3B3B3}${execi 3600 python /home/davidthomas/.scripts/conkyForecast.py --location=32816 --imperial --template=/home/davidthomas/.scripts/conkyForecast2.template}
${alignr}${voffset -130}${offset -70}${font weather:size=45}${color}${execi 3600 python ~/.scripts/conkyForecast.py --location=32816 --startday=0 --datatype=WF}$font$color
${alignr}${voffset 5}${offset -70}${font weather:size=45}${color}${execi 3600 python ~/.scripts/conkyForecast.py --location=32816 --startday=0 -n --datatype=WF}$font$color


${voffset 7}${color}3 day forecast
${voffset 7}${color}${offset 12}${execi 3600 python ~/.scripts/conkyForecast.py -w --location=32816 --startday=1 --endday=3 --datatype=DW --spaces=27}
${font weather:size=44}${color}${offset 12}${execi 3600 python ~/.scripts/conkyForecast.py --location=32816 --startday=1 --endday=3 --datatype=WF} $font$color
${color e0e0e0}${execi 3600 python /home/davidthomas/.scripts/conkyForecast.py --location=32816 --imperial --spaces=27 --template=/home/davidthomas/.scripts/conkyForecast.template}Any help would be greatly appreciated.

good config.

I tried this but when I click on it or the desktop background the conky data vanishes and keep having to restart conky. this also happens if other windows max and min over it?? Any ideas why?

Fixed: own_window_type override

Th3Professor
July 1st, 2008, 11:05 AM
so... how do you get rid of the flicker?
every minute or couple/few minutes there's a flicker.
this occurs even when a video is playing at fullscreen.

cl0ckwork
July 1st, 2008, 02:09 PM
so... how do you get rid of the flicker?
every minute or couple/few minutes there's a flicker.
this occurs even when a video is playing at fullscreen.

what ive seen with mine, even after enabling double_buffer and what not, is when the size of the drawn conky window changes.

for example, if you have a variable that changes from single digit to double digit (5 to 10) and it forces conky to get wider depending on your set up

that is when i have noticed it flickers for me. i have added some spaces and offsets now so that my setup is wide enough that it doesnt push the edges any further.

its kind of confusing, if you need any clarity just ask

Th3Professor
July 1st, 2008, 04:11 PM
what ive seen with mine, even after enabling double_buffer and what not, is when the size of the drawn conky window changes.

for example, if you have a variable that changes from single digit to double digit (5 to 10) and it forces conky to get wider depending on your set up

that is when i have noticed it flickers for me. i have added some spaces and offsets now so that my setup is wide enough that it doesnt push the edges any further.

its kind of confusing, if you need any clarity just ask

Could you please? Also a reminder on the double_buffer would be great... I just got rid of conky due to the flicker, so I'll need to start from scratch with the config. I used the double_buffer before, though it didn't help - I'd like to still use it this time around. Otherwise, the variables changed from 1-digit to 2-digits, some clarification on that might help. Thanks! :)

jjgomera
July 1st, 2008, 04:54 PM
what ive seen with mine, even after enabling double_buffer and what not, is when the size of the drawn conky window changes.

for example, if you have a variable that changes from single digit to double digit (5 to 10) and it forces conky to get wider depending on your set up

that is when i have noticed it flickers for me. i have added some spaces and offsets now so that my setup is wide enough that it doesnt push the edges any further.

its kind of confusing, if you need any clarity just ask

You can use ${tab} or ${goto} to adjust this dont fix spaces, for example:

cpu: ${cpugraph 11,40 738A88 738A88} ${offset -25}${color FCFCFC}${cpu}${color}${tab}${tab}${tab}ram: ${memgraph 11,40 738A88 738A88} ${offset -25}${color FCFCFC}${memperc}${color}${tab}${tab}${tab}io: ${diskiograph 11,40 738A88 738A88}${tab}${tab}${tab}${tab}${color}${font Arrows:size=8}N$font ${color FCFCFC}${downspeed eth0}${color}${offset -5}kb/s ${downspeedgraph eth0 11,50 738A88 738A88 300}${tab}${tab}${color}${font Arrows:size=8}S$font ${color FCFCFC}${upspeed eth0}${color}${offset -5}kb/s ${upspeedgraph eth0 11,50 738A88 738A88 30}${tab}${tab}${tab}${color FCFCFC}${font Trebuchet MS:size=8}${time %a, %d de %b %H:%M}

http://ubuntuforums.org/attachment.php?attachmentid=75970&d=1214945399

All spaces are fix, it dont depend the number of number :guitar:

About double buffer, it must add to xorg.conf too this line in
Section "Module":
Load "dbe"

cl0ckwork
July 1st, 2008, 04:56 PM
Could you please? Also a reminder on the double_buffer would be great... I just got rid of conky due to the flicker, so I'll need to start from scratch with the config. I used the double_buffer before, though it didn't help - I'd like to still use it this time around. Otherwise, the variables changed from 1-digit to 2-digits, some clarification on that might help. Thanks! :)

for the options in the beginning set,
double_buffer yes

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

that should solve a few or your problems but theres more system specific stuff to figure out also

ok. on with the reason of the post.
say you have a setting for a music player and song1 is playing.
the minimum width for conky is set at 200 pixels wide and the title "song1" fits without making the embeded window of conky and wider.
now say the next song is called "really really long title" and because teh title is so long, it makes conky wider that the previous 200 pixels, and thats when it flickers.
now if it is set up with something that updates frequently (instead of a song) and changes size, the flicker is very noticeable.

i have been fiddling with my setup and arranged it so that it wont push the edges any further when something changes size and that solved my flicker problem.
once you get your code working, if you need help setting it up so it wont move at all i would be happy to help

MantinoX
July 3rd, 2008, 10:12 PM
.

chepioq
July 7th, 2008, 04:36 PM
Hello
First excuse my bad English...
I test kde-4 and I have problem with transparency.
With kde.3 I make a scrip with:
"feh --bg-scale `dcop kdesktop KBackgroundIface currentWallpaper 1`"
And that work, but with kde.4 that don't work.
I think that in kde.4 dcop is replaced by dbus, and also kdesktop by plasma...
Any ideas?...
Thank.

chepioq
July 11th, 2008, 04:16 PM
hello...
With Crinos512 we have solution...
See this post:
http://ubuntuforums.org/showthread.php?t=228731&page=5

M4rotku
July 14th, 2008, 09:12 PM
Hello all,

Since I'm running Hardy and it seemed like this guide was written for older versions, I downloaded the newest 1.5.1 version. When I ran the code that was specified:

joey@joey-laptop:~/conky-1.5.1$ ./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


I got the following error near the end:

checking for X... no
configure: error: Can't locate your X11 installation


How would I go about fixing this and is it still possible to use the older version if the newer version is what is causing the problem?

imjscn
July 14th, 2008, 10:48 PM
5. Add dbe module to /etc/X11/xorg.conf to reduce flickering.

sudo gedit /etc/X11/xorg.conf

find the section titled Section "Module", and add

Load "dbe"


6. Go to System, Preferences, Sessions, Startup Programs and add 'conky' to the list of start up progams. Reboot. Conky will be active after your next reboot!


Need some help:
in my xorg.conf, there isn't a section "Module", what to do?
in my Application/System, there isn't a "Preferences" , what to do?

I'm in Xubuntu8.04

Thanks!

cl0ckwork
July 15th, 2008, 01:16 AM
Hello all,

Since I'm running Hardy and it seemed like this guide was written for older versions, I downloaded the newest 1.5.1 version. When I ran the code that was specified:



I got the following error near the end:



How would I go about fixing this and is it still possible to use the older version if the newer version is what is causing the problem?

im guessing you installed and compiled the package yourself.
try using the repositories and installing that way.

jjgomera
July 15th, 2008, 09:36 AM
Need some help:
in my xorg.conf, there isn't a section "Module", what to do?
in my Application/System, there isn't a "Preferences" , what to do?

I'm in Xubuntu8.04

Thanks!

if module section isnt it, add it:

Section "Module"
Load "dbe"
EndSection

About Application/System/Preferences, is about gnome (ubuntu), you must do it with xfce, look here (http://gentoo-wiki.com/HOWTO_Autostart_Programs#Xfce4)

imjscn
July 15th, 2008, 10:09 PM
jjgomera, thanks for helping. Another question:
Should I do both Add module and Add Autostart for most apps that I want to run at start, or it's just Conky need both?

jjgomera
July 16th, 2008, 08:01 AM
no, to modify xorg.conf only for conky, to autostart each apps, it only necesary add in Xfce4 menu > Settings > Xfce 4 Autostarted Applications.

imjscn
July 16th, 2008, 09:22 AM
Thanks a lot, I'm on the fly :)

gardara
July 22nd, 2008, 05:52 AM
My conky currently shows cpu load, ram load, hdd space, etc. but is there any way of letting it show hdd load? Not how much space I'm using but how much strain is on the hdd?

Bruce M.
July 22nd, 2008, 02:00 PM
Hi Folks,

In most of the conky threads there are instructions for people trying to setup conky for the first time. Bu the time it's answered it's spaced out over a few pages and the simplicity of it seems to be lost.

So with that in mind I've started a new thread:

HOW TO: A Beginners Guide to Setting up Conky (http://ubuntuforums.org/showthread.php?p=5436679#post5436679)

And like I said there, I'm really hoping it stays a "1 post" thread, it doesn't talk about configuring the internal workings of conky. Simply a way to get it up and running. Leave configuring tips and tricks and screenshots here where there is lots of help.

Take a look.

Have a nice day
Bruce

Jean__
August 27th, 2008, 04:36 AM
Hi folks,

I have conky running on two machines, an old machine running hardy server with a bare xfce and a newer running hardy kubuntu.

On the faster machine though, the calls to tcp_portmon for *outbound* connections make conky very slow in updating.

As soon as I add only 1 outbound connection like:

${tcp_portmon 32768 61000 rhost 0}

conky only comes up after 5 seconds and can only update once in 5 seconds, though the polling interval is set to 1.

It's only the call to tcp_portmon with rhost which slows it down, the call to ${tcp_portmon 32768 61000 rservice 0} is working well.
Replacing rhost with rip works well too, so it seems the problem is in the dns lookup.

Any idea's?

Thanks.

m_l17
September 24th, 2008, 07:00 AM
Here is my .conkyrc with colors to match Linux Mint:

### my conky setup for t21 ###

# LINUX MINT - 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 right
use_xft no

# Update interval in seconds
update_interval 3.0

# Minimum size of text area
#minimum_size 250 5

# Maximum Width
maximum_width 295

# Draw shades?
draw_shades no

# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
font sans
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 5

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

own_window_colour black
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 5
gap_y 15

# stuff after 'TEXT' will be formatted on screen

TEXT
$color
${color A2E062}Linux Mint ${hr 2}$color
$nodename $sysname $kernel on $machine

${color A2E062}Uptime ${hr 2}$color
${uptime}

${color A2E062}Intel Mobile Pentium III ${hr 2}$color
${freq}MHz $alignr ${cpu cpu1}% Load ${loadavg} Temp ${acpitemp}
${cpubar cpu0}
${cpugraph 000000 A2E062}
Processes $processes
Running $running_processes

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 A2E062}Memory ${hr 2}$color
Mem $alignc $memperc% $mem / $memmax
${membar 6}$color
Swap $alignc $swapperc% $swap / $swapmax
${swapbar 6}$color

${color A2E062}Hdd ${hr 2}$color
/ $alignc ${fs_free_perc /}% ${fs_used /}/ ${fs_size /}
${fs_bar 6 /}$color
/home $alignc ${fs_free_perc /home}% ${fs_used /home}/ ${fs_size /home}
${fs_bar 6 /home}$color

${color A2E062}Network ${hr 2}$color
eth0's IP ${addr eth0}$color

Public IP ${execi 3600 wget -O - http://whatismyip.org/ | tail}$color

Down $color${downspeed eth0}k/s Up ${upspeed eth0}k/s
${downspeedgraph eth0 25,140 000000 A2E062}$color ${alignr}${upspeedgraph eth0
25,140 000000 A2E062}$color
Total ${totaldown eth0} Total ${totalup eth0}
${color A2E062}${hr 2}$color

Thanks to this thread and http://linuxowns.wordpress.com/2008/04/04/create-a-custum-conky-setup/