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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-06-2010, 09:13 AM
|
#1
|
LQ Newbie
Registered: Aug 2009
Posts: 2
Rep:
|
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..
|
|
|
01-06-2010, 09:24 AM
|
#2
|
Senior Member
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Rep:
|
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}
|
|
|
|
01-06-2010, 09:40 AM
|
#3
|
Member
Registered: Feb 2009
Distribution: Debian, CentOS 5, Gentoo, FreeBSD, Fedora, Mint, Slackware64
Posts: 208
Rep:
|
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.
|
|
|
01-08-2010, 05:18 AM
|
#4
|
LQ Newbie
Registered: Aug 2009
Posts: 2
Original Poster
Rep:
|
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..
|
|
|
All times are GMT -5. The time now is 02:25 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|