# conky configuration for FreeBSD # weather information pulled from noaa # via a script that parses lynx output # see: # http://home.comcast.net/~j_mccue/config/weather.txt # IMPORTANT ------ # Note, You can/should schedule the script in cron, *but* I # ^^^^ would execute it every 3 or 4 hours, no less than 3. # ^^^^ First the noaa site is not updated too often. Also # ^^^^ noaa can detect multiple queries and will block your # IP for a period of time if too many queries are made. # It does not take too many quieries in a short period # of time for a block to occur. # # Do not forget to: # 1. change network interface, mine is re0 # 2. You amy want to adjust 'own_window', I have it set to 'no' # 3. You may need to change Font 'University LT Roman', # that font was a gift someone purched for me # text_buffer_size 2560 maximum_width 365 minimum_size 365 temperature_unit Fahrenheit alignment top_right background no cpu_avg_samples 2 double_buffer yes draw_borders no draw_graph_borders yes draw_outline no draw_shades no use_xft yes xftfont Monospace:size=7 gap_x 0 gap_y 0 net_avg_samples 2 no_buffers yes out_to_console no out_to_stderr no extra_newline no stippled_borders 0 update_interval 2.0 uppercase no use_spacer none show_graph_scale no show_graph_range no own_window no own_window_type override own_window_type normal own_window_transparent yes own_window_class conky-semi own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager border_width 0 # List Colors default_color white default_outline_color green default_shade_color red color0 thistle3 color1 SteelBlue color2 azure3 color3 FFE500 color4 99ff80 color5 SeaGreen1 color6 FF7F00 color7 PowderBlue color8 AliceBlue color9 lightblue # Script ~/bin/Util/show_weather_tor.sh prints # one of the forcasts retrieved by script weather.txt TEXT ${color2}${font Comic Sans MS:regular:size=10}${execi 10 ~/bin/Util/conky_amarok.sh conky 41} ${color7}${font University LT Roman:bold:size=27}F$color${font University LT Roman:bold:size=17}${color7}reeBSD \ ${color8}${font University LT Roman:bold:size=10}${execi 18000 uname -m} \ ${color7}${voffset -7}${font University LT Roman:bold:size=17}${execi 14400 uname -r} ${color6}${font Monospace:size=11}\ ${color0}${execi 300 ~/bin/Util/show_weather_tor.sh 3} ${color5}MEM:${color9} ${offset 15}RAM: $mem/$memmax - $memperc% ${membar 6} ${offset 15}Swap: $swap/$swapmax - $swapperc% ${swapbar 6} ${color5}File systems:${color9} ${offset 15}/home ${color7}${fs_used /home}/${fs_size /home} ${fs_bar /home} ${offset 15}/usr ${color7}${fs_used /usr}/${fs_size /usr} ${fs_bar /usr} ${offset 15}/var ${color7}${fs_used /var}/${fs_size /var} ${fs_bar /var} # File $HOME/TEMP/real.IP holds my actual IP, a cron script # generates once per week by accessing # http://checkip.dyndns.org/ # via lynx ${color5}NET:${color9} ${offset 15}Net IP: ${addr re0} / ${execi 3000 cat ~/TEMP/real.IP} ${offset 15}Net Speed: Up/Down: ${upspeed re0} / ${downspeed re0} k/s ${offset 15}Net Total: Up/Down: ${totalup re0} / ${totaldown re0} ${color5}CPU:${color9} ${offset 15}CPU Usage: ${cpu cpu0}% ${cpubar cpu0 6} # degree is a simple program I wrote to convert centigrade to fahrenheit # -q means 'quiet, print just the degree #' and quit ${offset 15}Processes: $processes Load: $loadavg ${offset 15}CPU Temp: ${execi 300 sysctl -n dev.cpu.0.temperature | degree -q}°F ${color5}Processes:${color9} ${offset 15}${top cpu 1}% ${top pid 1} ${top name 1} ${offset 15}${top cpu 2}% ${top pid 2} ${top name 2} ${offset 15}${top cpu 3}% ${top pid 3} ${top name 3} ${offset 15}${top cpu 4}% ${top pid 4} ${top name 4} #--- a script to cat a file with notes/reminders for today's date/time ${color5}Notes:${color3} ${execi 280 ~/bin/Util/show_reminder.sh mini | cut -c '1-40' | sed 's/^/ /'} #--- a script to execute "fortune zippy | fmt -w 40" ${color5}Zippy:${color9} ${execi 30 ~/bin/Util/show_zippy.sh tor_01}