以下是conky的配置文件(中文天气预报见下一篇博客,改配置文件中已包括一部分):
background yes
use_xft yes
xftfont wenquanyi bitmap song:size=10
xftalpha 0.6
update_interval 1.0
total_run_times 0
own_window yes
own_window_type override
own_window_transparent yes
double_buffer yes
minimum_size 100 3
maximum_width 278
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
stippled_borders 8
border_margin 4
border_width 1
default_color white
default_shade_color black
default_outline_color black
alignment top_right
gap_x 10
gap_y 10
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none
TEXT
${color yellow}${time %B%d日}$alignc ${time %H:%M:%S}$alignr星期${time %a}$color
${color yellow}天气:${alignc} ${execi 7200 ~/.conky/weather.sh&&~/.conky/cat_weather.sh weather}$alignr${execi 7200 ~/.conky/cat_lowtemp.sh lowtemp}-${execi 7200 ~/.conky/cat_hightemp.sh hightemp}${execi 7200 ~/.conky/rm.sh rm}
${color green}系统状态 $color
开机时间:${color #cc2222} $uptime$color$alignr进程总数:${color #cc2222} ${processes}$color
CPU1使用率:${color #cc2222} ${cpu cpu1}%${color}$alignr CPU2使用率:${color #cc2222} ${cpu cpu2}%${color}
${color #000000}${cpugraph cpu1 24,137 000000 e818e7} ${color #000000}${cpugraph cpu2 24,137 000000 e818e7}$color
内存使用率:${color #cc2222} $alignr$mem/$memmax = $memperc%$color
电池状态:${color #cc2222} ${battery BAT1}$color$alignr 电池电量:${color #cc2222} ${battery_percent BAT1}%$color
IP:${color #cc2222} ${addrs eth0}$alignr$color 上传: ${color #cc2222}${upspeed eth0} K $color 下载: ${color #cc2222}${downspeed eth0} K$color
${color green}CPU 情况 $color
进程名$alignr 进程号 CPU% MEM%
${color #0077ff}${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 green}内存消耗 $color
进程名$alignr 进程号 CPU% MEM%
${color #0077ff}${top_mem name 1}$alignr ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${top_mem name 2}$alignr ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${top_mem name 3}$alignr ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color green}音乐播放器 MPD $color
状态:${color #88aadd} $mpd_status $alignr${color}音量:${color #88aadd} $mixer%$color
歌名:${color #88aadd} $mpd_title$color$alignr 歌手:${color #88aadd} $mpd_artist$color
歌曲进度:${color #88aadd} $alignr$mpd_elapsed/$mpd_length = $mpd_percent%
$mpd_bar$color
${color green}国内新闻 $color
${color F0AC77}${rss http://news.163.com/special/00011K6L/rss_gn.xml 5 item_titles 5}$color
${color green}国际新闻 $color
${color F0AC77}${rss http://news.163.com/special/00011K6L/rss_gj.xml 5 item_titles 5}$color
${color green}开源新闻 $color
${color F0AC77}${rss http://www.linuxeden.com/plus/rss.php?tid=1 5 item_titles 5}$color
|
阅读(2971) | 评论(0) | 转发(0) |