I've been recently added conditional statement in conky and have some problems..
When I run my comp, in conky I don't see upspeedgraph and all belllow that.
When I restart conky, everything is just fine, but first time no.
If I drop if-else-endif statements, works well.
I make conditional statements becaouse Mobile internet on USB, to avoid mess without cond. statements.
So, I like idea, but it's annoying to restart conky every time I start comp.
Any help?
Here's mine .conkyrc
# set to yes if you want Conky to be forked in the background
background yes
# Use Xft?
use_xft yes
# Xft font when Xft is enabled
#xftfont Trebuchet MS:size=10
xftfont Sans:size=8
# Text alpha when using Xft
xftalpha 1
# Update interval in seconds
update_interval 1.0
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
own_window yes
own_window_transparent yes
#own_window_type override
own_window_type desktop
#own_window_type normal #use this if you want a nice shadow to appear around conky
# If own_window is yes, these window manager hints may be used
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 200 200
# Maximum width
maximum_width 200
# Draw shades?
draw_shades yes
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Draw borders around graphs
draw_graph_borders no
# Stippled borders?
# stippled_borders 8
# border margins
# border_margin 2
# border width
# border_width 1
# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white
# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment none
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 12
gap_y 24
# 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
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes
##############################################
##############################################
TEXT
${font Arial Black:size=24}$alignc${time %H:%M}${font Sans:size=4}
${font Arial:size=9:style=italic}$alignc${time %A, %d. %B %Y}
${font Sans:size=8}${color #aaff55}Uptime:$alignr${color #ffffff}$uptime${color #aaff55}
Kernel:${font Sans:size=7}$alignr$kernel${font Sans:size=8}
CPU:$alignr${cpu cpu1}% ${cpubar 6,100}${font Sans:size=3}
${font Sans:size=8}RAM:$alignr$memperc% ${membar 6,100}
${font Sans:size=7}$alignr$mem / $memeasyfree
${font Sans:size=8:bold}APP${alignr}MEM${font Sans:size=4}
$hr
${font Sans:size=8}${top_mem name 1} ${alignr}${top_mem mem_res 1}
${top_mem name 2} $alignr${top_mem mem_res 2}
${top_mem name 3} $alignr${top_mem mem_res 3}
${top_mem name 4} $alignr${top_mem mem_res 4}
${top_mem name 5} $alignr${top_mem mem_res 5}
${top_mem name 6} $alignr${top_mem mem_res 6}
${top_mem name 7} $alignr${top_mem mem_res 7}
${top_mem name 8} $alignr${top_mem mem_res 8}
${font Arial Black:size=10}HDD${font Sans:size=3}
$hr
${font Sans:size=8}Root:${alignr}${fs_used_perc /}% ${fs_bar 6,100 /}
${font Sans:size=7}$alignr${fs_used /} / ${fs_free /}
${font Sans:size=8}Home:${alignr}${fs_used_perc /home}% ${fs_bar 6,100 /home}
${font Sans:size=7}$alignr${fs_used /home} / ${fs_free /home}
${font Arial Black:size=10}NETWORK${font Sans:size=3}
$hr
${if_existing /proc/net/route eth1}
${font sans-serif:normal:size=8}WLAN: ${alignr}${wireless_essid eth1}
IP address:${font Sans:size=7}${alignr}${addr eth1}${font Sans:size=8}
Bitrate:${font Sans:size=7}${alignr}${wireless_bitrate eth1}${font Sans:size=8}
Signal:${alignr}${wireless_link_qual_perc eth1}% ${wireless_link_bar 6,100 eth1}
${downspeedgraph eth1}
DLS:${downspeed eth1} ${alignr}download: ${totaldown eth1}
${upspeedgraph eth1}
ULS:${upspeed eth1} ${alignr}upload: ${totalup eth1}
${endif}
${if_existing /proc/net/route ppp0}
${font sans-serif:normal:size=8}T-Mobile
IP address: ${alignr}${addr ppp0}
DLS:${downspeed ppp0} ${alignr}download: ${totaldown ppp0}
ULS:${upspeed ppp0} ${alignr}upload: ${totalup ppp0}
${endif}