当前位置: 首页 > 工具软件 > Conky > 使用案例 >

我的conky配置

杭令
2023-12-01


安装conky的方法请看我博客另外一篇文章,这里不再阐述点这里

附上我的配置2013.08.29(吾喷)

background no
font WenQuanYi Micro Hei:size=10
xftfont WenQuanYi Micro Hei:size=10
use_xft yes
xftalpha 0.9
update_interval 1
total_run_times 0
own_window yes
own_window_argb_visual true
own_window_transparent true
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 220 5
maximum_width 350 10
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color 082E54
default_shade_color black
default_outline_color green
alignment top_right
gap_x 10
gap_y 35
no_buffers yes
uppercase no
cpu_avg_samples 1
override_utf8_locale yes
uppercase yes
color1 c0ff3e
color2 orange
color3 87CEEB

TEXT
${color3}${font WenQuanYi Micro Hei:size=13}系统 ————————————闪极${color}
${font WenQuanYi Micro Hei:size=10}${color}主机名 ${color2}$alignr$nodename
${color}内核版本 ${color2}$alignr$kernel
${color}外网IP ${alignr}${color2}${execi 1800 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}
${color}内网IP ${alignr}${color2}${addr eth0}
${color}开机时长 ${alignr}${color2}${uptime}${color}

${color3}${font WenQuanYi Micro Hei:size=13}负荷 ${hr 1}${color}
${color}${font WenQuanYi Micro Hei:size=10}进程数 ${color2}${alignr}$processes ($running_processes 个进程正在运行)
${color}CPU ${alignr}${color2}${cpu cpu1}%
#${color1}${cpubar 4}
${color}内存 ${alignr}${color2}$mem / $memmax ($memperc%)
#${color1}${membar 4}
${color}swap ${alignr}${color2}$swap / $swapmax ($swapperc%)
#${color1}${swapbar 4}

${color3}${font WenQuanYi Micro Hei:size=13}资源占用排行 ${hr 1}
${color1}${font WenQuanYi Micro Hei:size=12}CPU使用排行${font WenQuanYi Micro Hei:size=10} $alignr CPU%  内存%
${color3}${top name 1}$alignr${color #ff6a6a}${top cpu 1}${top mem 1}
${color3}${top name 2}$alignr${color #ffc125}${top cpu 2}${top mem 2}
${color3}${top name 3}$alignr${color #eeee00}${top cpu 3}${top mem 3}
${color3}${top name 4}$alignr${color #c0ff3e}${top cpu 4}${top mem 4}
${color3}${top name 5}$alignr${color #2E8B57}${top cpu 5}${top mem 5}
${color1}${font WenQuanYi Micro Hei:size=12}内存使用排行${font WenQuanYi Micro Hei:size=10} $alignr CPU%  内存%
${color3}${top_mem name 1}$alignr${color #ff6a6a}${top_mem cpu 1}${top_mem mem 1}
${color3}${top_mem name 2}$alignr${color #ffc125}${top_mem cpu 2}${top_mem mem 2}
${color3}${top_mem name 3}$alignr${color #eeee00}${top_mem cpu 3}${top_mem mem 3}
${color3}${top_mem name 4}$alignr${color #c0ff3e}${top_mem cpu 4}${top_mem mem 4}
${color3}${top_mem name 5}$alignr${color #2E8B57}${top_mem cpu 5}${top_mem mem 5}

${color3}${font WenQuanYi Micro Hei:size=13}文件系统 ${hr 1}${color}
${color #c0ff3e}${font WenQuanYi Micro Hei:size=10}硬盘温度:$alignr${color #f0e68c}${hddtemp /dev/sda}°C
${color}根分区: ${fs_type /} ${alignr}${color2}${fs_free /} / ${fs_size /}
${color1}${fs_bar 4 /}
${color}Home分区: ${fs_type /home}${alignr}${color2}${fs_free /home} / ${fs_size /home}
${color1}${fs_bar 4 /home}

${color3}${font WenQuanYi Micro Hei:size=13}网络 ${hr 1}${color}
${font WenQuanYi Micro Hei:size=10}上传 ${color2}${upspeed eth0} k/s${alignr}${color}下载 ${color2}${downspeed eth0} k/s
${color}总量 ${color2}${totalup eth0}${alignr}${totaldown eth0}
${color1}${upspeedgraph eth0 25,107 FF6600 FFFFFF}${alignr}${downspeedgraph eth0 25,107 FF6600 FFFFFF}

下载:2013.8.29


 类似资料: