Wednesday, August 8, 2012

Conky Main Configuration File (.conkyrc)

Conky is the sort of thing you probably want to customize. Copying and pasting the config as a whole is probably not a great idea. Read the documentation on the conky website and make your own. In order to read log files, you need to be in the 'adm' group.

alignment top_left
background no
border_width 1
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
use_xft yes
xftfont DejaVu Sans Mono:size=9
gap_x 5
gap_y 5
net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
double_buffer yes

format_human_readable yes

# pad_percents 2
top_cpu_separate true

minimum_size 1910 1080
maximum_width 1910
own_window yes
own_window_transparent yes
own_window_type desktop # normal/override/desktop (just try them)
own_window_class Conky
# own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager # ,maximized_vert,maximized_horz


text_buffer_size 4096

stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale yes
show_graph_range yes

cpu_avg_samples 2
net_avg_samples 2

top_name_width 15

lua_load ~/.conky/main.lua
lua_startup_hook startup 60 /var/log/auth.log /var/log/kern.log /var/log/daemon.log /var/log/user.log /var/log/apt/term.log /var/log/dpkg.log

TEXT ####################################################################


$nodename ($kernel) $alignr#
#
T = ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ CYHM temperature}°C, #
P = ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ CYHM pressure} mbar, #
H = ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ CYHM humidity}%, #
W = ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ CYHM wind_speed} km/h [#
${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ CYHM wind_dir_DEG}° #
${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ CYHM wind_dir}], #
${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ CYHM cloud_cover} (#
${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ CYHM weather})#

${lua_parse batteryinfo}
# ${color grey}Uptime:$color $uptime ($loadavg)
${lua_parse meminfo}
${lua_parse cpupairinfo 1 5}
${lua_parse cpupairinfo 2 6}
${lua_parse cpupairinfo 3 7}
${lua_parse cpupairinfo 4 8}
${lua_parse coloredtop 8 4}
${color white}${cpugraph ffffff ffffff}
# ${acpitemp} ${acpifan} ${acpiacadapter AC0} ${battery}
${lua buildfilesystems 645}#
${if_match ${lua conky_filesystemnumlines} >= 1}#
${lua_parse filesystemline 1}
${endif}#
${if_match ${lua conky_filesystemnumlines} >= 2}#
${lua_parse filesystemline 2}
${endif}#
${if_match ${lua conky_filesystemnumlines} >= 3}#
${lua_parse filesystemline 3}
${endif}#
${if_match ${lua conky_filesystemnumlines} >= 4}#
${lua_parse filesystemline 4}
${endif}#
${if_match ${lua conky_filesystemnumlines} >= 5}#
${lua_parse filesystemline 5}
${endif}#
${if_match ${lua conky_filesystemnumlines} >= 6}#
${lua_parse filesystemline 6}
${endif}#
${if_match ${lua conky_filesystemnumlines} >= 7}#
${lua_parse filesystemline 7}
${endif}#
${color grey}$hr
${color grey}Networking (up/down): #
${if_up eth0}${color grey}eth0 (${addr eth0}): $color ${upspeed eth0}${color grey}/$color${downspeed eth0}${endif}#
${if_up wlan0}${color grey} | wlan0 (${addr wlan0} on ${wireless_essid wlan0}, ${wireless_link_qual_perc wlan0}%): $color ${upspeed wlan0}${color grey}/$color${downspeed wlan0}${endif}#
${if_up usb0} | ${color grey}usb0 (${addr usb0}):  $color ${upspeed usb0}${color grey}/$color${downspeed usb0} ${endif}
${color grey}$hr
${execpi 300 ~/.conky/gmail.pl} 
${color grey}$hr
# ${color grey}System Log (as of $time):
# ${color white}${tail /var/log/syslog 10 5}
# ${execpi 5 ~/.conky/revtail.pl 10 /var/log/syslog}
${lua_parse printlog}

No comments:

Post a Comment