You are not logged in.
The font tags in my conky script seem to be cutting off the output of my command. Let me explain. Here is my .conkyrc:
background yes
use_xft yes
xftfont URW Gothic L Book:size=9
update_interval 5
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
minimum_size 0 0
maximum_width 200
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_color c5c8ce
default_shade_color white
default_outline_color white
alignment bottom_left
gap_x 1070
gap_y 500
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
TEXT
${font Inconsolata:size=12}${execpi 3600 cal | sed "s/$(date '+%d')/\${font Inconsolata:size=12:weight=bold}\${color FFFFFF}&\${color}\${font Inconsolata:size=12}/" | sed "s/$(date '+%B %Y')/\${font Inconsolata:size=12:weight=bold}&\${font Inconsolata:size=12}/"}${font}
${hr 1}
${font URW Gothic L Book:size=9:weight=bold}RAM:${font}${alignr}$mem/$memmax
${color FFFFFF}${alignc}${membar 5,120}${color}
${font URW Gothic L Book:size=9:weight=bold}CPU:${font}${alignr}${cpu cpu0}%
${alignc}${color FFFFFF}${cpubar cpu0 5,120}${color}
${font}
If you run the command I have in the execpi tag...
cal | sed "s/$(date '+%d')/\${font Inconsolata:size=12:weight=bold}\${color FFFFFF}&\${color}\${font Inconsolata:size=12}/" | sed "s/$(date '+%B %Y')/\${font Inconsolata:size=12:weight=bold}&\${font Inconsolata:size=12}/"
...you get the following output (it will be a bit different if you run this on a day other than December 19th)...
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 ${font Inconsolata:size=12:weight=bold}${color FFFFFF}19${color}${font Inconsolata:size=12}
20 21 22 23 24 25 26
27 28 29 30 31
...which seems to be parsed incorrectly by conky, which cuts off the rest of the calendar as shown:
Why is this happening, and how can I fix it? Thanks.
Last edited by linkmaster03 (2009-12-20 17:39:07)
Offline
I don't know if it's a bug or if it's simply how conky is designed, but I do know a solution - increase the text buffer:
text_buffer_size 512
Offline
Thanks, that fixed it!
Offline