PDA

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


Pages : 1 2 3 [4]

dustint83
October 9th, 2008, 02:40 AM
heres my conky setup, quite nice i must say!

reg4c
October 15th, 2008, 02:25 AM
Then (Compiz users) place a startup script called .conky_start.sh in your home directory:
#!/bin/bash
sleep 60 && conky;
This would start conky after 60 seconds of your login. That way, compiz doesn't draw shadows around conky. Make sure the script is executable: chmod a+x .conky_start.sh and add it to your startup programs (menu: system->preferences->session->startup programs).


Urm, you don't need a script for this.
You can just add "conky" to the session and then go to CCSM > Decorations
and then in the Shadow windows box add !(iclass=conky)

I found that on Compiz forums but I cannot find the link now O_o
Cheers

Green_Star
October 20th, 2008, 08:09 AM
Hello,

My conky setup is working well except one thing. It supposed to be placed left-bottom of my screen but it is almost middle of left side, I guess there is an empty space at the end of my screen, i am not sure how to get rid of that, my script looks fine. I you guys can point me what I need to change that would be great, I love to have conky at my left-bottom of the screen.

# UBUNTU-CONKY.
text_buffer_size 256
# Update interval in seconds
update_interval 3.0
font freesans:size=12
xftfont freesans:size=12
use_xft yes
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override #try also 'normal' or 'desktop'
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

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

# Minimum size of text area
#minimum_size 492 8
maximum_width 492

draw_shades no
draw_outline no # amplifies text if yes
draw_borders no
draw_graph_borders no

use_xft yes
xftalpha 0.9
xftfont Candera:size=6
uppercase no
override_utf8_locale yes
use_spacer no

stippled_borders 3
border_margin 9
border_width 10

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

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

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

# stuff after 'TEXT' will be formatted on screen
#${cpugraph 000000 ffffff}${color blue} ${execi 60 python /home/suma/.scripts/recordingdevices.py;}
#${font Zekton:style=Bold:pixelsize=24}${alignc}${time %l:%M:%S %p}${font Zekton:size=8}
color1 blue
color2 white
color3 red
color4
TEXT
${color 2e2e2e}${cpugraph 110,320}
${voffset -128}

${font Zekton:style=Bold:pixelsize=12}
${color3}SUMA EMPIRE $alignr$sysname $kernel on $machine

${color1}CPU Temparature ${color3}${execi 4 sensors | grep ° | cut -c 15-16 ;}C $alignr${color1}Uptime: ${color1}$uptime
${freq}MHz ${color1} $alignr Load: ${color1}${loadavg}
${color1}$cpubar

Processes: ${color1}$processes Running: $running_processes $alignr Mythtv: ${color red}${execi 60 python /home/suma/.scripts/recordingdevices.py;}${color1}

${top name 1}$alignr${offset -155}${top cpu 1} ${color grey}|
${color blue}${voffset -15}${offset 165}${top_mem name 1}$alignr${top_mem mem 1}
${top name 2}$alignr${offset -155}${top cpu 2} ${color grey}|
${color blue}${voffset -15}${offset 165}${top_mem name 2}$alignr${top_mem mem 2}
${top name 3}$alignr${offset -155}${top cpu 3} ${color grey}|
${color blue}${voffset -15}${offset 165}${top_mem name 3}$alignr${top_mem mem 3}
${top name 4}$alignr${offset -155}${top cpu 4} ${color grey}|
${color blue}${voffset -15}${offset 165}${top_mem name 4}$alignr${top_mem mem 4}
${top name 5}$alignr${offset -155}${top cpu 5} ${color grey}|
${color blue}${voffset -15}${offset 165}${top_mem name 5}$alignr${top_mem mem 5}
${top name 6}$alignr${offset -155}${top cpu 6} ${color grey}|
${color blue}${voffset -15}${offset 165}${top_mem name 6}$alignr${top_mem mem 6}

ram $alignr${offset -253}:
${voffset -15}$alignr${offset -215}$memperc% ${membar 6}
swap $alignr${offset -253}:
${voffset -15}$alignr${offset -215}$swapperc% ${swapbar 6}

root $alignr${offset -253}:
${voffset -15}$alignr${offset -215}${fs_free_perc /}% ${fs_bar 6 /}
main $alignr${offset -253}:
${voffset -15}$alignr${offset -215}${fs_free_perc /storage/main}% ${fs_bar 6 /storage/main}
backup $alignr${offset -253}:
${voffset -15}$alignr${offset -215}${fs_free_perc /storage/backup}% ${fs_bar 6 /storage/backup}
extra $alignr${offset -253}:
${voffset -15}$alignr${offset -215}${fs_free_perc /storage/extra}% ${fs_bar 6 /storage/extra}

Down : ${color green}${downspeed eth0}${color blue} k/s ${alignr}Up: ${color green}${upspeed eth0}${color blue} k/s
Total :${color red} ${totaldown eth0} ${alignr}${color blue}Total: ${color red}${totalup eth0}${color blue}
In / Out bound: ${color green}${tcp_portmon 1 32767 count} / ${tcp_portmon 32768 61000 count}${alignr}${color blue}Total: ${tcp_portmon 1 65535 count}
${color red}${voffset -30}${downspeedgraph eth0 25,140 000000 ff0000} ${alignr}${upspeedgraph eth0 25,140 000000 00ff00}

Bruce M.
October 20th, 2008, 03:44 PM
Hello,

My conky setup is working well except one thing. It supposed to be placed left-bottom of my screen but it is almost middle of left side, I guess there is an empty space at the end of my screen, i am not sure how to get rid of that, my script looks fine. I you guys can point me what I need to change that would be great, I love to have conky at my left-bottom of the screen.

You'll need to play with the gap_y command:

gap_x 10
gap_y -200 # a negative value brings conky DOWN, positive UP


Hope that helps.
Bruce

Bruce M.
October 20th, 2008, 03:47 PM
And once again I changed mine. I decided I didn't really need other's weather, so I made changes to my weather and where my conky's are located.

http://img528.imageshack.us/img528/392/20oct08et8.th.gif (http://img528.imageshack.us/my.php?image=20oct08et8.gif)

Will be posting the code in Conky Weather Forecast Python Script (http://ubuntuforums.org/showpost.php?p=6001621&postcount=692)

Chimo!
Bruce

Green_Star
October 21st, 2008, 05:49 AM
That worked well, thank you so much. By the way can I see your calender conky script?

You'll need to play with the gap_y command:

gap_x 10
gap_y -200 # a negative value brings conky DOWN, positive UP


Hope that helps.
Bruce

Bruce M.
October 21st, 2008, 08:54 AM
That worked well, thank you so much. By the way can I see your calender conky script?

Sure no problem:
background no
own_window yes
own_window_type override # normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager # undecorated,below,skip_taskbar,skip_pager
own_window_colour black
double_buffer yes
use_spacer left
override_utf8_locale yes
use_xft yes
font Zekton:size=8
xftfont Zekton:size=8
xftalpha 2.5
update_interval 5.0
uppercase no # set to yes if you want all text to be in uppercase
stippled_borders 3
border_margin 9
border_width 10
default_outline_color black
default_shade_color black
draw_borders no
draw_outline yes # amplifies text if yes
draw_shades no # shadecolor black
default_color white
color0 cyan
color1 lightblue
color2 orange
color3 yellow
color4 wheat
color5 salmon
color6 red
color7 yellow
color8 lightblue
color9 red
alignment tr # Aligned position on screen: tl, tr, tm, bl, br, bm, ml, mr
gap_x 10
gap_y 35
text_buffer_size 512 # use 1024 for the forecast
no_buffers yes # Subtract file system buffers from used memory?
short_units yes
pad_percents 2
# Timezone information found in: /usr/share/zoneinfo


TEXT
${font Zekton:bold:size=12}${color4}${alignc}UTC:$color ${utime %H:%M}
${font Zekton:bold:size=9}${color8}Man: $color${tztime Canada/Central %H:%M}${alignr 2}${color8}Ont: $color${tztime Canada/Eastern %H:%M}$font
${color0}${hr}
${goto 70}${font Zekton:bold:size=9}${color1}Buenos Aires, Argentina$color
${goto 70}${color4}34°20' S 58°30' W$color$font
${font Zekton:size=55}${time %H:%M}$font
${voffset -63}${font Zekton:size=20}${color1}${alignr 5}${time %b}$color$font
${font Zekton:size=20}${color1}${alignr 5}${time %y}$color$font
${color0}${hr 1}$color
${font LCDMono:size=19}${color2}${execi 60 ~/Conky/scripts/calendario.sh semana}
${color 888888}${execi 60 ~/Conky/scripts/calendario.sh pasado}${color red}${execi 60 ~/Conky/scripts/calendario.sh hoy}${color 888888}${execi 60 ~/Conky/scripts/calendario.sh futuro}$font

${color4}${font Bitstream Vera Sans Mono:size=7}${pre_exec cal -3 | cut -c23-44 --complement}
calendario.sh
#! /bin/sh
# written by: jjgomera

#str=`echo '\033[01;32m29'`

# replace the 4 "cal |" with "cal -m |" to have the week start on Monday

DATE=`date | awk -F" " '{print $3}'`

case "$1" in
mes)
cal | head -n1
;;
semana)
cal | head -n2 | tail -n1
;;
pasado)
cal | grep -v '[a-zA-Z]' | grep '[0-9]' | awk -F$DATE ' BEGIN {i=0}
($1 == $0 && i==0) {print $1}($1 != $0 && i==0){i=i+1;print $1}';
;;
hoy)
echo $DATE;
;;
futuro)
cal | grep -v '[a-zA-Z]' | grep '[0-9]' | awk -F$DATE ' BEGIN {i=1}
(i==0) {print $0}($1 != $0 && i==1){i=i-1;print $2}';
;;
esac
Enjoy!

