LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-06-2010, 09:13 AM   #1
Aray Suck
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Rep: Reputation: 0
Conky's Config Problem


I'm using Conky in my Ubuntu 9.10 Karmic. I have an error message like this:
Quote:
Conky: border_margin is deprecated, please use window.border_inner_margin instead
Conky: one or more $endif's are missing
Conky: desktop window (1a00065) is subwindow of root window (10d)
Conky: window type - override
Conky: drawing to created window (0x3600001)
Conky: drawing to double buffer
This is my conky's config:
Quote:
# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
text_buffer_size 2048
# Update interval in seconds
update_interval 4
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type override
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 206 0
#maximum_width 200
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_margin 5
# border width
border_width 2
# Default colors and also border colors
default_color white
#default_shade_color black
#default_outline_color grey
own_window_colour white
# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment middle_right
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 35
gap_y 50
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2
# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer none
TEXT
SYSTEM ${hr 2}
#${alignc 10}${font Vtks Revolt:size=18}AraySuck${font}
${alignc 20}${font AngelicWar:size=22}Aray Suck${font}
${alignc}${font AngelicWar:size=10}lagi puyenk blajar Linux${font}
Kernel: ${alignr}${kernel}
CPU1: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,70}
CPU2: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,70}
Freq: ${freq}MHz ${alignr}Temp: ${acpitemp}°C
RAM: $memperc% ${alignr}${membar 8,70}
SWAP: $swapperc% ${alignr}${swapbar 8,70}
#Battery: ${battery_percent BAT0}% ${alignr}${battery_bar 8,70 BAT0}
Uptime: ${alignr}${uptime}
${alignc 10}${font Arial Black:size=18}${time %H:%M}${font}
${alignc}${time %A %d %B %Y}
HDD ${hr 2}
${voffset 4}Root:
${fs_used /}/${fs_size /} ${alignr}${fs_bar 8,70 /}
${voffset 4}Data:
${fs_used /media/Data}/${fs_size /media/Data} ${alignr}${fs_bar 8,70 /media/Data}
${voffset 4}Master:
${fs_used /media/Master}/${fs_size /media/Master} ${alignr}${fs_bar 8,70 /media/Master}
#${voffset 4}Drive Temp: ${alignr}${execi 10 hddtemp /dev/sda | cut -d ” ” -f 4}
${voffset 4}Disk I/O: ${alignr}${diskio sda}
NETWORK ${hr 2}${if_existing /proc/net/route wlan0}
Up: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 8,70 BEBEBE BEBEBE}
Down: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 8,70 BEBEBE BEBEBE}
Upload: ${alignr}${totalup wlan0}
Download: ${alignr}${totaldown wlan0}
Signal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,70 wlan0}
Local Ip: ${alignr}${addr wlan0}
${else}${if_existing /proc/net/route eth0}
Up: ${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 8,70 789E2D A7CC5C}
Down: ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 8,70 789E2D A7CC5C}
Upload: ${alignr}${totalup eth0}
Download: ${alignr}${totaldown eth0}
Local Ip: ${alignr}${addr eth0}
${endif}${else}${if_existing /proc/net/route eth1}
Up: ${upspeed eth1} kb/s ${alignr}${upspeedgraph eth1 8,70 789E2D A7CC5C}
Down: ${downspeed eth1} kb/s ${alignr}${downspeedgraph eth1 8,70 789E2D A7CC5C}
Upload: ${alignr}${totalup eth1}
Download: ${alignr}${totaldown eth1}
Local Ip: ${alignr}${addr eth1}
${endif}${else}
${font PizzaDude Bullets:size=14}4${font} Network Unavailable
${endif}
PROCESSES ${hr 2}
NAME $alignr MEM CPU
${top name 1} $alignr ${top mem 1} ${top cpu 1}
${top name 2} $alignr ${top mem 2} ${top cpu 2}
${top name 3} $alignr ${top mem 3} ${top cpu 3}
${top name 4} $alignr ${top mem 4} ${top cpu 4}
${top name 5} $alignr ${top mem 5} ${top cpu 5}
#${top name 6} $alignr ${top mem 6} ${top cpu 6}
#${top name 7} $alignr ${top mem 7} ${top cpu 7}
#${top name 8} $alignr ${top mem 8} ${top cpu 8}
Where should I fix that and how?
Thanks before..
 
