1 Attachment(s)
Re: Post your .conkyrc files w/ screenshots
After "simplifying" my bar code the other day, I had to start fighting the periodic "too many fonts" error again (even when I was down to 1 font), after trying everything I could think of I finally just uninstalled and re-installed Conky. Seems to be working fine after re-install.
I have 2 Conkys running now with my calendar separate from the rest (I originally thought the periodic date check may have been causing the error which seemed to occur after about 30 min to an hour from start up, so I separated it from the rest). I grew to like it separate and here's my latest, greatest, and so far stable version.
Attachment 242910
>>>Update <<<
Of course the moment I post this, Conky seemingly randomly crashes yet again (my main Conky anyways, my calendar is continuing to run just fine). I just don't get why it's complaining about the fonts. It only uses 1 font and I increased the buffer sizes quite a bit. I guess I'm left with just trying to change the friggin' source code or something to get rid of that stupid error :mad:. I just don't get why Conky cannot handle my bar code, it's not that complicated.
My current crashing conkyrc...
Code:
#conky performance settings
update_interval 3.0
total_run_times 0
cpu_avg_samples 4
no_buffers yes
double_buffer yes
override_utf8_locale no
max_specials 2000
text_buffer_size 2048
max_user_text 65000
#overall position of conky window
alignment middle_right
gap_x 20
gap_y 0
minimum_size 300 140
maximum_width 140
#overall appearance of conky window
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
draw_borders no
#own_window_argb_visual yes
#own_window_argb_value 100
#default text apperance
use_xft yes
xftalpha 0.9
xftfont Alfios:size=10
default_color FFEEDD #aliceblue #beige #bisque #white
draw_shades no
draw_outline no
default_shade_color black
default_outline_color black
uppercase no
#border around graphs
draw_graph_borders no
#colors
color1 CCFFFF
color2 CCDDFF
color3 CCBBFF
color4 CC99FF
color5 CC77FF
color6 CC55FF
color7 CC33FF
color8 CC11FF
color9 444444
color0 FF8888
TEXT
############################################################################################
${image /home/greg/Documents/Conky/Main/fang.png -p 0,3 -s 100x105}
${voffset 56}${color0}${alignr}Xubuntu 12.10${color}
${voffset 0}${alignr}${kernel}
${voffset -10}${color4}________________________${color}
############################################################################################
CPU${voffset -2}${alignr}[\
${if_match ${cpu cpu0} > 0}${color1}|\
${if_match ${cpu cpu0} > 5}${color1}|\
${if_match ${cpu cpu0} > 10}${color1}|\
${if_match ${cpu cpu0} > 15}${color2}|\
${if_match ${cpu cpu0} > 20}${color2}|\
${if_match ${cpu cpu0} > 25}${color2}|\
${if_match ${cpu cpu0} > 30}${color3}|\
${if_match ${cpu cpu0} > 35}${color3}|\
${if_match ${cpu cpu0} > 40}${color3}|\
${if_match ${cpu cpu0} > 45}${color4}|\
${if_match ${cpu cpu0} > 50}${color4}|\
${if_match ${cpu cpu0} > 55}${color4}|\
${if_match ${cpu cpu0} > 60}${color5}|\
${if_match ${cpu cpu0} > 65}${color6}|\
${if_match ${cpu cpu0} > 70}${color6}|\
${if_match ${cpu cpu0} > 75}${color6}|\
${if_match ${cpu cpu0} > 80}${color7}|\
${if_match ${cpu cpu0} > 85}${color7}|\
${if_match ${cpu cpu0} > 90}${color7}|\
${if_match ${cpu cpu0} > 95}${color8}|\
${if_match ${cpu cpu0} == 100}${color8}|\
${else}${color9}|${endif}\
${else}${color9}||${endif}\
${else}${color9}|||${endif}\
${else}${color9}||||${endif}\
${else}${color9}|||||${endif}\
${else}${color9}||||||${endif}\
${else}${color9}|||||||${endif}\
${else}${color9}||||||||${endif}\
${else}${color9}|||||||||${endif}\
${else}${color9}||||||||||${endif}\
${else}${color9}|||||||||||${endif}\
${else}${color9}||||||||||||${endif}\
${else}${color9}|||||||||||||${endif}\
${else}${color9}||||||||||||||${endif}\
${else}${color9}|||||||||||||||${endif}\
${else}${color9}||||||||||||||||${endif}\
${else}${color9}|||||||||||||||||${endif}\
${else}${color9}||||||||||||||||||${endif}\
${else}${color9}|||||||||||||||||||${endif}\
${else}${color9}||||||||||||||||||||${endif}\
${else}${color9}|||||||||||||||||||||${endif}\
${color}]
${voffset 4}${offset 10}${top name 1}${alignr}${top cpu 1}
${offset 10}${top name 2}${alignr}${top cpu 2}
${offset 10}${top name 3}${alignr}${top cpu 3}
############################################################################################
RAM${voffset -2}${alignr}[\
${if_match ${memperc} > 0}${color1}|\
${if_match ${memperc} > 5}${color1}|\
${if_match ${memperc} > 10}${color1}|\
${if_match ${memperc} > 15}${color2}|\
${if_match ${memperc} > 20}${color2}|\
${if_match ${memperc} > 25}${color2}|\
${if_match ${memperc} > 30}${color3}|\
${if_match ${memperc} > 35}${color3}|\
${if_match ${memperc} > 40}${color3}|\
${if_match ${memperc} > 45}${color4}|\
${if_match ${memperc} > 50}${color4}|\
${if_match ${memperc} > 55}${color4}|\
${if_match ${memperc} > 60}${color5}|\
${if_match ${memperc} > 65}${color6}|\
${if_match ${memperc} > 70}${color6}|\
${if_match ${memperc} > 75}${color6}|\
${if_match ${memperc} > 80}${color7}|\
${if_match ${memperc} > 85}${color7}|\
${if_match ${memperc} > 90}${color7}|\
${if_match ${memperc} > 95}${color8}|\
${if_match ${memperc} == 100}${color8}|\
${else}${color9}|${endif}\
${else}${color9}||${endif}\
${else}${color9}|||${endif}\
${else}${color9}||||${endif}\
${else}${color9}|||||${endif}\
${else}${color9}||||||${endif}\
${else}${color9}|||||||${endif}\
${else}${color9}||||||||${endif}\
${else}${color9}|||||||||${endif}\
${else}${color9}||||||||||${endif}\
${else}${color9}|||||||||||${endif}\
${else}${color9}||||||||||||${endif}\
${else}${color9}|||||||||||||${endif}\
${else}${color9}||||||||||||||${endif}\
${else}${color9}|||||||||||||||${endif}\
${else}${color9}||||||||||||||||${endif}\
${else}${color9}|||||||||||||||||${endif}\
${else}${color9}||||||||||||||||||${endif}\
${else}${color9}|||||||||||||||||||${endif}\
${else}${color9}||||||||||||||||||||${endif}\
${else}${color9}|||||||||||||||||||||${endif}\
${color}]
${voffset 4}${offset 10}${top_mem name 1}${alignr}${top_mem mem 1}
${offset 10}${top_mem name 2}${alignr}${top_mem mem 2}
${offset 10}${top_mem name 3}${alignr}${top_mem mem 3}
############################################################################################
${if_match ${swapperc} > 0}
SWP ${color}${alignr}$swap/$swapmax
${else}${endif}
HD ${alignr}${fs_used /} / ${fs_size /}${if_existing /dev/sdc1}
${execp df -H | grep 'sdc1' | cut -c56-66}${alignr}${execp df -H | awk '/sdc1/ {print $3, "/", $2}'}${else}${endif}${if_existing /dev/sdd1}
${execp df -H | grep 'sdd1' | cut -c56-66}${alignr}${execp df -H | awk '/sdd1/ {print $3, "/", $2}'}${else}${endif}${if_existing /dev/sde1}
${execp df -H | grep 'sde1' | cut -c56-66}${alignr}${execp df -H | awk '/sde1/ {print $3, "/", $2}'}${else}
${endif}
############################################################################################
Ethernet
Private IP ${alignr}${addr eth0}
${color0}${font Heydings Icons:bold:size=8}d${outlinecolor}${color}${font} [\
${if_match ${downspeedf eth0} > 0}${color1}|\
${if_match ${downspeedf eth0} > 19}${color1}|\
${if_match ${downspeedf eth0} > 38}${color2}|\
${if_match ${downspeedf eth0} > 58}${color2}|\
${if_match ${downspeedf eth0} > 77}${color3}|\
${if_match ${downspeedf eth0} > 96}${color3}|\
${if_match ${downspeedf eth0} > 115}${color4}|\
${if_match ${downspeedf eth0} > 134}${color5}|\
${if_match ${downspeedf eth0} > 154}${color6}|\
${if_match ${downspeedf eth0} > 173}${color7}|\
${if_match ${downspeedf eth0} >= 192}${color8}|\
${else}${color9}|${endif}\
${else}${color9}||${endif}\
${else}${color9}|||${endif}\
${else}${color9}||||${endif}\
${else}${color9}|||||${endif}\
${else}${color9}||||||${endif}\
${else}${color9}|||||||${endif}\
${else}${color9}||||||||${endif}\
${else}${color9}|||||||||${endif}\
${else}${color9}||||||||||${endif}\
${else}${color9}|||||||||||${endif}\
${color}] ${alignr}${font}${totaldown eth0}
#
${outlinecolor black}${color0}${font Heydings Icons:bold:size=8}u\
${outlinecolor}${color}${font} ${voffset -2}[\
${if_match ${upspeedf eth0} > 0}${color1}|\
${if_match ${upspeedf eth0} > 5}${color1}|\
${if_match ${upspeedf eth0} > 10}${color2}|\
${if_match ${upspeedf eth0} > 14}${color2}|\
${if_match ${upspeedf eth0} > 19}${color3}|\
${if_match ${upspeedf eth0} > 24}${color3}|\
${if_match ${upspeedf eth0} > 29}${color4}|\
${if_match ${upspeedf eth0} > 34}${color5}|\
${if_match ${upspeedf eth0} > 38}${color6}|\
${if_match ${upspeedf eth0} > 33}${color7}|\
${if_match ${upspeedf eth0} >= 48}${color8}|\
${else}${color9}|${endif}\
${else}${color9}||${endif}\
${else}${color9}|||${endif}\
${else}${color9}||||${endif}\
${else}${color9}|||||${endif}\
${else}${color9}||||||${endif}\
${else}${color9}|||||||${endif}\
${else}${color9}||||||||${endif}\
${else}${color9}|||||||||${endif}\
${else}${color9}||||||||||${endif}\
${else}${color9}|||||||||||${endif}\
${color}] ${alignr}${font}${totalup eth0}
############################################################################################
${if_running pithos}
Pithos
${color0}Song ${color}${execp php ~/Documents/Conky/Main/pithos.php 'title'}
${color0}Artist ${color}${execp php ~/Documents/Conky/Main/pithos.php 'artist'}
${color0}Album ${color}${execp php ~/Documents/Conky/Main/pithos.php 'album'}
${endif}
Re: Post your .conkyrc files w/ screenshots
I found what appears to be the offending line of code in the "stable" Conky 1.9.0 and 1.9.1 source.
File font.c has the following check...
Code:
if (font_count > MAX_FONTS) {
CRIT_ERR(NULL, NULL, "you don't need that many fonts, sorry.");
}
font_count++;
and from font.h...
Code:
#define MAX_FONTS 256
I'm not sure why the font count is going over max in my case.
It appears the latest font.cc in the current development version found here does not have this font check... I guess I will be trying to compile and run this latest version this weekend.
Re: Post your .conkyrc files w/ screenshots
Unfortunately the syntax and variable usage for the current Conky development (2.0) was too different to easily use my current config files; so I just altered the Conky 1.9.0 font.c file, compiled, and installed. Hopefully I got rid of the fatal crash with...
Code:
if (font_count > MAX_FONTS) {
NORM_ERR("font reached limit '%s'", font_count);
font_count = 1;
}
font_count++;
I'm assuming NORM_ERR just displays a message but does not kill conky. I'm hoping to track down the cause of font_count exceeding MAX_FONTS.
It's been a while since I've worked with C++, hopefully I got the syntax correct.
>>>Update<<<
Nope, didn't work. Now get a segmentation fault after a while. Back to the drawing board. ](*,)
Re: Post your .conkyrc files w/ screenshots
All of a sudden yesterday about 4:00pm my conkyemail script started crashing when connecting to my work exchange server through DavMail (local host connection). The DavMail is working since I can still connect to Exchange via Thunderbird, but the Conky email script is really flaky now.
It will only show one message in the inbox and not list anything except the first message.
I can get the messages to show up if I enter the settings for a POP server, but then I have to move the messages since the POP part of the script doesn't support the number of read/unread messages.
Has anyone else seen had this happen?
Re: Post your .conkyrc files w/ screenshots
I fought with "Conky-lua 2011 next generation" fonts for days, and finally got droid sans to work. I just could not stand the default fonts that it used. I also added public and private IP, along with "CPU Temps". I have also removed the local weather Temp. The blue color is the Fedora blue. This is on Kubuntu 12.04-2, and works great. It is rather simple compared to the conkyrs's that I have seen posted here.
http://imageshack.us/a/img822/6937/snapshot352.png
This is my conkyrc
Code:
# Conky settings #
background no
update_interval 1
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
no_buffers yes
text_buffer_size 2048
#imlib_cache_size 0
temperature_unit fahrenheit
# Window specifications #
own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
own_window_class conky-semi
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
border_inner_margin 0
border_outer_margin 0
minimum_size 225 700
maximum_width 300
alignment tr
gap_x 35
gap_y 55
# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
# Text settings #
use_xft yes
override_utf8_locale yes
xftfont Droid Sans:size=8
xftalpha 0.8
uppercase no
temperature_unit celsius
default_color FFFFFF
# Lua Load #
lua_load ~/.lua2/scripts/clock_rings.lua
lua_draw_hook_pre clock_rings
TEXT
${font Droid Sans:size=42}${time %e}
${goto 100}${font Droid Sans:size=18}${color 0066FF}${voffset -75}${time %b}
${font Droid Sans:size=10}${color 0066FF}${voffset 15}${time %A}${color 0066FF}${hr}
${goto 100}${font Droid Sans:size=15}${color FFFFFF}${voffset -35}${time %Y}
${font Droid Sans:size=40}${voffset 40}${alignc}${time %I}:${time %M}
${goto 175}${voffset -30}${font Droid Sans:size=12}${time %S}
${hr}
${image ~/.conkytheme/texas2.png -p 165,10 -s 35x35}
${color FFFFFF}${font Droid Sans:size=8}Uptime: ${uptime_short}
${color FFFFFF}${font Droid Sans:size=8}Processes: ${processes}
${color FFFFFF}${font Droid Sans:size=8}Running: ${running_processes}
${color FFFFFF}${font Droid Sans:size=8}CPU-Temps
${color FFFFFF}${font Droid Sans:size=8}CPU1: ${hwmon 1 temp 3} șC
${color FFFFFF}${font Droid Sans:size=8}CPU0: ${hwmon 1 temp 1} șC
${color 0066FF}${goto 125}${voffset -50}CPU
${color FFFFFF}${goto 125}${cpu cpu0}%
${color 0066FF}${goto 125}${voffset 55}RAM
${color FFFFFF}${goto 125}${memperc}%
${color 0066FF}${goto 125}${voffset 56}Swap
${color FFFFFF}${goto 125}${swapperc}%
${color 0066FF}${goto 125}${voffset 57}Disk
${color FFFFFF}${goto 125}${fs_used_perc /}%
${color 0066FF}${goto 130}${voffset 55}Net
${color FFFFFF}${goto 130}${downspeed eth1}
${color FFFFFF}${goto 130}${upspeed eth1}
${color 0066FF}${font Droid Sans:size=8}${alignr}${nodename}
${color 0066FF}${font Droid Sans:size=8}${alignr}${pre_exec cat /etc/issue.net} $machine
${color 0066FF}${font Droid Sans:size=8}${alignr}Kernel: ${kernel}
${color 0066FF}${font Droid Sans:size=8}${alignr}Public IP: ${execi 60 ~/.conkytheme/scripts/ip.sh}
${color 0066FF}${font Droid Sans:size=8}${alignr}Local IP: ${addr eth1}${font}
Re: Post your .conkyrc files w/ screenshots
Quote:
Originally Posted by
PeteAir
... It is rather simple compared to the conkyrs's that I have seen posted here.
Often the "simple" solution is the best solution. Your results are looking good.
3 Attachment(s)
Re: Post your .conkyrc files w/ screenshots
It appears I finally fixed the "too many fonts" error in conky 1.9.0 and 1.9.1.
In fonts.c I replaced this...
Code:
if (font_count > MAX_FONTS) {
CRIT_ERR(NULL, NULL, "you don't need that many fonts, sorry.");
}
font_count++;
with this...
Code:
if (font_count > 200) {
font_count--;
}
if (font_count < 200) {
font_count++;
}
and compiled.
I ran it overnight to make sure its stable. So far it runs with out issue as long as the Conky config has no more than 8 font changes; more causes some fonts to render as default (I haven't figured out why). Since it seems to be running fine for me now, I probably won't investigate further.
Attachment 243071
I also discovered another issue while playing around with my configs. For some reason my main Conky will render shades and outlines perfectly, but my calendar Conky renders the shades and outlines several pixels out of line. Except for screen position (bottom_left instead of middle_right) I'm using the exact same configuration settings in both configs (I copied and pasted them from one config to the other to be sure). I'm using Conky version 1.9.1 on Xubuntu 12.10. Let me know if you happen to know if this is a known problem with any possible fix.
On a side note, for you Android owners, I came across a live wall paper this weekend that reminded me a lot of Conky called "DeviceInfo Live Wallpaper". The free version is good enough for me, but if you want the customizable version you have to pay a little over 1 U.S. dollar.
Clean:
Attachment 243072
Cluttered:
Attachment 243073
Re: Post your .conkyrc files w/ screenshots
Quote:
Originally Posted by
Petro Dawg
It appears I finally fixed the "too many fonts" error in conky 1.9.0 and 1.9.1.
I also discovered another issue while playing around with my configs. For some reason my main Conky will render shades and outlines perfectly, but my calendar Conky renders the shades and outlines several pixels out of line. Except for screen position (bottom_left instead of middle_right) I'm using the exact same configuration settings in both configs (I copied and pasted them from one config to the other to be sure). I'm using Conky version 1.9.1 on Xubuntu 12.10. Let me know if you happen to know if this is a known problem with any possible fix.
Hi Petro Dawg
I've haven't run into the "too many fonts" error in years - Luck I guess and I tested your bars ( |||||||||||||| ) conky too.
Strange things happening with fonts lately; some fonts just don't work anymore (mostly *dings), some with a "-" in the name need "\-" to render properly.
IE: DS-Digital and Digital-7 = DS\-Digital and Digital\-7 and then the shade, shadow problem.
Above TEXT I have:
Code:
xftfont Monofur:bold:size=12
draw_shades yes # amplifies text if yes
default_shade_color 000000 ## black
draw_outline no # amplifies text if yes
default_outline_color 000000 ## black
I use shades... only
http://t.imgbox.com/adbYyn8P.jpg
Notice how changing the font for "Today" changes even the font above it (the blue and white text)
http://t.imgbox.com/adwSzOna.jpg
NOTE: Does not happen with shade = no
pop in a ${font} at the end of the line ... and fonts and shades are normal.
http://t.imgbox.com/abcmSNQs.jpg
... with "Today" larger
changing "This Month" to a smaller font ... does the same thing ...
http://t.imgbox.com/abbvMuyc.jpg
closing the font brings things back to normal with a tiny this month and everything else back to the default font.
http://t.imgbox.com/abbBPc3A.jpg
If I want everything small to the end the ${font} must be moved to the end.
You didn't show your calendar code, so the questions are:
- Do you have an open font call?
- What happens if you place a ${font} as the last command on the last line of your calendar conky?
1 Attachment(s)
Re: Post your .conkyrc files w/ screenshots
@Sector11
You are indeed a Conky Guru. I put a ${font} at the end of my calendar Conky and my shades work perfectly.
Attachment 243095
Re: Post your .conkyrc files w/ screenshots
Quote:
Originally Posted by
Sector11
...I've haven't run into the "too many fonts" error in years - Luck I guess and I tested your bars ( |||||||||||||| ) conky too.
Strange things happening with fonts lately; some fonts just don't work anymore (mostly *dings), some with a "-" in the name need "\-" to render properly...
I'm not sure how long you tested it, but my main conky with the custom bars seemed to randomly crash after about an hour of running (sometimes it took several hours). After removing the possibility of crash by deleting the crash option in the source code, I noticed the first thing to begin rendering incorrectly was the Heydings Icons font; even though it was not the first or last font called in the configuration file. To be on the safe side I removed the Heydings Icons from my configuration, it's quite possible they were the source of the issue the entire time. I may try reverting back to the original unaltered conky source code and running it without Heydings to see if it ever crashes.