Chimo!
Bruce

Green_Star
October 22nd, 2008, 06:52 AM
Thanks for your help, by the way when I tried the calender part the first two lines of dates are not aliened properly, please check my screenshot, can you suggest anything in this? By the way how do you get that ubuntu logo on the top of your conky display?


Sure no problem:
background no
own_window yes
own_window_type override # normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager # undecorated,below,skip_taskbar,skip_pager
own_window_colour black
double_buffer yes
use_spacer left
override_utf8_locale yes
use_xft yes
font Zekton:size=8
xftfont Zekton:size=8
xftalpha 2.5
update_interval 5.0
uppercase no # set to yes if you want all text to be in uppercase
stippled_borders 3
border_margin 9
border_width 10
default_outline_color black
default_shade_color black
draw_borders no
draw_outline yes # amplifies text if yes
draw_shades no # shadecolor black
default_color white
color0 cyan
color1 lightblue
color2 orange
color3 yellow
color4 wheat
color5 salmon
color6 red
color7 yellow
color8 lightblue
color9 red
alignment tr # Aligned position on screen: tl, tr, tm, bl, br, bm, ml, mr
gap_x 10
gap_y 35
text_buffer_size 512 # use 1024 for the forecast
no_buffers yes # Subtract file system buffers from used memory?
short_units yes
pad_percents 2
# Timezone information found in: /usr/share/zoneinfo


TEXT
${font Zekton:bold:size=12}${color4}${alignc}UTC:$color ${utime %H:%M}
${font Zekton:bold:size=9}${color8}Man: $color${tztime Canada/Central %H:%M}${alignr 2}${color8}Ont: $color${tztime Canada/Eastern %H:%M}$font
${color0}${hr}
${goto 70}${font Zekton:bold:size=9}${color1}Buenos Aires, Argentina$color
${goto 70}${color4}34°20' S 58°30' W$color$font
${font Zekton:size=55}${time %H:%M}$font
${voffset -63}${font Zekton:size=20}${color1}${alignr 5}${time %b}$color$font
${font Zekton:size=20}${color1}${alignr 5}${time %y}$color$font
${color0}${hr 1}$color
${font LCDMono:size=19}${color2}${execi 60 ~/Conky/scripts/calendario.sh semana}
${color 888888}${execi 60 ~/Conky/scripts/calendario.sh pasado}${color red}${execi 60 ~/Conky/scripts/calendario.sh hoy}${color 888888}${execi 60 ~/Conky/scripts/calendario.sh futuro}$font

${color4}${font Bitstream Vera Sans Mono:size=7}${pre_exec cal -3 | cut -c23-44 --complement}
calendario.sh
#! /bin/sh
# written by: jjgomera

#str=`echo '\033[01;32m29'`

# replace the 4 "cal |" with "cal -m |" to have the week start on Monday

DATE=`date | awk -F" " '{print $3}'`

case "$1" in
mes)
cal | head -n1
;;
semana)
cal | head -n2 | tail -n1
;;
pasado)
cal | grep -v '[a-zA-Z]' | grep '[0-9]' | awk -F$DATE ' BEGIN {i=0}
($1 == $0 && i==0) {print $1}($1 != $0 && i==0){i=i+1;print $1}';
;;
hoy)
echo $DATE;
;;
futuro)
cal | grep -v '[a-zA-Z]' | grep '[0-9]' | awk -F$DATE ' BEGIN {i=1}
(i==0) {print $0}($1 != $0 && i==1){i=i-1;print $2}';
;;
esac
Enjoy!

Chimo!
Bruce

Bruce M.
October 22nd, 2008, 09:00 AM
Thanks for your help, by the way when I tried the calender part the first two lines of dates are not aliened properly, please check my screenshot, can you suggest anything in this? By the way how do you get that ubuntu logo on the top of your conky display?

The calendar "requires" a mono font

Ubuntu = the letter "v" from the OpenLogos font (http://www.dafont.com/search.php?psize=m&q=OpenLogos)
${voffset -45}${color1}${font OpenLogos:size=150}v$font$color

Green_Star
October 22nd, 2008, 01:00 PM
Got it, so its all because of the font. And printing the logos using font is new thing to me. Thanks.

Bruce M.
October 22nd, 2008, 01:55 PM
Got it, so its all because of the font. And printing the logos using font is new thing to me. Thanks.

Remember:

1. if spacing is critical - try mono fonts
2. images are not allowed: however, pop a cloud, sun, moon, logo or what ever into a font and that's a different story. :)

Have a good day.
Bruce

Farmer of Bricks
October 25th, 2008, 05:56 PM
I'm running KDE 4.1.1, Conky from the repos, and a 5.0 second refresh time. The Conky blinks frequently, and occasionally disappears in its entirety.

#own_window yes
own_window_type override
own_window_transparent yes
#own_window_colour 000000
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer no

I'm also having problems with pymetar, which is configured correctly, but the text gets cut off in Conky.

Does anyone have any suggestions? My ~.conkyrc is below:

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

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

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

# fiddle with window
use_spacer none
use_xft no

# Update interval in seconds
update_interval 5.0

# Minimum size of text area
# minimum_size 250 5

# Draw shades?
draw_shades no

# Outline Text?
draw_outline no

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

# Stippled borders?
stippled_borders 3

# border margins
border_margin 9

# border width
border_width 10

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

own_window_colour brown
own_window_transparent yes

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

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

# stuff after 'TEXT' will be formatted on screen


# Stuff removed from after 'TEXT'
# ${color orange}LOGGING ${hr 2}$color
# ${execi 30 tail -n3 /var/log/messages | fold -w50}

# $sysname $kernel on $machine
# $color$stippled_hr

TEXT
${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%
${color white}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}$color
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}

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

Root: ${fs_free_perc /}% ${fs_bar 6 /}$color
home: ${fs_free_perc /home/}% ${fs_bar 6 /home}$color


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

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

${color orange}WEATHER ${hr 2}$color
${execi 60 /usr/bin/pymetar KIAD | fold -w50}

cl0ckwork
October 25th, 2008, 06:18 PM
I'm running KDE 4.1.1, Conky from the repos, and a 5.0 second refresh time. The Conky blinks frequently, and occasionally disappears in its entirety.

#own_window yes
own_window_type override
own_window_transparent yes
#own_window_colour 000000
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer no

I'm also having problems with pymetar, which is configured correctly, but the text gets cut off in Conky.

Does anyone have any suggestions? My ~.conkyrc is below:

the flicker is probably from different variables changing the sapcing in conky.

try setting a maximum_width variable in the top half to about 200 for starters

Farmer of Bricks
October 25th, 2008, 09:34 PM
the flicker is probably from different variables changing the sapcing in conky.

try setting a maximum_width variable in the top half to about 200 for starters

The flicker is still there, but less pronounced, and pymetar is still cut off.

Thanks anyways

Bruce M.
October 26th, 2008, 04:46 AM
The flicker is still there, but less pronounced, and pymetar is still cut off.

Thanks anyways