Old 01-06-2010, 09:24 AM   #2
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Take a look at your config, there is a ${endif} missing somewhere, I haven' seen the config too clearly but see if it's after
Quote:
Local Ip: ${alignr}${addr wlan0}
 
Old 01-06-2010, 09:40 AM   #3
nuwen52
Member
 
Registered: Feb 2009
Distribution: Debian, CentOS 5, Gentoo, FreeBSD, Fedora, Mint, Slackware64
Posts: 208

Rep: Reputation: 46
I think what you are looking for is:
Code:
NETWORK ${hr 2}${if_existing /proc/net/route wlan0}
Up: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 8,70 BEBEBE BEBEBE}
Down: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 8,70 BEBEBE BEBEBE}
Upload: ${alignr}${totalup wlan0}
Download: ${alignr}${totaldown wlan0}
Signal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,70 wlan0}
Local Ip: ${alignr}${addr wlan0}
${else}${if_existing /proc/net/route eth0}
Up: ${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 8,70 789E2D A7CC5C}
Down: ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 8,70 789E2D A7CC5C}
Upload: ${alignr}${totalup eth0}
Download: ${alignr}${totaldown eth0}
Local Ip: ${alignr}${addr eth0}
${else}${if_existing /proc/net/route eth1}
Up: ${upspeed eth1} kb/s ${alignr}${upspeedgraph eth1 8,70 789E2D A7CC5C}
Down: ${downspeed eth1} kb/s ${alignr}${downspeedgraph eth1 8,70 789E2D A7CC5C}
Upload: ${alignr}${totalup eth1}
Download: ${alignr}${totaldown eth1}
Local Ip: ${alignr}${addr eth1}
${else}${font PizzaDude Bullets:size=14}4${font} Network Unavailable
${endif}${endif}${endif}
I don't know much about conky config files, but this looked logical to me. The problem was in nesting the if statements. When writing something like this, it might make sense to indent each level of your if statements, so it is easier to see how they match with the endif statements. You can remove the indents once it is logically correct.

Last edited by nuwen52; 01-06-2010 at 09:43 AM.
 
Old 01-08-2010, 05:18 AM   #4
Aray Suck
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thx for your replies, Guys..
I missed two things.. "Border Margin" and the {endif} syntax
Code:
# border margins
border_inner_margin 5


NETWORK ${hr 2}
${if_existing /proc/net/route ppp0} 
Up: ${upspeed ppp0} ${alignr}${upspeedgraph ppp0 8,70 BEBEBE BEBEBE}
Down: ${downspeed ppp0} ${alignr}${downspeedgraph ppp0 8,70 BEBEBE BEBEBE}
Upload: ${alignr}${totalup ppp0}
Download: ${alignr}${totaldown ppp0}
Local Ip: ${alignr}${addr ppp0}
${else}
${font PizzaDude Bullets:size=14}4${font} Network Unavailable
${endif}

${if_existing /proc/net/route eth1} 
Up: ${upspeed eth1} ${alignr}${upspeedgraph eth1 8,70 789E2D A7CC5C}
Down: ${downspeed eth1} ${alignr}${downspeedgraph eth1 8,70 789E2D A7CC5C}
Upload: ${alignr}${totalup eth1}
Download: ${alignr}${totaldown eth1}
Local Ip: ${alignr}${addr eth1}
${else}
${font PizzaDude Bullets:size=14}4${font} Network Unavailable
${endif}
Problem solved.. Thx anyway, Guys..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sound problem: maybe alsa config problem tajo01 Debian 6 04-28-2006 05:52 AM
Obscure problem of gtk-config or gtk12-config amitbhandari01 Linux - Software 2 03-19-2006 10:38 AM
Yet another IP config problem ;-) speleo Linux - Networking 2 11-23-2004 02:09 AM
wx-config problem strange problem plz help glacier1985 Linux - Software 4 07-26-2003 06:20 PM
possible samba config problem or network config issue? rruffin Linux - Networking 3 06-03-2003 05:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration