Sei sulla pagina 1di 8

# conky configuration # edited by darcon@gmail.

com # set to yes if you want Conky to be forked in the background background no # X font when Xft is disabled, you can pick one with program xfontsel #font 5x7 #font 6x10 #font 7x13 #font 8x13 #font 9x15 #font *mintsmild.se* #font -*-*-*-*-*-*-34-*-*-*-*-*-*-* # Use Xft? use_xft yes # Xft font when Xft is enabled #xftfont Bitstream Vera Sans Mono:size=8 xftfont Terminus:size=8 # Text alpha when using Xft xftalpha 0.8 # Print everything to console? # out_to_console no # mail spool #mail_spool $MAIL # Update interval in seconds update_interval 2.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 no # Use double buffering (reduces flicker, may not work for everyone) double_buffer yes # Minimum size of text area minimum_size 1000 5 # Draw shades? draw_shades yes # Draw outlines? draw_outline no # Draw borders around text draw_borders no # Stippled borders? stippled_borders 8

# border margins border_margin 4 # border width border_width 1 # Default colors and also border colors default_color white default_shade_color black default_outline_color white # 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 450 gap_y 1 # 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 2 # number of net samples to average # set to 1 to disable averaging net_avg_samples 2 # Force UTF8? note that UTF8 support required XFT override_utf8_locale no # Add spaces to keep things from moving about? This only affects certain object s. use_spacer yes #Note: doesn't work in conky 1.2 =( # # # # mldonkey_hostname mldonkey_port mldonkey_login mldonkey_password Hostname Mldonkey Mldonkey Mldonkey for mldonkey stuff, defaults to localhost port, 4001 default login, default none password, default none

# Possible variables to be used: # # Variable Arguments # # # addr acpiacadapter acpifan (interface)

Description IP address for an interface ACPI ac adapter state. ACPI fan state

# # # # # # # # # # # # #

acpitemp adt746xcpu adt746xfan alignr alignc battery (num) (num)

ACPI temperature. CPU temperature from therm_adt746x Fan speed from therm_adt746x Right-justify text, with space of N Align text to centre Remaining capasity in ACPI or APM battery. ACPI battery number can be given as argument (default is BAT0).

buffers cached color cpu cpubar (height) (color)

Amount of memory buffered Amount of memory cached Change drawing color to color CPU usage in percents Bar that shows CPU usage, height is

# # cpugraph 2) # n hex, # # downspeed # # # downspeedgraph our 2) # # # exec # # # # # # # # # # # # # execbar downspeedf

bar's height in pixels (height),(width) (gradient colour 1) (gradient colour CPU usage graph, with optional colours i net net minus the #. Download speed in kilobytes Download speed in kilobytes with one decimal net (height),(width) (gradient colour 1) (gradient col Download speed graph, colours defined in hex, minus the #. shell command Executes a shell command and displays the output in conky. warning: this takes a lot more resources than other variables. I'd recommend coding wanted behaviour in C and posting a patch :-). shell command Same as exec, except if the first value return is a value between 0-100, it will use that number for a bar. The size for the bar is currently fixed, but that may change in the future. shell command Same as execbar, but graphs values interval, shell command Same as exec but with specific interval. Interval can't be less than

execgraph execi

# # # # # # # # # # # # # # # # # # # # # # # # if_running # endif # if_existing en # # if_mounted hing between # # else true # kernel # linkstatus ions # loadavg # (process) (file) i2c fs_size fs_used hr (fs) (fs) (height) fs_free_perc (fs) fs_free (fs) font fs_bar font

update_interval in configuration. Specify a different font. Only applies to one line. (height), (fs)Bar that shows how much space is used on a file system. height is the height in pixels. fs is any file on that file system. Free space on a file system available for users. Free percentage of space on a file system available for users. File system size File system used space Horizontal line, height is the height in pixels (dev), type, n I2C sensor from sysfs (Linux 2.6). dev may be omitted if you have only one I2C device. type is either in (or vol) meaning voltage, fan meaning fan or temp/tempf (first in C, second in F) meaning temperature. n is number of the sensor. See /sys/bus/i2c/devices/ on your local computer. if PROCESS is running, display everything if_running and the matching $ if FILE exists, display everything betwe

if_existing and the matching $endif (mountpoint) if MOUNTPOINT is mounted, display everyt if_mounted and the matching $endif Text to show if any of the above are not (interface) Kernel version Get the link status for wireless connect

(1), (2), (3) System load average, 1 is for past 1 minute, 2 for past 5 minutes and 3 for

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # mem membar memmax memperc metar_ob_time metar_temp metar_tempf metar_windchill metar_dew_point metar_rh metar_windspeed metar_winddir metar_swinddir metar_cloud metar_u2d_time ml_upload_counter ml_download_counter ml_nshared_files ml_shared_counter ml_tcp_upload_rate ml_tcp_download_rate ml_udp_upload_rate ml_udp_download_rate ml_ndownloaded_files ml_ndownloading_files mpd_artist mpd_album mpd_bar mpd_bitrate mpd_status mpd_title mpd_vol mpd_elapsed mpd_length mpd_percent new_mails nodename outlinecolor (color) (height) (height) machine mails