Try this it worked for me:

For every ${alignr} you have change it to ${alignr 2}

Chimo!
Bruce

RayVad
October 26th, 2008, 11:56 AM
Is there someone who got all his voltage sensor working in Conky?

This is what i have:

VCore1: ${alignr}${hwmon 0 in 0} V
VCore2: ${alignr}${hwmon 0 in 1} V
+3.3V: ${alignr}${hwmon 0 in 2} V
+5V: ${alignr}${hwmon 0 in 3} V
+12V: ${alignr}${hwmon 0 in 4} V

But only the first 3 are giving the right value.
The +5 and +12 are giving only the value 3.0 V. Although these sensors are giving correct outputs in Gkrellm.

My sensors are in: /sys/class/hwmon/hwmon0/device

cpu0_vid fan3_input in2_input in5_input pwm1 temp3_input
driver fan3_min in2_max in5_max pwm1_enable temp3_max
fan1_div hwmon in2_min in5_min subsystem temp3_max_hyst
fan1_input in0_input in3_input in6_input temp1_input temp4_input
fan1_min in0_max in3_max in6_max temp1_max temp4_max
fan2_div in0_min in3_min in6_min temp1_max_hyst temp4_max_hyst
fan2_input in1_input in4_input modalias temp2_input uevent
fan2_min in1_max in4_max name temp2_max vrm


asb100-i2c-0-2d
Adapter: SMBus I801 adapter at e800
VCore 1: +1.58 V (min = +1.20 V, max = +1.81 V)
+3.3V: +3.26 V (min = +2.96 V, max = +3.63 V)
+5V: +5.00 V (min = +4.49 V, max = +5.51 V)
+12V: +11.31 V (min = +9.55 V, max = +14.41 V)
-12V (reserved): -11.81 V (min = -0.00 V, max = -0.00 V)
-5V (reserved): -4.96 V (min = -0.00 V, max = -0.00 V)
CPU Fan: 2518 RPM (min = 2481 RPM, div = 4)
Chassis Fan: 0 RPM (min = 4963 RPM, div = 2)
Power Fan: 0 RPM (min = -1 RPM, div = 8)
M/B Temp: +28.0°C (high = +80.0°C, hyst = +75.0°C)
CPU Temp (Intel): +43.0°C (high = +100.0°C, hyst = +90.0°C)
Power Temp: -0.5°C (high = +60.0°C, hyst = +50.0°C)
CPU Temp (AMD): +25.0°C (high = +80.0°C, hyst = +75.0°C)
cpu0_vid: +1.425 V



Any ideas how to get the right values?

Farmer of Bricks
October 29th, 2008, 06:05 PM
I fixed the pymetar cutoff with the following:
# Minimum size of text area
# minimum_size 250 5
text_buffer_size 600

However, the blink is still very annnnoying, and I don't wnat to have to make the refresh rate any longer than 5 secs. Any help for KDE4?

Thanks.

cl0ckwork
October 29th, 2008, 10:06 PM
I fixed the pymetar cutoff with the following:
# Minimum size of text area
# minimum_size 250 5
text_buffer_size 600

However, the blink is still very annnnoying, and I don't wnat to have to make the refresh rate any longer than 5 secs. Any help for KDE4?

Thanks.
try adding this at the end

${texeci 1000 feh --bg-scale "`grep 'wallpaper=' ~/.kde/share/config/plasma-appletsrc | tail --bytes=+11`"}

Farmer of Bricks
October 30th, 2008, 05:55 PM
try adding this at the end

${texeci 1000 feh --bg-scale "`grep 'wallpaper=' ~/.kde/share/config/plasma-appletsrc | tail --bytes=+11`"}

I did, returned a 'conky: feh not found', installed feh, re-ran it and got :

grep: /home/blk/.kde/share/config/plasma-appletsrc: No such file or directory
feh WARNING: - File does not exist
feh ERROR: Couldn't load image in order to set bg


I don't know anything about feh or what it's supposed to do, so please help. Thank you.

Despot Despondency
November 1st, 2008, 04:03 AM
OK, so I've got my conky set up as I want it but I have just one problem. When I click one of the launchers on my desktop then my conky disappears. How do I get it so that this doesn't happen? Here's my conky file


