伟的博客 研发工程师

conky配置文件2010-09-29

2011-03-10

/etc/conky/conky.conf # Conky, a system monitor, based on torsmo # # Any original torsmo code is licensed under the BSD license # # All code written since the fork of torsmo is licensed under the GPL # # Please see COPYING for details # # Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen # Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS) # All rights reserved. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see http://www.gnu.org/licenses/. # #基础设定 background yes cpu_avg_samples 2 net_avg_samples 2 out_to_console no use_xft yes xftfont 文泉驿等宽微米黑:size=8 xftalpha 0.8 mail_spool $MAIL update_interval 1 own_window yes own_window_transparent yes own_window_hints undecorated,below,skip_taskbar own_window_type override double_buffer yes minimum_size 260 5 maximum_width 220 draw_shades no draw_outline no draw_borders no stippled_borders no # border_margin 4 border_width 1 default_color white default_shade_color black default_outline_color black gap_x 12 gap_y 30 alignment top_right use_spacer none no_buffers yes uppercase no #显示信息 TEXT ${color}时间&天气 ${hr 1} ${font 文泉驿微米黑:size=20}${time %H:%M:%S}${font 文泉驿微米黑:size=11} ${time %m月%d日%A}${font} ${color}${execi 3600 python ~/.conky/conkyForecast.py –locale=cn –location=CHXX0116 –datatype=CN} ${color gold} ${font Weather:size=25}${execi 3600 python ~/.conky/conkyForecast.py –locale=cn –location=CHXX0116 –datatype=WF}${font}${color}${voffset -20}${offset 20}${execi 3600 python ~/.conky/conkyForecast.py –locale=cn –location=CHXX0116 –datatype=CC}${offset 10}${execi 3600 python ~/.conky/conkyForecast.py –locale=cn –location=CHXX0116 –datatype=LT}~${execi 3600 python ~/.conky/conkyForecast.py –locale=cn –location=CHXX0116 –datatype=HT} ${offset 57}风向:${execi 3600 python ~/.conky/conkyForecast.py –locale=cn –location=CHXX0116 –datatype=WD}${font}${offset 10}风速:${execi 3600 python ~/.conky/conkyForecast.py –location=CHXX0116 –datatype=WS} # ${offset 56}日出/日落: ${color}${execi 3600 python ~/.conky/conkyForecast.py –locale=cn –location=CHXX0116 –datatype=SR}/${execi 3600 python ~/.conky/conkyForecast.py –locale=cn –location=CHXX0116 –datatype=SS} ${color} ${execi 3600 python ~/.conky/conkyForecast.py –locale=cn –location=CHXX0116 –datatype=DW –startday=1 –endday=4 –spaces=3} ${color gold} ${font Weather:size=21}${execi 3600 python ~/.conky/conkyForecast.py –locale=cn –location=CHXX0116 –datatype=WF –startday=1 –endday=4 –spaces=2}${font} ${color} ${execi 3600 python ~/.conky/conkyForecast.py –locale=cn –location=CHXX0116 –datatype=HT –startday=1 –endday=4 –spaces=5} ${color} ${execi 3600 python ~/.conky/conkyForecast.py –locale=cn –location=CHXX0116 –datatype=LT –startday=1 –endday=4 –spaces=5} # # ${color}Gmail ${hr 1} # ${color}你的收件箱中有 ${color gold}${execpi 300 ~/.conky/check_gmail.sh} ${color}封未读邮件 ${color}系统信息 ${hr 1} ${color}登录信息: $alignr$nodename ${color}内核信息: $alignr$kernel ${color}开机时长: $alignr$uptime ${execi 99999 cat /proc/cpuinfo grep “model name” -m1 cut -d”:” -f2 cut -d” “ -f2- sed ‘s#Processor ##’} ${color}CPU温度: ${alignr}${acpitemp}°C ${color}CPU频率: ${alignr}${freq} MHz 进程数量: ${alignr}$processes ($running_processes running) 系统负载: ${alignr}$loadavg CPU1 ${cpu cpu1}%${alignr} ${voffset -6}${cpugraph cpu1 25,105 ffffff ff4500 } $alignr${offset -2}${cpugraph cpu2 25,105 ffffff 436eee} 内存使用 ${alignr}$mem / $memmax ($memperc%) ${membar 4} 交换分区 ${alignr}$swap / $swapmax ($swapperc%) ${swapbar 4} 磁盘使用 ${alignr}${fs_used /} / ${fs_size /} (${fs_used_perc /}%) ${fs_bar 4 /} ${color}CPU/内存${alignr} PID CPU% MEM% ${top name 1}${alignr} ${top pid 1} ${top cpu 1} ${top mem 1} ${top name 2}${alignr} ${top pid 2} ${top cpu 2} ${top mem 2} ${top name 3}${alignr} ${top pid 3} ${top cpu 3} ${top mem 3} ${color}剩余电量:${color}${battery_percent BAT1}%${alignr}剩余时间:${if_match “${acpiacadapter}”==”on-line”}(外接电源)${else}${battery_time BAT1}${endif} ${if_match ${battery_percent BAT1}>75}${color}${else}${if_match ${battery_percent BAT1}<20}${color #960000}${else}${color #969600}${endif}${endif}${battery_bar BAT1} ${color}网络连接 ${hr 1} ADSL拨号建立的IP地址:${addrs ppp0} 有线网卡的IP地址:${addrs eth0} 无线网卡的IP地址:${addrs wlan0} ${color}接入端口:${tcp_portmon 1 32767 count}${offset 55}连出端口:${tcp_portmon 32768 61000 count} ${color}有线网: ${color}下载: ${downspeed eth0} /s ${alignr}上传: ${upspeed eth0} /s ${downspeedgraph eth0 25,105 ffffff ff4500} ${alignr}${upspeedgraph eth0 25,105 ffffff 436eee} # 下载总计 ${totaldown eth0} ${alignr}上传总计 ${totalup eth0} ${color}无线网: ${color}下载: ${downspeed wlan0} /s ${alignr}上传: ${upspeed wlan0} /s ${downspeedgraph wlan0 25,105 ffffff ff4500} ${alignr}${upspeedgraph wlan0 25,105 ffffff 436eee} # 下载总计 ${totaldown wlan0} ${alignr}上传总计 ${totalup wlan0} # ${color}磁盘使用 ${hr 1} # Root_/: ${alignr}${fs_free /} / ${fs_size /} # ${fs_bar 4 /} # Home: ${alignr}${fs_free /home} / ${fs_size /home} # ${fs_bar 4 /home} # ${color}RSS阅读${hr 1} # ${color}${rss http://rss.cnfol.com/1717.xml 5 item_titles 5} # ${color}${rss http://rss.cnfol.com/1710.xml 5 item_titles 2}

Comments