Well, I've been lurking this thread for a while, and figured I'd post my first attempt at this stuff. I mostly used things I found here anyway, heh. There's probably some unnecessary things or redundancies, but I only discovered conky a few days ago.
First, the .conkyrc
Code:# conky configuration # set to yes if you want Conky to be forked in the background background yes # Use Xft? use_xft yes xftfont Terminus:size=8 text_buffer_size 2048 xftalpha 0.8 # Print everything to console? out_to_console no # mail spool #mail_spool $MAIL # Update interval in seconds update_interval 3.0 # This is the number of times Conky will update before quitting. # Set to zero to run forever. total_run_times 0 # Create own window instead of using desktop (required in nautilus) own_window yes own_window_type override own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager own_window_transparent yes # Use double buffering (reduces flicker, may not work for everyone) double_buffer yes # Draw shades? draw_shades yes # Draw outlines? draw_outline no # Draw borders around text draw_borders no # Stippled borders? stippled_borders 0 # border margins border_inner_margin 10 # border width border_width 2 # Default colors and also border colors default_color white default_shade_color black default_outline_color black # Minimum size of text area minimum_size 50 600 maximum_width 900 # Text alignment, other possible values are commented #alignment top_left alignment top_right #alignment bottom_left #alignment bottom_right # Gap between borders of screen and text # same thing as passing -x at command line gap_x 5 gap_y 30 # 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 1 # number of net samples to average # set to 1 to disable averaging net_avg_samples 1 # Force UTF8? note that UTF8 support required XFT override_utf8_locale no # Add spaces to keep things from moving about? This only affects certain objects. use_spacer none # stuff after 'TEXT' will be formatted on screen # -- Lua Load -- # lua_load ~/scripts/conky_widgets.lua lua_draw_hook_pre widgets TEXT [${color #ffccaa}$nodename${color}] ${alignr}${color}[${color #ffccaa}$kernel${color}] Uptime: ${alignr}${color #CCCCCC}$uptime ${color #ffccaa}System: ${color orange}${hr 2} ${color}swap: ${alignr}${color #CCCCCC}$swap${color}/${color #CCCCCC}$swapmax${color}, ${color #CCCCCC}$swapperc% ${color}avg load: ${alignr}${color #CCCCCC}$loadavg${color} ${color}processes: ${color #CCCCCC}$processes${color}${alignr}running: ${color #CCCCCC}$running_processes ${color #ffccaa}Wireless: ${color orange}${hr 2} ${color}internal ip: ${alignr}${color #CCCCCC}${addr wlan0} ${color}external ip: ${alignr}${color #CCCCCC}${execi 3600 wget -O - http://ip.tupeux.com | tail} ${color}signal: ${alignr}${color #CCCCCC}${wireless_link_qual_perc wlan0}% ${color}total down: ${color #CCCCCC}${totaldown wlan0} ${alignr}${color}total up: ${color #CCCCCC}${totalup wlan0} ${color}down speed: ${color #CCCCCC}${downspeed wlan0} ${alignr}${color}up speed: ${color #CCCCCC}${upspeed wlan0} ${color orange}${hr 2} ${color}cpu: ${color #CCCCCC}${freq} MHz ${color}load: ${color #CCCCCC}${cpu} ${color}ram: ${color #CCCCCC}$mem${color}/${color #CCCCCC}$memmax${color} ${color}root: ${color #CCCCCC}${fs_free /} free ${color}120G: ${color #CCCCCC}${fs_free /media/120G} free ${color}320G: ${color #CCCCCC}${fs_free /media/320G} free ${color}${time %a %b %d} ${time %r} ${time %Y}
These are just the options I set for each ring, to be used in londonali1010's excellent widgets script.
Code:cr = cairo_create(cs) ring(cr, 'cpu', 'CPU0', 100, 0xFFFFFF, 0.1, 0xFF9922, 0.8, 160, 298, 110, 12, 0, 270) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle cairo_destroy(cr) cr = cairo_create(cs) ring(cr, 'memperc', '', 100, 0xFFFFFF, 0.1, 0xFF9922, 0.8, 160, 298, 97, 12, 0, 270) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle cairo_destroy(cr) cr = cairo_create(cs) ring(cr, 'fs_used_perc', '/', 100, 0xFFFFFF, 0.1, 0xFF9922, 0.6, 160, 298, 84, 12, 0, 270) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle cairo_destroy(cr) cr = cairo_create(cs) ring(cr, 'fs_used_perc', '/media/120G', 100, 0xFFFFFF, 0.1, 0xFF9922, 0.6, 160, 298, 71, 12, 0, 270) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle cairo_destroy(cr) cr = cairo_create(cs) ring(cr, 'fs_used_perc', '/media/320G', 100, 0xFFFFFF, 0.1, 0xFF9922, 0.6, 160, 298, 58, 12, 0, 270) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle cairo_destroy(cr) -- Inner Clock cr = cairo_create(cs) ring(cr, 'time', '+%S', 60, 0xFFFFFF, 0.1, 0xFF9922, 0.6, 160, 298, 42, 5, 0, 360) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle cairo_destroy(cr) cr = cairo_create(cs) ring(cr, 'time', '+%M', 60, 0xFFFFFF, 0.1, 0xFF9922, 0.6, 160, 298, 35, 9, 0, 360) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle cairo_destroy(cr) cr = cairo_create(cs) ring(cr, 'time', '+%I', 12, 0xFFFFFF, 0.1, 0xFF9922, 0.6, 160, 298, 24, 13, 0, 360) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle cairo_destroy(cr)
The inner rings are a clock, with the outer ring being seconds, then minutes, then the hour in the middle.
Bookmarks