# Set update interval
update_interval 1
# Set it to run in the background
background yes
# Double buffering to reduce flicker
double_buffer yes
# CPU separation?
top_cpu_separate true
# Window specs
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Use fonts
use_xft yes
# Font specs
xftfont Vibrocentric:size=12
default_color white
uppercase no
# Parameters
maximum_width 300
alignment top_right
gap_x 5
gap_y 5
# Begin variables
TEXT
${goto 72}${color #00bfff}${font augie:size=15}${time %a, %d of %b}$font$color
${voffset -3}${alignc}${font LCDDisplayCapsSSi:size=8}${time %H:%M:%S}$font${voffset -6}

${font LCDMono:size=21}${color #00bfff}${execi 60 ~/Conky/calender.sh semana}
${color 888888}${execi 60 ~/Conky/calender.sh pasado}${color red}${execi 60 ~/Conky/calender.sh hoy}${color 888888}${execi 60 ~/Conky/calender.sh futuro}$font
${color #00bfff}${hr 1}$color

${color #00bfff}Processor & Memory${color blue}${hr 0}$color
${color gray}CPU Max:${color} $freq_dyn_g ${alignr}${color gray}CPU:$color $cpu%
$cpubar
${color gray}RAM Usage:$color $mem/$memmax -${alignr}$memperc%
$membar
${color gray}Swap Usage:$color $swap/$swapmax -${alignr}$swapperc%
$swapbar
${color gray}Root:$color ${fs_used /}/${fs_size /} - ${alignr}${fs_free_perc /}% Free
${color gray}home:$color ${fs_used /home}/${fs_size /home} - ${alignr}${fs_free_perc /home}% Free

${color 00bfff}Active Processes${color blue}${hr 0}$color
${color gray}Name ${alignr}CPU ${alignr}RAM$color
${top_mem name 1} ${alignr}${top_mem cpu 1} ${alignr}${top_mem mem 1}
${top_mem name 2} ${alignr}${top_mem cpu 2} ${alignr}${top_mem mem 2}
${top_mem name 3} ${alignr}${top_mem cpu 3} ${alignr}${top_mem mem 3}
${top_mem name 4} ${alignr}${top_mem cpu 4} ${alignr}${top_mem mem 4}
${top_mem name 5} ${alignr}${top_mem cpu 5} ${alignr}${top_mem mem 5}

${offset 0}${color 00bfff}Internet${color blue}${hr 0}$color
LAN IP $alignr ${addr eth0}
${offset 0}${color}Up: ${color }${upspeed eth0} k/s
${offset 0}${upspeedgraph eth0 20,130 000000 FF0000}
${offset 0}${color}Down: ${color }${downspeed eth0}k/s${color}
${offset 0}${downspeedgraph eth0 20,130 000000 15317E}


Thanks in advance

steveydoteu
November 1st, 2008, 04:18 AM
Replace everything in your #Window Specs section with the following:

own_window yes
own_window_type override
own_window_transparent yes

Despot Despondency
November 1st, 2008, 12:43 PM
Hi, thanks for your response. I've tried those settings before but I end up with the conky appearing above all other applications, like firefox for example. I don't want that I just want the conky on the desktop where it doesn't disappear when I click on the desktop. Any ideas?

steveydoteu
November 1st, 2008, 01:49 PM
Those are the exact same settings I use to achieve what you are asking in my Conky setup.

Despot Despondency
November 1st, 2008, 02:00 PM
That's what I thought. I had those settings on previous install of ubuntu and everything worked fine. Don't understand why it's acting like this now. Oh well, sure I'll get there in the end. :confused:

Bruce M.
November 1st, 2008, 04:50 PM
That's what I thought. I had those settings on previous install of ubuntu and everything worked fine. Don't understand why it's acting like this now. Oh well, sure I'll get there in the end. :confused:

How about these:
background no
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_colour blue
double_buffer yes
use_spacer left
override_utf8_locale yes
use_xft yes
That's how all my conkys start.

CHIMO!
Bruce

steveydoteu
November 1st, 2008, 06:49 PM
This line:

own_window_hints undecorated,below,sticky,skip_taskbar,skip_pagerIs not needed as it does nothing if window type is set to override.

If own_window is yes, you may use these window manager hints to affect the way Conky displays. Notes: Use own_window_type desktop as another way to implement many of these hints implicitly. If you use own_window_type override, window manager hints have no meaning and are ignored

Despot Despondency
November 2nd, 2008, 09:38 AM
I got rid of the own_window_hints line that I had in my conky and it seems to be working as it should. Cheers for the tips.

slinkey1981
November 4th, 2008, 05:27 AM
I am having some problems getting my conky to display my GPU clock speed and vram clock speed.

I am using an nvidia geforce 6800 pci card.

Also, my "MediaShare" under "Storage Info" feads like a 500MiB drive, when it's a 150GiB drive, any clue as to why it's acting funky?

My conky.conf file is as follows. (I know I cheated on some of the things and just added text instead of it getting the info from my pc)

I know that the TEMPS listed have a F beside them, I have changed it to C to match the readings.


alignment top_left
maximum_width 300
background yes
border_width 1
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
use_xft yes
xftfont HandelGotD:size=9
xftalpha 0.5
gap_x 5
gap_y 35
minimum_size 5 5
net_avg_samples 2
no_buffers yes
out_to_console no
own_window yes
own_window_class Conky
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer left
alignment top_right
double_buffer yes

TEXT
$alignc ${color red}Ubuntu 8.04 Hardy Heron
$alignc ${color orange}$sysname $kernel
$alignc ${color yellow}Shifty${color yellow}@${color yellow}$nodename
${color grey}$hr
${alignc}${color orange}Hardware Info:
${color gray}$stippled_hr
${color white}CPU:$alignr ${color gray}Intel Celeron
${color grey}Frequency:$alignr ${color white}$freq
${color white}CPU: ${color #999999}${cpu}%
${color white}${cpubar 7,300}
${color #ffffff}RAM: ${color #999999}$memperc% ${color #cccccc}
${color white}${membar 7,300}
${color grey}GPU Temp:$alignr ${color white} +${exec nvidia-settings -q GPUCoreTemp | grep Attribute | cut -d ' ' -f 6 | cut -c 1-2}°C
${color grey}Video RAM:$alignr ${color white} ${exec nvidia-settings -q VideoRam | grep Attribute | cut -d ' ' -f 6 | cut -c 1-6}KiB
${color grey}NVidia Driver Version:$alignr ${color white} ${exec nvidia-settings -q NvidiaDriverVersion | grep Attribute | cut -d ' ' -f 6}
${color grey}GPU Clock:$alignr ${color white} ${exec nvidia-settings -q GPUPerfModes | grep perf=0 | cut -d ' ' -f 7 | cut -c 9-11}MHz
${color grey}Video RAM Clock:$alignr ${color white} ${exec nvidia-settings -q GPUPerfModes | grep perf=0 | cut -d ' ' -f 8 | cut -c 10-12}MHz
${color grey}M/B Temperature: $alignr${color white}$acpitemp°C
${color grey}$hr
${alignc}${color orange}Storage Info:
${color grey}Home $alignr ${color white}${fs_free /}/${fs_size /} ${fs_bar 6,75 /}
${color grey}MediaShare $alignr ${color white}${fs_free /dev/sdb1}/${fs_size /dev/sdb1} ${fs_bar 6,75 /dev/sdb1}
${color grey}$hr
${alignc}${color orange}Network Info:${color grey}
${alignc}Internet IP:${color white}${exec wget -O - http://ip.tupeux.com | tail}
${alignc}${color gray}Local IP:${color white}${addr eth0}
${color grey}Down:${color white}${downspeed eth0}Kbps${color grey}${alignr}Up:${color white}${upspeed eth0}Kbps${color grey}
${downspeedgraph eth0 25,145 white green} ${upspeedgraph eth0 25,145 white red} ${alignr}
${color grey}$hr
${color grey}Uptime:$alignr ${color white} $uptime

${color white}Process ${alignr -10} ProcID ${alignr -5} CPU% $alignr MEM%
${color grey} ${top name 1} ${alignr 30} ${top pid 1} ${alignr 10} ${top cpu 1} $alignr ${top mem 1}
${color grey} ${top name 2} ${alignr 30} ${top pid 2} ${alignr 10} ${top cpu 2} $alignr ${top mem 2}
${color grey} ${top name 3} ${alignr 30} ${top pid 3} ${alignr 10} ${top cpu 3} $alignr ${top mem 3}
${color grey} ${top name 4} ${alignr 30} ${top pid 4} ${alignr 10} ${top cpu 4} $alignr ${top mem 4}
${color grey} ${top name 5} ${alignr 30} ${top pid 5} ${alignr 10} ${top cpu 5} $alignr ${top mem 5}
${color grey}$hr
${alignc}${color white}Date and Time:
${alignc}${color white}${exec /sbin/hwclock | cut -c 1-31}


Edit: I got the MediaShare drive info working by changing it from /dev/sdb1 to /mnt/MediaShare.... My mistake.

And if anyone knows of a better way to retrieve and display your REAL ip address, please share, cause mine just keeps on banging away.

kaivalagi
November 4th, 2008, 10:07 AM
And if anyone knows of a better way to retrieve and display your REAL ip address, please share, cause mine just keeps on banging away.

Replace:

${exec wget -O - http://ip.tupeux.com | tail}

with:

${pre_exec wget -O - http://ip.tupeux.com | tail}

It will only be called the first time the conkyrc is processed

Hope that helps

slinkey1981
November 4th, 2008, 02:15 PM
Replace:

${exec wget -O - http://ip.tupeux.com | tail}

with:

${pre_exec wget -O - http://ip.tupeux.com | tail}

It will only be called the first time the conkyrc is processed

Hope that helps

Worked perfectly, thank you!

So, without trying to sound completely obvious, the 'pre_' prefix will make the 'exec' execute only on conky startup for any command?

kaivalagi
November 4th, 2008, 02:51 PM
Worked perfectly, thank you!

So, without trying to sound completely obvious, the 'pre_' prefix will make the 'exec' execute only on conky startup for any command?

Yep, that's right

Take a look at the doc pages here: http://conky.sourceforge.net/documentation.html

Under the variables page pre_exec is described as:

pre_exec shell command Executes a shell command one time before conky displays anything and puts output as text.

You might want to look at the other exec options in there in case there is something else that might help you.

Chimo

Emily the strange
November 5th, 2008, 08:14 AM
5. Add dbe module to /etc/X11/xorg.conf to reduce flickering.

sudo gedit /etc/X11/xorg.conf

find the section titled Section "Module", and add

Load "dbe"



There is no Section Module in my case. And this is the paste from file:


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

Section "Files"
EndSection

# commented out by update-manager, HAL is now used
#Section "InputDevice"
# Identifier "Generic Keyboard"
# Driver "kbd"
# Option "CoreKeyboard"
# Option "XkbRules" "xorg"
# Option "XkbModel" "pc105"
# Option "XkbLayout" "si"
#EndSection

# commented out by update-manager, HAL is now used
#Section "InputDevice"
# Identifier "Configured Mouse"
# Driver "mouse"
# Option "CorePointer"
# Option "Device" "/dev/input/mice"
# Option "Protocol" "ImPS/2"
# Option "ZAxisMapping" "4 5"
# Option "Emulate3Buttons" "true"
#EndSection

# commented out by update-manager, HAL is now used
#Section "InputDevice"
# Identifier "Synaptics Touchpad"
# Driver "synaptics"
# Option "SendCoreEvents" "true"
# Option "Device" "/dev/psaux"
# Option "Protocol" "auto-dev"
# Option "HorizEdgeScroll" "0"
#EndSection

# commented out by update-manager, HAL is now used
#Section "InputDevice"
# Driver "wacom"
# Identifier "stylus"
# Option "Device" "/dev/input/wacom"
# Option "Type" "stylus"
# Option "ForceDevice" "ISDV4" # Tablet PC ONLY
#EndSection

# commented out by update-manager, HAL is now used
#Section "InputDevice"
# Driver "wacom"
# Identifier "eraser"
# Option "Device" "/dev/input/wacom"
# Option "Type" "eraser"
# Option "ForceDevice" "ISDV4" # Tablet PC ONLY
#EndSection

# commented out by update-manager, HAL is now used
#Section "InputDevice"
# Driver "wacom"
# Identifier "cursor"
# Option "Device" "/dev/input/wacom"
# Option "Type" "cursor"
# Option "ForceDevice" "ISDV4" # Tablet PC ONLY
#EndSection

Section "Device"
Identifier "Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller"
Driver "intel"
BusID "PCI:0:2:0"
EndSection

Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Modes "1440x900"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
# commented out by update-manager, HAL is now used
# InputDevice "Generic Keyboard"
# commented out by update-manager, HAL is now used
# InputDevice "Configured Mouse"

# Uncomment if you have a wacom tablet
# InputDevice "stylus" "SendCoreEvents"
# InputDevice "cursor" "SendCoreEvents"
# InputDevice "eraser" "SendCoreEvents"
# commented out by update-manager, HAL is now used
# InputDevice "Synaptics Touchpad"
EndSection


Any ideas?

Ps: I have ubuntu 8.10

Bruce M.
November 5th, 2008, 08:30 AM
Any ideas?

Ps: I have ubuntu 8.10

Sure .... make a backup of the original /etc/X11/xorg.conf and add the section at the end:
Section "Module"
Load "dbe"
EndSection

Hope that helps.

Have a nice day.
Bruce

Emily the strange
November 5th, 2008, 09:19 AM
I didn't make backup but I changed my xorg.conf file and it works now =]

thank you

Bruce M.
November 5th, 2008, 09:51 PM
I didn't make backup but I changed my xorg.conf file and it works now =]

thank you

More than welcome.

Have a nice day.
Bruce

Th3Professor
December 5th, 2008, 08:37 PM
I'd like to display/monitor the following info with conky. Does anybody have a nice clean config that would work well with this?

Freq/temp of 4 core CPU
Freq/temp of GPU
Fan speeds of CPU, GPU, and case fans
RAM info/use
HDD info/use (4x hard drives: 1x= OS+apps, 3x= RAID+LVM set-up)
Internet DL/UL speeds and totals
top (processes/tasks, either by CPU or MEM usage, main 4 or 5 jobs)

I've seen some config files, though they don't seem to work; there's a plethora of pages in this thread, I was wondering if anybody has a config file that would work well with the above. I figure I'll have to tweak it a little bit, though am hoping there's a config that's pretty close.

Thanks. :)

EDIT:
If I could also embed a command line somewhere, that would be sweet.

steveydoteu
December 6th, 2008, 06:58 PM
I would suggest looking through this (http://ubuntuforums.org/showthread.php?t=281865) and also try and learn a bit yourself rather than essentially asking someone to do all of it for you.

derklempner
December 8th, 2008, 12:05 AM
Many thanks to the OP (can't find the thank button on the web page!), as I was able to get Conky up and running in no time flat. The only changes I had to make were changing the font color, adding a font outline, and adding a system uptime line, all of which were simple to find in the script seldon77 provided or on the Conky website.

The_Real_Bacon
December 9th, 2008, 02:01 AM
I would suggest looking through this (http://ubuntuforums.org/showthread.php?t=281865) and also try and learn a bit yourself rather than essentially asking someone to do all of it for you.

Been looking through that and there is nothing of use.

nvidia-settings -q GPUCurrentClockFreqs
shows current frequencies. How would I grep out the clocks?

*edit- I spent a while learning to grep and cut last night. I figured I'd post this now.

Core: ${execi 30 nvidia-settings -q GPUCurrentClockFreqs |grep [0-9] | cut -c 49-51}
Memory: ${execi 30 nvidia-settings -q GPUCurrentClockFreqs |grep [0-9] | cut -c 53-55}

Th3Professor
December 9th, 2008, 10:02 PM
I agree... and reading 80 pages? lol ;)

Bruce M.
December 10th, 2008, 07:52 AM
I agree... and reading 80 pages? lol ;)

80 is better than 497 pages found -> here (http://ubuntuforums.org/showthread.php?t=281865). :)

Have a nice day reading.
Bruce

Th3Professor
December 10th, 2008, 04:25 PM
80 is better than 497 pages found -> here (http://ubuntuforums.org/showthread.php?t=281865).

1 is better than 80, and there doesn't appear to be one (tutorial, howto, etc.) that covers the grounds within page 1.

Bruce M.
December 10th, 2008, 06:58 PM
1 is better than 80, and there doesn't appear to be one (tutorial, howto, etc.) that covers the grounds within page 1.

Well, considering that you are basing this on your post #768 (http://ubuntuforums.org/showpost.php?p=6316071&postcount=786) I'd have to say that it would be almost impossible for someone to do a conky for your machine.

However if you are willing to do a little work to get things started check out the little Beginner's Guide I created in my sig.

Now just to get you started, here's my conkymain
background no
own_window yes
own_window_type override
own_window_transparent yes
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_colour lightblue
double_buffer yes
use_spacer left
override_utf8_locale yes
use_xft yes
font Zekton:size=9
xftfont Zekton:size=9
xftalpha 2.5
update_interval 5.0
uppercase no # set to yes if you want all text to be in uppercase
stippled_borders 3
border_margin 9
border_width 10
default_outline_color black
default_shade_color black
draw_borders no
draw_outline yes # amplifies text if yes
draw_shades no # shadecolor black
default_color white
color0 cyan
color1 blue
color2 orange
color3 yellow
color4 wheat
color5 salmon
color6 red
color7 lightblue
color8 yellow
color9 red
alignment bl # Aligned position on screen: tl, tr, tm, bl, br, bm, ml, mr
gap_x 10
gap_y -200 # -200 for br & 35 for tm
text_buffer_size 512 # use 1024 for the forecast
no_buffers yes # Subtract file system buffers from used memory?
short_units yes
pad_percents 2

# -------- help ---------------
# Timezone information found in: /usr/share/zoneinfo
# UTC ${utime %H:%M}
# BC: ${tztime Canada/Pacific %H:%M}
# Man: ${tztime Canada/Central %H:%M}
# Ont: ${tztime Canada/Eastern %H:%M}
# Nfld: ${tztime Canada/Newfoundland %H:%M}
# Beijing: ${tztime Asia/Shanghai %H:%M}

#-----------------
# with vnstat first you must create database:
# sudo vnstat -u -i eth0 (change eth0 for your network interface)

# to use hddtemp
# sudo chmod u+s /usr/sbin/hddtemp

# -------- end help ------------

TEXT
${voffset -45}${color7}${font OpenLogos:size=150}v$font$color
${voffset -65}${font Zekton:size=15}${color2}Up time:$color${alignr 2}$uptime_short
${color0}${hr 1}$color
${color2}AMD64:$color${alignc}${font DejaVu Sans Mono:size=9}${freq_dyn_g cpu0} GHz$font
${alignc}${color7}<= ${color8}Temperataures ${color9}=>$color
${color4}CPU: ${color5}${execpi 8 sensors | grep 'CPU Temp' | cut --characters 15-16 | xargs ~/Conky/scripts/ColorTempCPU.sh}°$color${goto 108}${color4}Core: ${execpi 8 sensors | grep 'Core0' | cut --characters 15-16 | xargs ~/Conky/scripts/ColorTempCore.sh}°$color${alignr 2}${color4}M/B: ${execpi 8 sensors | grep 'M/B Temp' | cut --characters 15-16 | xargs ~/Conky/scripts/ColorTempMB.sh}°$color
${voffset 10}${font DejaVu Sans Mono:size=9}${color2}Process:$color${alignr 2}${color 888888}${cpubar cpu0 14,140}$color
${color4}${voffset -16}${goto 140}$running_processes /$processes${alignr 5}$cpu%$color
${voffset -14}${alignr 2}${color yellow}${cpubar cpu2 14,140}$color
${voffset 5}${color7}Load: ${goto 70}${color3}${loadavg 1} ${goto 140}${loadavg 2}${alignr 5}${loadavg 3}$color
${voffset 5}${color2}RAM:$color${alignr 2}${color 888888}${membar 14,140}$color
${color4}${voffset -16}${goto 140}$mem${alignr 5}$memperc%$color
${voffset -14}${alignr 2}${color yellow}${cpubar cpu3 14,140}$color
${voffset 5}${color7}Buffered:${color3} ${goto 70}${buffers}${alignr 2}${color7}Cached:${color3} ${cached}
${voffset 5}${color2}SWAP:$color${alignr 2}${color 888888}${swapbar 14,140}$color
${color4}${voffset -16}${goto 140}$swap${alignr 5}$swapperc%$font
${voffset -16}${alignr 2}${color yellow}${cpubar cpu4 14,140}$color
${color0}${hr 1}$color
${voffset 5}${color2}HD Info${color7} -$color Free${color7} - Used$color
${voffset 5}${color2}sda: ${color7}<= ${color8}Temp: ${color9}=> ${execpi 8 hddtemp /dev/sda | cut --characters 27-28 | xargs ~/Conky/scripts/ColorTempHDD.sh}°$color
${font DejaVu Sans Mono:size=9} ${goto 25}${color7}Root:$color ${goto 90}${fs_free_perc /}% ${goto 135}${fs_free /}${color2}${alignr 2}${color7}${fs_used /}$color$font
${goto 25}${font DejaVu Sans Mono:size=9}${color7}Home:$color ${goto 90}${fs_free_perc /home/bruloo}% ${goto 135}${fs_free /home/bruloo}${alignr 2}${color7}${fs_used /home/bruloo}$color$font
${voffset 5}${color2}sdb: ${color7}<= ${color8}Temp: ${color9}=> ${execpi 8 hddtemp /dev/sdb | cut --characters 31-32 | xargs ~/Conky/scripts/ColorTempHDD.sh}°$color
${goto 25}${font DejaVu Sans Mono:size=9}${color7}Data:$color ${goto 90}${fs_free_perc /media/Data}% ${goto 135}${fs_free /media/Data}${alignr 2}${color7}${fs_used /media/Data}$color$font
${color0}${hr}$color
${voffset 5}${alignc 2}${color2}IP: $color${addr eth0}
${color8}Dn:$color${downspeed eth0} k/s ${totaldown eth0}${alignr 2}${color7}Up:$color${upspeed eth0} k/s ${totalup eth0}
${color2}In: $color${tcp_portmon 1 32767 count}${alignc}${color2}Out: $color${tcp_portmon 32768 61000 count}${alignr 2}${color2}Total: $color${tcp_portmon 1 65535 count}

${color8}Today:$color${goto 60}${execi 300 vnstat | grep "today" | awk '{print $2 $3}'}${goto 150}${color7}Today:$color${goto 210}${execi 300 vnstat | grep "today" | awk '{print $5 $6}'}
${color8}Week:$color${goto 60}${execi 300 vnstat -w | grep "current week" | awk '{print $3 $4}'}${goto 150}${color7}Week:$color${goto 210}${execi 300 vnstat -w | grep "current week" | awk '{print $6 $7}'}
${color8}Month:$color${goto 60}${execi 300 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $3 $4}'}${goto 150}${color7}Month:$color${goto 210}${execi 300 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $6 $7}'}
${color0}${hr}$color
${goto 60}${color9}${font Zekton:size=12}${execi 60 du -sh ~/.local/share/Trash/files/ | awk '{print $1}' | sed '/^4.0K/ d' | sed 's/$/ of TRASH /'}$font$color
If you have more question, just ask.

Have a nice day.
Bruce

Luk_Deisler
December 13th, 2008, 05:03 AM
...
If you have more question, just ask.

Have a nice day.
Bruce

Hi I've got a problem, when i setup tr(top right), there is no Uptime etc it's cut. http://img185.imageshack.us/img185/6348/screenshotwq1.th.png (http://img185.imageshack.us/my.php?image=screenshotwq1.png)
How to setup conky, that it is top right but everythink visible?
What exactly do you've got in these scripts(~/Conky/scripts)? Can you upload them as well?

Cheers

richaoj
December 13th, 2008, 09:39 AM
I have googled and haven't scene anyone that's had this problem. Conky works great, looks beautiful etc, except at login (whenever it starts automatically at the beginning of a session, it looks like a raised transparent window with borders. I have to kill it and restart it to get it to look the way I want it to. I have attached my .conkyrc, and a screenshot of how it messed up.

use_xft yes
xftfont verdana:size=8
alignment top_right
xftalpha 0.8
own_window yes
own_window_type override
own_window_transparent yes
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
stippled_borders 10
border_margin 4
border_width 1
default_shade_color grey
default_outline_color black
default_color BADCDD
use_spacer none
no_buffers no
uppercase no
color1 F8DF58
update_interval 1.0
minimum_size 230 5
maximum_width 230


TEXT
${color 6694B2}${font OpenLogos:size=45} u t
${color BADCDD}${font weather:size=82}${execi 600 conkyForecast --location=USMS0175 --datatype=WF --imperial}${color}${font}${voffset -25} ${execi 600 conkyForecast --location=USMS0175 --datatype=HT --imperial} / ${execi 600 conkyForecast --location=USMS0175 --datatype=LT --imperial}

${font weather:size=28}x ${font}HDD ${execi 1 ~/scripts/hddmonit.sh}°C

${font PizzaDude Bullets:size=16}v${font} Up: ${upspeed eth1} Kb/s
${font PizzaDude Bullets:size=16}r${font} Down: ${downspeed eth1} Kb/s

${font PizzaDude Bullets:size=16}M${font} Upload: ${totalup eth1}
${font PizzaDude Bullets:size=16}S${font} Download: ${totaldown eth1}

${color ffffff}${font StyleBats:size=16}A${font} CPU1: ${cpu cpu1}% ${cpubar cpu1}
${font StyleBats:size=16}A${font} CPU2: ${cpu cpu2}% ${cpubar cpu2}

${color F8DF58}${font StyleBats:size=16}8${font} Battery: ${battery_percent}% ${battery_bar}

${color F8DF58}${font FreeSans:size=16}@${font}${execpi 300 ~/scripts/gmail.pl e}

${color C2E078}${font PizzaDude Bullets:size=16}J${font} $mem / $memmax

${font StyleBats:size=18}P${font} Work: ${uptime_short}


${font Radio Space:size=14}${time %A %d %Y}
${font Radio Space:size=55}${time %H:%M}
96226

kaivalagi
December 13th, 2008, 10:29 AM
I have googled and haven't scene anyone that's had this problem. Conky works great, looks beautiful etc, except at login (whenever it starts automatically at the beginning of a session, it looks like a raised transparent window with borders. I have to kill it and restart it to get it to look the way I want it to. I have attached my .conkyrc, and a screenshot of how it messed up.

Have a read of the beginners guide, link in my sig. Step 2 mentions using a sleep command so compiz etc has time to get up and running before conky starts....

Bruce M.
December 13th, 2008, 08:07 PM
Hi I've got a problem, when i setup tr(top right), there is no Uptime etc it's cut.

How to setup conky, that it is top right but everythink visible?
What exactly do you've got in these scripts(~/Conky/scripts)? Can you upload them as well?

Cheers

OK, take a look at the line:
gap_y -200 # -200 for br & 35 for tm
change it to:
gap_y 35 # -200 for br & 35 for tm
because you are using it at the top of the screen not the bottom. That will allow you to see conky complete.

As to your other request, I'll post a complete setup tomorrow. I was away today and have been having connection problems for the last little while and only saw your request now.

Until Sunday, have a nice evening.
Bruce

Bruce M.
December 14th, 2008, 10:10 AM
How to setup conky, that it is top right but everythink visible?
What exactly do you've got in these scripts(~/Conky/scripts)? Can you upload them as well?

Cheers

Hi Luk

OK, to start off with You don't need everything I have in my ~/Conky/scripts directory ... I've got test files and sub-directories with other complete working configurations for a total of over 200 different working conkys (I save everything).

However lets get this working for you. You will need to some work on your own.

The "layout" of any conky is dependant on a quite a few things, for example: the font you are using and the size of the fonts used.

The ${offset}, ${voffset} and ${goto} commands play a big part as well as settings commands: gap_x and gap_y settings, as you see from my previous post.

gap_x Gap, in pixels, between right or left border of screen, same as passing -x at command line, e.g. gap_x 10
gap_y Gap, in pixels, between top or bottom border of screen, same as passing -y at command line, e.g. gap_y 10.

So lets get started so you can have this running.

For my conkymain you are asking about:
Extra programs needed: curl, lm-sensors, hddtemp and vnstat, they are all in the repos.

Check out: HOW TO: Install and configure lm-sensors (http://ubuntuforums.org/showthread.php?t=2780), it's an old post but worked for me.

With the hddtemp and vnstat programs there is help section built into my conkymain just above the TEXT line.

Fonts needed: Zekton, OpenLogos, DejaVu Sans Mono
Mono fonts are highly recommended when "spacing" is the critical factor!

You will also need to look at the lines that have:
/home/bruloo
/dev/sdb
/media/Data
etc.
as I'm sure your ~/home/username is not /bruloo and you probably don't have a second drive with a mount point /media/Data

As for what is in my /Conky/scripts that you need these are what I see:
ColorTempCPU.sh
ColorTempCore.sh
ColorTempMB.sh
ColorTempHDD.sh
They are set to use:
color7 lightblue
color8 yellow
color9 red
so you know if the temps are cool (lightblue) normal (yellow) or in the danger zone (red)

The scripts:
ColorTempCPU.sh
#!/bin/bash
# colorize.sh

COOL=60
WARM=70

if [[ $1 < $COOL ]]
then echo "\${color7}"$1 # COOL
elif [[ $1 > $WARM ]]
then echo "\${color9}"$1 # HOT
else echo "\${color8}"$1 # WARM
fi

exit 0
ColorTempCore.sh
#!/bin/bash
# colorize.sh

COOL=60
WARM=70

if [[ $1 < $COOL ]]
then echo "\${color7}"$1 # COOL
elif [[ $1 > $WARM ]]
then echo "\${color9}"$1 # HOT
else echo "\${color8}"$1 # WARM
fi

exit 0
ColorTempMB.sh
#!/bin/bash
# colorize.sh

COOL=60
WARM=70

if [[ $1 < $COOL ]]
then echo "\${color7}"$1 # COOL
elif [[ $1 > $WARM ]]
then echo "\${color9}"$1 # HOT
else echo "\${color8}"$1 # WARM
fi

exit 0
ColorTempHDD.sh
#!/bin/bash
# colorize.sh

COOL=40
WARM=50

if [[ $1 < $COOL ]]
then echo "\${color7}"$1 # COOL
elif [[ $1 > $WARM ]]
then echo "\${color9}"$1 # HOT
else echo "\${color8}"$1 # WARM
fi

exit 0

NOTES:

the temps of COOL=60 & WARM=70 are the same in three files as I am still researching my hardware to find the critical temps.
make sure the ColorTempxxxx.sh files are executable.


OK, that should do it, if you have further questions, just ask.

Have a nice day.
Bruce

Luk_Deisler
December 15th, 2008, 03:12 PM
Thanks Bruce, thanks a lot :p it's superb

richaoj
December 16th, 2008, 02:06 AM
Ok, thanks for the earlier help, i am just now having one inconsistent and minor problem . . . the time at the end of my display gets one digit cut off sometimes.

I have tried increasing max_user_text and text_buffer to no avail . ..

The conkyrc is the same as in my earlier post (on page 80)

Bruce M.
December 16th, 2008, 08:23 AM
Thanks Bruce, thanks a lot :p it's superb

No problem. Everything I know about conky I learned here in the forums. So I'm just passing on others work. :)

Try playing with some of Kaivalagi's Python Scripts (http://ubuntuforums.org/showthread.php?p=6097476). That will improved things even more.

Like:


conkyDeluge
conkyEmail
conkyExaile
conkyForecast
conkyGoogleCalendar
conkyPidgin
conkyRhythmbox


Enjoy.
Bruce

Bruce M.
December 16th, 2008, 08:33 AM
Ok, thanks for the earlier help, i am just now having one inconsistent and minor problem . . . the time at the end of my display gets one digit cut off sometimes.

I have tried increasing max_user_text and text_buffer to no avail . ..

The conkyrc is the same as in my earlier post (on page 80)

Hi richaoj,

Ok, so your code ends like this:


${font Radio Space:size=14}${time %A %d %Y}
${font Radio Space:size=55}${time %H:%M}
1. try this:

${font Radio Space:size=14}${time %A %d %Y}
${font Radio Space:size=55}${time %H:%M}
and see if the minutes stay at 2 digits.

If they do you can also try centring the final two lines:

${alignc}${font Radio Space:size=14}${time %A %d %Y}
${alignc}${font Radio Space:size=55}${time %H:%M}
It looks like when there is a number wider than 1 (0, 2-9) it gets lost as you have pushed it to the right with those spaces.

If none of this works (I'm confident it will) come back with more questions.

Have a nice day.
Bruce

haneya
December 19th, 2008, 05:40 AM
Hi , thnaks great post , I have a problem with conky , I installed and add it to startup session it ase starting with ubuntu start with no problem until today I tried to restart my computer and then conky started (system monitor) but i cant see it on my desktop , ihave to start it manually , I didnt change any setting at all .

thanks

Bruce M.
December 19th, 2008, 07:26 AM
Hi , thnaks great post , I have a problem with conky , I installed and add it to startup session it ase starting with ubuntu start with no problem until today I tried to restart my computer and then conky started (system monitor) but i cant see it on my desktop , ihave to start it manually , I didnt change any setting at all .

thanks

How do you start it automatically?
Use a script? Please show it.

Have a nice day
Bruce

haneya
December 19th, 2008, 07:55 AM
...

haneya
December 19th, 2008, 07:56 AM
Hi Bruce , thanks for replying ..

well ,to start conky automaticlly am used to add it startup programs am not using any script it the usual way i guess
http://img171.imageshack.us/img171/4457/anastz8.th.png (http://img171.imageshack.us/my.php?image=anastz8.png)

thanks , have a nice day too ):P

Xenophobia
December 19th, 2008, 10:07 AM
Hi, im sorry.

Im installed conky for KDE 4.1

How to start conky for KDE4?

Bruce M.
December 19th, 2008, 02:27 PM
Hi, im sorry.

Im installed conky for KDE 4.1

How to start conky for KDE4?

See my little guide in my sig ... it's old but still works apparently (I'm an Xubuntu user).

Have a nice day.
Bruce

Bruce M.
December 19th, 2008, 02:41 PM
Hi Bruce , thanks for replying ..

well ,to start conky automaticlly am used to add it startup programs am not using any script it the usual way i guess

thanks , have a nice day too ):P

May I suggest a nice little start up script I call SSC.sh (Star/Stop Conky)
#!/bin/sh
# click to start, click to stop

if pidof conky | grep [0-9] > /dev/null
then
exec killall conky
else
# Uncomment sleep lines if necessary
#sleep 30
conky -c ~/Conky/conkymain &
#sleep 30
conky -c ~/Conky/conkyforecast &
#sleep 30
conky -c ~/Conky/conkyemail &
exit
fi
Pop that in, make it executable, uncomment the sleep lines if using Gnome or a heavy desktop manager to allow it to start up before conky starts, that way conky will stay on your screen.

Change the lines necessary to point to your conky files and put that in your startup.

At this time you can "Add New Item" to your panel, give it an Icon and use that manually as well. If conky is running it will stop it, if it's not running it will start it. :D

Hope this helps.

Have a nice day.
Bruce

haneya
December 19th, 2008, 03:46 PM
Well, thanks am going to use this script, but it didnt solve me problem. Before i had to add it to start up programs , and every time ubuntu starts conky start with it but today I restarted me ubuntu and conky doesnt appears on my desktop but its actually running but I cant see it thats what am wondering about ..

Thanks again ;)

Bruce M.
December 19th, 2008, 04:18 PM
Well, thanks am going to use this script, but it didnt solve me problem. Before i had to add it to start up programs , and every time ubuntu starts conky start with it but today I restarted me ubuntu and conky doesnt appears on my desktop but its actually running but I cant see it thats what am wondering about ..

Thanks again ;)

Did you comment out the sleep lines?

From this:
#sleep 30
To this:
sleep 30

Try increasing the sleep time ....

Another thought here. Are you using compiz?
If so there are some other issues, let me know and I'll get Hippy here to help. :D

Have a nice day.
Bruce

haneya
December 20th, 2008, 06:21 AM
Well , Thanks its really working (comment out the sleep statement ) you are the best :p

Bruce M.
December 20th, 2008, 08:06 AM
Well , Thanks its really working (comment out the sleep statement ) you are the best :p

The best? No, I don't think so. :D

Just passing on stuff I learned here because a lot of people helped me.

But I'm happy it is working for you.

Here's another thing you can do.

Create an "alias" in your ~/.bashrc file, I call this one "conke", the "e" is for edit:
alias conke='(gedit ~/Conky/scripts/ssc.sh ~/Conky/conkymain ~/Conky/conkyforecast ~/Conky/calendar ~/Conky/conkyemail ~/Conky/conkygcal ~/Conky/todo ~/Conky/scripts/myweather.template ~/Conky/scripts/conkyGoogleCalendar.template ~/.conkyForecast.config &)'
What this does is simple. Open a terminal type: conke and gedit will open everything you have concerning "conky". You'll have to change the file names and locations to suit your setup, but it is very handy when you want to edit something concerning your conky.

Have a nice day.
Bruce

Fenris_rising
January 20th, 2009, 11:53 AM
Hi all

this is the conky file for my eeepc 904HD. It includes 3 entries for the displaying of my usb mem sticks and SD media cards. Now I have a question as regards the code as regards the displaying of the info. Can i make it so that the visual info only shows up when a mem stick or the SD card is plugged in rather than as is at the moment where all the bars are displayed regardless of the sticks being present. Also as it stands each line is specific to each by the last word of each ie. disk, disk-1, UDISK.
can these lines also be amended to work 'non-specifically' as in any card or stick plugged in will display without having a specific tag.

regards

Fenris





# UBUNTU-CONKY
# A comprehensive conky script, configublack 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 (requiblack 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 (blackuces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer left
use_xft yes

# Update interval in seconds
update_interval 3.0

# Minimum size of text area
minimum_size 200 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 Purisa:size=7

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

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

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

${color black}CPU ${hr 1}$color
${color 413839}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'}
${freq}MHz Load: ${loadavg} Temp: ${acpitemp} C
${cpugraph 736F6E FF0000}

NAME ${alignr}PID CPU% MEM%
${top name 1}${alignr 5}${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2}${alignr 5}${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3}${alignr 5}${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4}${alignr 5}${top pid 4} ${top cpu 4} ${top mem 4}
${top name 5}${alignr 5}${top pid 5} ${top cpu 5} ${top mem 5}
${top name 6}${alignr 5}${top pid 5} ${top cpu 6} ${top mem 6}
${top name 7}${alignr 5}${top pid 5} ${top cpu 7} ${top mem 7}

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

Root: ${fs_free_perc /}% ${fs_bar 6 /}$color
sdb1: ${fs_free_perc /media/disk}% ${fs_bar 6 /media/disk}$color
sdc1: ${fs_free_perc /media/disk-1}% ${fs_bar 6 /media/disk-1}
sdd1: ${fs_free_perc /media/UDISK}% ${fs_bar 6 /media/UDISK}

${color black}NET ${hr 1}$color
${color black}Total:${color 413839} ${totaldown ath0}${color black} Down${color 413839} ${totalup ath0}${color black} Up
${color black}Wireless ${hr 1}$color
${color black}Down:${color 413839} ${downspeedgraph ath0 15,75 736F6E FF0000}${color black} Up:${color 413839} ${upspeedgraph ath0 15,75 736F6E FF0000} ${wireless_bitrate ath0}

${color black}ESSID:${color black} ${wireless_essid ath0}

dccrens
January 20th, 2009, 04:08 PM
use the following for the device;

${if_mounted /media/DEVICENAMEHERE} "insert you other details about what you want displayed" ${endif}

for example my "C" drive

${if_mounted /media/C} ${color4}C Drive: ${color5}${fs_used /media/C} ${endif}

Fenris_rising
January 20th, 2009, 05:31 PM
Hi there

Thanks for that I have been trying the if_mount for hours but with little success. I was close it seems but defo no cigar! Other than the config information that simply lists the options and vagually hints at the string is there any other more detailed information on setting up the strings correctly. Thanks again it's all working fine now. :D

regards

Fenris

dccrens
January 20th, 2009, 09:54 PM
Fenris,
All of the variables and settings are listed at the sourceforge site.
conky.sourceforge.net/config_settings.html

conky.sourceforge.net/variables.html

other than that I just google a lot :)

Sil3nt Pr0digy
May 27th, 2009, 12:51 AM
Sorry Guys, I just recently started messing with conky, and i cannot seem to get conky to start at the top right, even though i spawn it with the code "conky -a top_right" any suggestions guys? or do i need to edit my .conkyrc file again to incorporate some other piece of code that I am missing?

Bruce M.
May 27th, 2009, 07:45 AM
Sorry Guys, I just recently started messing with conky, and i cannot seem to get conky to start at the top right, even though i spawn it with the code "conky -a top_right" any suggestions guys? or do i need to edit my .conkyrc file again to incorporate some other piece of code that I am missing?

1. The conky setting (http://conky.sourceforge.net/config_settings.html) tell you to put
alignment tr
above TEXT in your conky file.

Visit us at: http://ubuntuforums.org/showthread.php?t=281865

Bruce

The Thug
August 13th, 2009, 08:27 AM
I'm a new Ubuntu user and from what i've seen would like to use Conky as a monitoring tool for my broadband connection (ppp0).

I have seen a couple of scripts that show both the upload and download speed but what I'm looking for is a script that will give me the total daily and monthly upload & download in Mb. Is this possible ?

Bruce M.
August 13th, 2009, 09:22 AM
I'm a new Ubuntu user and from what i've seen would like to use Conky as a monitoring tool for my broadband connection (ppp0).

I have seen a couple of scripts that show both the upload and download speed but what I'm looking for is a script that will give me the total daily and monthly upload & download in Mb. Is this possible ?

Yes, a program called "vnstat" it's in the repos...

More info here: Conky Hardcore! - vnstat (http://conky.linux-hardcore.com/?page_id=1104)

Have a nice day.
Bruce

The Thug
August 13th, 2009, 09:33 AM
Thanks Bruce, will have a look at it and play around.

kevinguillorytraining
October 9th, 2009, 01:48 PM
Thanks for the info, I appreciate it.

categ0re
December 30th, 2009, 11:04 AM
Hi.

I'd like to post a small HowTo.

Maybe some of you guys are using an overlay network like TOR or i2p to surf the web.
If you do, maybe you´d like to have BOTH IP's displayed in conky.

So well, here we go:

First, you need the ip.sh script.

Create a directory in your home called .scripts
cd into the new directory and create a new blank file with an editor you like to use. I prefer nano.

so well:

Displaying the "normal" IP Adress:

nano ip.sh

paste the following content:

#!/bin/bash
wget --no-proxy http://checkip.dyndns.org/ -q -O - |
grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'

(NOTE: --no-proxy option will be explained later. IT HAS TO BE THERE.)

save the file

chmod +x ip.sh

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

Displaying the i2p-Adress:

stay in /home/foo/.scripts

nano i2p.sh

paste the following content:

#!/bin/bash
wget http://checkip.dyndns.org/ -q -O - |
grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'

save the file

chmod +x i2p.sh

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

Now, we have to configure wget to use our TOR/i2p-server as proxy.

sudo nano /etc/wgetrc

search for:
#http_proxy = http://proxy:8080

uncomment and change to:
http_proxy = http://I2P_PROXY_IP:8080/ (http://I2P_PROXY_IP:????/)
NOTE: The proxy IP can be localhost if you are running TOR/i2p on your machine. Otherwise, enter the IP of your I2P-Server. Change the port to the one you defined, or leave it default.

uncomment
use_proxy = on

save the file

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

Configuring your .conkyrc

open .conkyrc with the editor of your choice. I stay with nano here.

nano /home/foo/.conkyrc

paste the following lines to your .conkyrc

Regular IP: ${alignr}${execi 1~/.scripts/ip.sh}
i2p IP: ${alignr}${execi 300~/.scripts/i2p.sh}

The "300" is important. Otherweise your i2p-server is gonna start to reject tunnels because of a high message delay.
Remember? We saved these two files in .scripts , the directory in your home folder.
Reload conky.

Feel free to add some colours or custom fonts to these lines. Example:

${font Sans:size=7:weight=bold}${color red}i2p IP: ${alignr}${execi 1~/.scripts/i2p.sh}

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

Keep in mind: If you are gonna use wget in the future, you have to use the --no-proxy option. Well, maybe you want wget to download files via encrypted networks. It's your choice.

regards, categ0re

jerryhannah
October 3rd, 2010, 05:10 AM
Im so sorry im a linux "noob" i see all this talk about creating this config file when i copied your code in the terminal to paste you conky config and tried to save it said could not find....does any1 have the heart to walk a dummy through step by step

kaivalagi
October 3rd, 2010, 06:11 AM
Im so sorry im a linux "noob" i see all this talk about creating this config file when i copied your code in the terminal to paste you conky config and tried to save it said could not find....does any1 have the heart to walk a dummy through step by step

The last post on this thread was back in December 2009! Try asking for help in the conkyrc thread here: http://ubuntuforums.org/showthread.php?t=281865
Better still have a look at the conky pitstop site linked in my sig, or the documentation for conky here: http://conky.sourceforge.net/documentation.html

HTH