past 15 minutes. Machine, i686 for example Mail count in mail spool. You can use program like fetchmail to get mails from some server using your favourite protocol. See also new_mails. Amount of memory in use Bar that shows amount of memory in use Total amount of memory Percentage of memory in use

Temp in F There are a bunch of these and they are self-explanatory

total session upload in mb total session download in mb number of shared files total session shared in mb, buggy in some mldonkey versions tcp upload rate in kb/s tcp download rate in kb/s udp upload rate in kb/s udp download rate in kb/s number of completed files number of downloading files Artist in current MPD song (must be enabled at compile) Album in current MPD song Bar of mpd's progress Bitrate of current song Playing, stopped, et cetera. Title of current MPD song MPD's volume Song's elapsed time Song's length Percent of song's progress Unread mail count in mail spool. Hostname Change outline color

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # d. # # # #

pre_exec

shell command Executes a shell command one time before conky displays anything and puts output as text.

processes running_processes

Total processes (sleeping and running) Running processes (not sleeping), requires Linux 2.6

shadecolor stippled_hr swapbar swap swapmax swapperc sysname offset tail

(color) (space), (height) (height)

Change shading color Stippled (dashed) horizontal line Bar that shows amount of swap in use Amount of swap in use Total amount of swap Percentage of swap in use System name, Linux for example

time

pixels Move text over by N pixels logfile, lines (interval) Displays last N lines of supplied text text file. If interval is not supplied, Conky assumes 2x Conky's interval. Max of 30 lines. Max of 30 lines can be displayed. (format) Local time, see man strftime to get more information about format

totaldown

net

Total download, overflows at 4 GB on Linux with 32-bit arch and there doesn't seem to be a way to know how many times it has already done that before conky has started. This takes arguments in the form: top <name> <number> Basically, processes are ranked from highest to lowest in terms of cpu usage, which is what <num> represents. The types are: "name", "pid", "cpu", and "mem". There can be a max of 10 processes liste Same as top, except sorted by mem usage instead of cpu Total upload, this one too, may overflow Number of updates (for debugging)

top

type, num

top_mem totalup updates

type, num net

# # #

upspeed upspeedf

net net

Upload speed in kilobytes Upload speed in kilobytes with one decimal

# upspeedgraph lour 2) # # # uptime # # # # # uptime_short seti_prog seti_progbar seti_credit

net (height),(width) (gradient colour 1) (gradient co Upload speed graph, colours defined in hex, minus the #. Uptime Uptime in a shorter format Seti@home current progress Seti@home current progress bar Seti@hoome total user credit

(height)

# variable is given either in format $variable or in ${variable}. Latter # allows characters right after the variable and must be used in network # stuff because of an argument # stuff after 'TEXT' will be formatted on screen TEXT

${offset ${offset ${offset ${offset ${offset ${offset ${offset ${offset ${offset ${offset ${offset ${offset ${offset ${offset ${offset ${offset ${offset ${offset ${offset ${offset ${offset ${offset ${offset

240}${color slate grey}${time %a, } ${color }${time %e %B %G} 240}${color slate grey}${time %Z, }${color }${time %H:%M:%S} 240}${color slate grey}UpTime: ${color }$uptime 240}${color slate grey}Kern:${color }$kernel 240}${color slate grey}CPU:${color } $cpu% ${acpitemp}C 240}${cpugraph 20,130 000000 ffffff} 240}${color slate grey}Load: ${color }$loadavg 240}${color slate grey}Processes: ${color }$processes 240}${color slate grey}Running: ${color }$running_processes 240}${color 240}${color 240}${color 240}${color 240}${color 240}${color 240}${color 240}${color 240}${color 240}${color slate grey}Highest CPU: #ddaa00} ${top name 1}${top_mem cpu 1} lightgrey} ${top name 2}${top cpu 2} lightgrey} ${top name 3}${top cpu 3} lightgrey} ${top name 4}${top cpu 4} slate grey}Highest MEM: #ddaa00} ${top_mem name 1}${top_mem mem 1} lightgrey} ${top_mem name 2}${top_mem mem 2} lightgrey} ${top_mem name 3}${top_mem mem 3} lightgrey} ${top_mem name 4}${top_mem mem 4}

240}${color slate grey}MEM: ${color } $memperc% $mem/$memmax 240}${membar 3,100} 240}${color slate grey}SWAP: ${color }$swapperc% $swap/$swapmax 240}${swapbar 3,100} ${color }${fs_free /}/${fs_size /}

${offset 240}${color slate grey}ROOT: ${offset 240}${fs_bar 3,100 /}

${offset 240}${color slate grey}HOME: ${color }${fs_free /home}/${fs_size /home } ${offset 240}${fs_bar 3,100 /home} ${offset 240}${color slate grey}SLACK: ${color }${fs_free /mnt/slack}/${fs_size /mnt/slack} ${offset 240}${fs_bar 3,100 /mnt/slack} ${offset 240}${color slate grey}NET: ${offset 240}${color}Up: ${color }${upspeed eth0} k/s ${offset 240}${upspeedgraph eth0 20,130 000000 ffffff} ${offset 240}${color}Down: ${color }${downspeed eth0}k/s${color} ${offset 240}${downspeedgraph eth0 20,130 000000 ffffff}

${color slate grey}/var/log/messages: ${color}${exec tail -n20 /var/log/messages}

Potrebbero piacerti anche