经历了半天得研究,终于把conky的配置文件搞明白了,于是自己改了一个,主要把ATI相关的性能显示出来特此记录备份。
ps:ATI显卡在linux上就是悲剧!
补充说明:
aticonfig命令提供了对显卡各种参数的详细设置与显示,为了得到显卡温度始终频率等信息,必须使用命令初始化一下,主要就是aticonfig自动备份xorg的配置文件:
sudo aticonfig --initial
然后就可以通过命令获取信息了。
另外,conky-colors中获取公网ip的conkyip程序有个缺点,在内网环境下,运行这个程序,没有任何输出也不会退出,conky加载后,会造成conky不显示。
更新后的效果图:
这是更新后的配置文件:
# Default Fonts
use_xft yes
xftfont 文泉驿微米黑 : size = 10
override_utf8_locale yes
# Performance Settings
update_interval 1
total_run_times 0
double_buffer yes
no_buffers yes
net_avg_samples 2
text_buffer_size 1024
# Window Settings
own_window yes
own_window_transparent yes
own_window_type override
own_window_hints undecorated , below , sticky , skip_taskbar , skip_pager
# Window border
draw_borders no
draw_shades no
# Default Color
default_color F5F4F4
# Color Title.
color0 98DD01
# 图标颜色
color1 F8FA7E
# 图标 绿色
color3 EDE814
# 日期颜色 白色
color4 FFFFFF
# 系统信息颜色 棕色
color5 DC6F00
# 小图标 暗棕色
color6 CA821D
# 进度表 暗棕色
color6 E07A1F
# cpu 兰色
color7 1410EE
# 分区 分区
color8 19A9B3
# wlan
color9 0AA322
# Size and position
minimum_size 256 744
gap_x 1
gap_y 24
alignment top_right
TEXT
# #######################
# 背景 #
#######################
${image ~/. conky / pix / background . png - p 0 , 0 - s 256x744}
# #######################
# 日期 #
#######################
#表盘
${voffset - 13 }${voffset 4 }${ goto 32 }${color4}${font clockfaces : blod : size = 40 }O${font}${color}
${voffset - 34 }${ goto 41 }${color4}${font zoraclockH : size = 30 }${execpi 120 ~/. conky / bin / conkyClock hour}${font}${color}
${voffset - 40 }${ goto 35 }${color4}${font zoraclockM : size = 40 }${execpi 60 ~/. conky / bin / conkyClock minute}${font}${color}
# 日期
${voffset - 80 }${ goto 100 }${color6}${font OpenLogos : size = 86 }v${font}${color}
${voffset - 40 }${ goto 100 }${color4}${execi 3600 date | cut - c1 - 29 }${color}
${ goto 100 }${color4}${execi 3600 ~/. conky / scripts / chinese_calendar . sh}${color}${voffset 14 }
# #######################
# 系统信息 #
#######################
${voffset - 8 }${ GOTO 75 }${font simhei : size = 9 }${color5}Kernel : ${color}${ GOTO 140 }${color5}${kernel}${color}${font}
${voffset - 5 }${ GOTO 75 }${font simhei : size = 9 }${color5}运行时长 : ${color}${ GOTO 140 }${color5}${uptime}${color}${voffset 6 }${font}
# #######################
# CPU #
#######################
${voffset - 35 }${color0}${ GOTO 33 }${font Devil inside : size = 40 }v${font} ${voffset - 8 } $stippled_hr ${color} ${voffset 8 }
${voffset 5 }${ GOTO 36 }${color6}${font Poky : size = 16 }P${font}${color}${voffset - 10 }${ GOTO 70 }${color1}${execi 4 sensors | grep - A 0 ' Core 0 ' | cut - c15 - 18 } ºC${color}${ GOTO 120 }${color7}${cpubar cpu1 10 , 63 }${color}${ GOTO 190 }${color7}${cpubar cpu2 10 , 63 }${color}
${ GOTO 70 }${color1}${execi 4 sensors | grep - A 0 ' Core 2 ' | cut - c15 - 18 } ºC${color}${ GOTO 120 }${color7}${cpubar cpu3 10 , 63 }${color}${ GOTO 190 }${color7}${cpubar cpu4 10 , 63 }${color}
# #######################
# 显卡 #
#######################
${voffset 12 }${ GOTO 35 }${color6}${font Poky : size = 14 }x${font}${color}${voffset - 5 }${ GOTO 67 }${color1}${execi 4 aticonfig -- odgt | grep - A 0 ' Sensor 0 ' | cut - c42 - 46 } ºC${color}${voffset - 10 }${ GOTO 144 }${color6}${font Poky : size = 12 }P${font}${color}${ GOTO 121 }${voffset 15 }${color1}${execi 4 aticonfig -- odgc | grep - A 0 ' Current Clocks ' | cut - c32 - 34 } MHz${color}${voffset - 20 }${ GOTO 216 }${color6}${font Poky : size = 12 }M${font}${color}${ GOTO 194 }${voffset 15 }${color1}${execi 4 aticonfig -- odgc | grep - A 0 ' Current Clocks ' | cut - c46 - 48 } MHz${color}
# #######################
# 内存 #
#######################
${voffset 4 }${ GOTO 35 }${color6}${font Poky : size = 16 }M${font}${color}${ GOTO 74 }${voffset - 10 }${color6}${membar 10 , 180 }${color} ${ GOTO 230 }${voffset - 2 }${color0}${font Droid Sans : style = Bold : size = 7 }${memperc} % ${font}${color}
${voffset - 9 }${ GOTO 74 }${color6}${swapbar 10 , 180 }${color}${ GOTO 230 }${voffset - 2 }${color0}${font Droid Sans : style = Bold : size = 7 }${swapperc} % ${font}${color}
# #######################
# 进程 #
#######################
${color0}${ GOTO 33 }${font Poky : size = 15 }a${font} ${voffset - 8 } $stippled_hr ${color} ${voffset 8 }
${voffset 4 }${ goto 55 }${voffset - 10 }${color8}进程 ${color}${color8}${alignr 46 }CPU${alignr 5 }RAM${color}
${voffset - 1 }${ goto 42 }${color1}${top name 1 }${color}${font Droid Sans : style = Bold : size = 8 }${color1} ${ goto 160 }${top cpu 1 }${alignr 7 }${top mem 1 }${color}${font}
${voffset - 1 }${ goto 42 }${color1}${top name 2 }${color}${font Droid Sans : style = Bold : size = 8 }${color1} ${ goto 160 }${top cpu 2 }${alignr 7 }${top mem 2 }${color}${font}
${voffset - 1 }${ goto 42 }${color1}${top name 3 }${color}${font Droid Sans : style = Bold : size = 8 }${color1} ${ goto 160 }${top cpu 3 }${alignr 7 }${top mem 3 }${color}${font}
# #######################
# 硬盘 #
#######################
${color0}${ GOTO 33 }${font Poky : size = 15 }y${font} ${voffset - 8 } $stippled_hr ${color} ${voffset 8 }
${ GOTO 42 }${color6}${font Poky : size = 10 }y${font} / ${color} ${color1}${execi 120 hddtemp / dev / sda - n -- unit = C} ºC${color}${color1}${alignr 7 }${fs_used / } / ${fs_size / }${color}
${voffset - 4 }${ GOTO 42 }(root) ${voffset 2 }${ GOTO 90 }${color8}${fs_bar 10 , 165 / }${colors}
${ GOTO 42 }${color6}${font Poky : size = 10 }y${font} / dev / sda1${color}${alignr 7 }${color1}${fs_used / media / C} / ${fs_size / media / C}${color}
${voffset - 4 }${ GOTO 42 }C: ${voffset 2 }${ GOTO 90 }${color8}${fs_bar 10 , 165 / media / C}${color}
${ GOTO 42 }${color6}${font Poky : size = 10 }y${font} / dev / sda5${color} ${alignr 7 }${color1}${fs_used / media / D} / ${fs_size / media / D}${color}
${voffset - 4 }${ GOTO 42 }D: ${voffset 2 }${ GOTO 90 }${color8}${fs_bar 10 , 165 / media / D}${color}
${ GOTO 42 }${color6}${font Poky : size = 10 }y${font} / dev / sda6${color}${alignr 7 }${color1}${fs_used / media / E} / ${fs_size / media / E}${color}
${voffset - 4 }${ GOTO 42 }E: ${voffset 2 }${ GOTO 90 }${color8}${fs_bar 10 , 165 / media / E}${color}
${ GOTO 42 }${color6}${font Poky : size = 10 }y${font} / dev / sda7${color}${alignr 7 }${color1}${fs_used / media / F} / ${fs_size / media / F}${color}
${voffset - 4 }${ GOTO 42 }F: ${voffset 2 }${ GOTO 90 }${color8}${fs_bar 10 , 165 / media / F}${color}
# #######################
# 网络 #
#######################
# upspeed 上传速度
# upspeedgraph 上传图形
# totalup 上传流量
# downspeed 下载速度
# downspeedgraph 下载图形
# totaldown 下载流量
#
#
${color0}${ GOTO 33 }${font Poky : size = 15 }w${font} ${voffset - 8 } $stippled_hr ${color}
# wifi信号
${ GOTO 40 }${voffset - 1 }${color0}${font Poky : size = 12 }Y${font}${color}${ goto 58 } ${voffset - 3 }${font simhei : size = 9 }信号 : ${font}${font Droid Sans : style = Bold : size = 8 }${color1}${wireless_link_qual wlan0} % ${color}${font} ${alignr 7 }${voffset - 2 }${color9}${wireless_link_bar 8 , 110 wlan0}${color}
# wifi上传
${ GOTO 40 }${voffset - 4 }${color0}${font VariShapes Solid : size = 14 }q${font}${color}${ goto 58 }${voffset - 8 }${font simhei : size = 9 }上传 : ${font}${voffset - 2 }${font Droid Sans : style = Bold : size = 8 }${color1}${upspeed wlan0} / s${color}${font}
${ goto 58 }${voffset - 6 }${font simhei : size = 9 }流量 : ${font}${voffset - 2 }${font Droid Sans : style = Bold : size = 8 }${color2}${totalup wlan0}${color}${font}${alignr 7 }${voffset - 17 }${color2}${upspeedgraph wlan0 20 , 110 CE5C00 E07A1F}${color}
# wifi下载
${ GOTO 40 }${voffset - 8 }${color0}${font VariShapes Solid : size = 14 }Q${font}${color}${ goto 58 }${voffset - 8 }${font simhei : size = 9 }下载 : ${font}${voffset - 2 }${font Droid Sans : style = Bold : size = 8 }${color1}${downspeed wlan0} / s${color}${font}
${ goto 58 }${voffset - 6 }${font simhei : size = 9 }流量 : ${font}${voffset - 2 }${font Droid Sans : style = Bold : size = 8 }${color2}${totaldown wlan0}${color}${font}${alignr 7 }${voffset - 17 }${color2}${downspeedgraph wlan0 20 , 110 CE5C00 E07A1F}${color}
# eth0上传
${ GOTO 40 }${voffset - 4 }${color0}${font VariShapes Solid : size = 14 }q${font}${color}${ goto 58 }${voffset - 8 }${font simhei : size = 9 }上传 : ${font}${voffset - 2 }${font Droid Sans : style = Bold : size = 8 }${color1}${upspeed eth0} / s${color}${font}
${ goto 58 }${voffset - 6 }${font simhei : size = 9 }流量 : ${font}${voffset - 2 }${font Droid Sans : style = Bold : size = 8 }${color2}${totalup eth0}${color}${font}${alignr 7 }${voffset - 17 }${color2}${upspeedgraph eth0 20 , 110 CE5C00 E07A1F}${color}
# eth0下载
${ GOTO 40 }${voffset - 8 }${color0}${font VariShapes Solid : size = 14 }Q${font}${color}${ goto 58 }${voffset - 8 }${font simhei : size = 9 }下载 : ${font}${voffset - 2 }${font Droid Sans : style = Bold : size = 8 }${color1}${downspeed eth0} / s${color}${font}
${ goto 58 }${voffset - 6 }${font simhei : size = 9 }流量 : ${font}${voffset - 2 }${font Droid Sans : style = Bold : size = 8 }${color2}${totaldown eth0}${color}${font}${alignr 7 }${voffset - 17 }${color2}${downspeedgraph eth0 20 , 110 CE5C00 E07A1F}${color}
# ip地址
${ goto 38 }${voffset - 6 }${font simhei : size = 9 }wifi IP : ${font}${voffset - 2 }${font Droid Sans : style = Bold : size = 8 }${color1}${addr wlan0}${color}${font}
${ goto 38 }${voffset - 6 }${font simhei : size = 9 }eth0 IP : ${font}${voffset - 2 }${font Droid Sans : style = Bold : size = 8 }${color1}${addr eth0}${color}${font}
${alignr 32 }${voffset - 37 }${font simhei : size = 9 }public IP${font}
${alignr}${voffset - 3 }${font simhei : style = Bold : size = 8 }${color1}${color}${font}
#
xftfont 文泉驿微米黑 : size = 10
override_utf8_locale yes
# Performance Settings
update_interval 1
total_run_times 0
double_buffer yes
no_buffers yes
net_avg_samples 2
text_buffer_size 1024
# Window Settings
own_window yes
own_window_transparent yes
own_window_type override
own_window_hints undecorated , below , sticky , skip_taskbar , skip_pager
# Window border
draw_borders no
draw_shades no
# Default Color
default_color F5F4F4
# Color Title.
color0 98DD01
# 图标颜色
color1 F8FA7E
# 图标 绿色
color3 EDE814
# 日期颜色 白色
color4 FFFFFF
# 系统信息颜色 棕色
color5 DC6F00
# 小图标 暗棕色
color6 CA821D
# 进度表 暗棕色
color6 E07A1F
# cpu 兰色
color7 1410EE
# 分区 分区
color8 19A9B3
# wlan
color9 0AA322
# Size and position
minimum_size 256 744
gap_x 1
gap_y 24
alignment top_right
TEXT
# #######################
# 背景 #
#######################
${image ~/. conky / pix / background . png - p 0 , 0 - s 256x744}
# #######################
# 日期 #
#######################
#表盘
${voffset - 13 }${voffset 4 }${ goto 32 }${color4}${font clockfaces : blod : size = 40 }O${font}${color}
${voffset - 34 }${ goto 41 }${color4}${font zoraclockH : size = 30 }${execpi 120 ~/. conky / bin / conkyClock hour}${font}${color}
${voffset - 40 }${ goto 35 }${color4}${font zoraclockM : size = 40 }${execpi 60 ~/. conky / bin / conkyClock minute}${font}${color}
# 日期
${voffset - 80 }${ goto 100 }${color6}${font OpenLogos : size = 86 }v${font}${color}
${voffset - 40 }${ goto 100 }${color4}${execi 3600 date | cut - c1 - 29 }${color}
${ goto 100 }${color4}${execi 3600 ~/. conky / scripts / chinese_calendar . sh}${color}${voffset 14 }
# #######################
# 系统信息 #
#######################
${voffset - 8 }${ GOTO 75 }${font simhei : size = 9 }${color5}Kernel : ${color}${ GOTO 140 }${color5}${kernel}${color}${font}
${voffset - 5 }${ GOTO 75 }${font simhei : size = 9 }${color5}运行时长 : ${color}${ GOTO 140 }${color5}${uptime}${color}${voffset 6 }${font}
# #######################
# CPU #
#######################
${voffset - 35 }${color0}${ GOTO 33 }${font Devil inside : size = 40 }v${font} ${voffset - 8 } $stippled_hr ${color} ${voffset 8 }
${voffset 5 }${ GOTO 36 }${color6}${font Poky : size = 16 }P${font}${color}${voffset - 10 }${ GOTO 70 }${color1}${execi 4 sensors | grep - A 0 ' Core 0 ' | cut - c15 - 18 } ºC${color}${ GOTO 120 }${color7}${cpubar cpu1 10 , 63 }${color}${ GOTO 190 }${color7}${cpubar cpu2 10 , 63 }${color}
${ GOTO 70 }${color1}${execi 4 sensors | grep - A 0 ' Core 2 ' | cut - c15 - 18 } ºC${color}${ GOTO 120 }${color7}${cpubar cpu3 10 , 63 }${color}${ GOTO 190 }${color7}${cpubar cpu4 10 , 63 }${color}
# #######################
# 显卡 #
#######################
${voffset 12 }${ GOTO 35 }${color6}${font Poky : size = 14 }x${font}${color}${voffset - 5 }${ GOTO 67 }${color1}${execi 4 aticonfig -- odgt | grep - A 0 ' Sensor 0 ' | cut - c42 - 46 } ºC${color}${voffset - 10 }${ GOTO 144 }${color6}${font Poky : size = 12 }P${font}${color}${ GOTO 121 }${voffset 15 }${color1}${execi 4 aticonfig -- odgc | grep - A 0 ' Current Clocks ' | cut - c32 - 34 } MHz${color}${voffset - 20 }${ GOTO 216 }${color6}${font Poky : size = 12 }M${font}${color}${ GOTO 194 }${voffset 15 }${color1}${execi 4 aticonfig -- odgc | grep - A 0 ' Current Clocks ' | cut - c46 - 48 } MHz${color}
# #######################
# 内存 #
#######################
${voffset 4 }${ GOTO 35 }${color6}${font Poky : size = 16 }M${font}${color}${ GOTO 74 }${voffset - 10 }${color6}${membar 10 , 180 }${color} ${ GOTO 230 }${voffset - 2 }${color0}${font Droid Sans : style = Bold : size = 7 }${memperc} % ${font}${color}
${voffset - 9 }${ GOTO 74 }${color6}${swapbar 10 , 180 }${color}${ GOTO 230 }${voffset - 2 }${color0}${font Droid Sans : style = Bold : size = 7 }${swapperc} % ${font}${color}
# #######################
# 进程 #
#######################
${color0}${ GOTO 33 }${font Poky : size = 15 }a${font} ${voffset - 8 } $stippled_hr ${color} ${voffset 8 }
${voffset 4 }${ goto 55 }${voffset - 10 }${color8}进程 ${color}${color8}${alignr 46 }CPU${alignr 5 }RAM${color}
${voffset - 1 }${ goto 42 }${color1}${top name 1 }${color}${font Droid Sans : style = Bold : size = 8 }${color1} ${ goto 160 }${top cpu 1 }${alignr 7 }${top mem 1 }${color}${font}
${voffset - 1 }${ goto 42 }${color1}${top name 2 }${color}${font Droid Sans : style = Bold : size = 8 }${color1} ${ goto 160 }${top cpu 2 }${alignr 7 }${top mem 2 }${color}${font}
${voffset - 1 }${ goto 42 }${color1}${top name 3 }${color}${font Droid Sans : style = Bold : size = 8 }${color1} ${ goto 160 }${top cpu 3 }${alignr 7 }${top mem 3 }${color}${font}
# #######################
# 硬盘 #
#######################
${color0}${ GOTO 33 }${font Poky : size = 15 }y${font} ${voffset - 8 } $stippled_hr ${color} ${voffset 8 }
${ GOTO 42 }${color6}${font Poky : size = 10 }y${font} / ${color} ${color1}${execi 120 hddtemp / dev / sda - n -- unit = C} ºC${color}${color1}${alignr 7 }${fs_used / } / ${fs_size / }${color}
${voffset - 4 }${ GOTO 42 }(root) ${voffset 2 }${ GOTO 90 }${color8}${fs_bar 10 , 165 / }${colors}
${ GOTO 42 }${color6}${font Poky : size = 10 }y${font} / dev / sda1${color}${alignr 7 }${color1}${fs_used / media / C} / ${fs_size / media / C}${color}
${voffset - 4 }${ GOTO 42 }C: ${voffset 2 }${ GOTO 90 }${color8}${fs_bar 10 , 165 / media / C}${color}
${ GOTO 42 }${color6}${font Poky : size = 10 }y${font} / dev / sda5${color} ${alignr 7 }${color1}${fs_used / media / D} / ${fs_size / media / D}${color}
${voffset - 4 }${ GOTO 42 }D: ${voffset 2 }${ GOTO 90 }${color8}${fs_bar 10 , 165 / media / D}${color}
${ GOTO 42 }${color6}${font Poky : size = 10 }y${font} / dev / sda6${color}${alignr 7 }${color1}${fs_used / media / E} / ${fs_size / media / E}${color}
${voffset - 4 }${ GOTO 42 }E: ${voffset 2 }${ GOTO 90 }${color8}${fs_bar 10 , 165 / media / E}${color}
${ GOTO 42 }${color6}${font Poky : size = 10 }y${font} / dev / sda7${color}${alignr 7 }${color1}${fs_used / media / F} / ${fs_size / media / F}${color}
${voffset - 4 }${ GOTO 42 }F: ${voffset 2 }${ GOTO 90 }${color8}${fs_bar 10 , 165 / media / F}${color}
# #######################
# 网络 #
#######################
# upspeed 上传速度
# upspeedgraph 上传图形
# totalup 上传流量
# downspeed 下载速度
# downspeedgraph 下载图形
# totaldown 下载流量
#
#
${color0}${ GOTO 33 }${font Poky : size = 15 }w${font} ${voffset - 8 } $stippled_hr ${color}
# wifi信号
${ GOTO 40 }${voffset - 1 }${color0}${font Poky : size = 12 }Y${font}${color}${ goto 58 } ${voffset - 3 }${font simhei : size = 9 }信号 : ${font}${font Droid Sans : style = Bold : size = 8 }${color1}${wireless_link_qual wlan0} % ${color}${font} ${alignr 7 }${voffset - 2 }${color9}${wireless_link_bar 8 , 110 wlan0}${color}
# wifi上传
${ GOTO 40 }${voffset - 4 }${color0}${font VariShapes Solid : size = 14 }q${font}${color}${ goto 58 }${voffset - 8 }${font simhei : size = 9 }上传 : ${font}${voffset - 2 }${font Droid Sans : style = Bold : size = 8 }${color1}${upspeed wlan0} / s${color}${font}
${ goto 58 }${voffset - 6 }${font simhei : size = 9 }流量 : ${font}${voffset - 2 }${font Droid Sans : style = Bold : size = 8 }${color2}${totalup wlan0}${color}${font}${alignr 7 }${voffset - 17 }${color2}${upspeedgraph wlan0 20 , 110 CE5C00 E07A1F}${color}
# wifi下载
${ GOTO 40 }${voffset - 8 }${color0}${font VariShapes Solid : size = 14 }Q${font}${color}${ goto 58 }${voffset - 8 }${font simhei : size = 9 }下载 : ${font}${voffset - 2 }${font Droid Sans : style = Bold : size = 8 }${color1}${downspeed wlan0} / s${color}${font}
${ goto 58 }${voffset - 6 }${font simhei : size = 9 }流量 : ${font}${voffset - 2 }${font Droid Sans : style = Bold : size = 8 }${color2}${totaldown wlan0}${color}${font}${alignr 7 }${voffset - 17 }${color2}${downspeedgraph wlan0 20 , 110 CE5C00 E07A1F}${color}
# eth0上传
${ GOTO 40 }${voffset - 4 }${color0}${font VariShapes Solid : size = 14 }q${font}${color}${ goto 58 }${voffset - 8 }${font simhei : size = 9 }上传 : ${font}${voffset - 2 }${font Droid Sans : style = Bold : size = 8 }${color1}${upspeed eth0} / s${color}${font}
${ goto 58 }${voffset - 6 }${font simhei : size = 9 }流量 : ${font}${voffset - 2 }${font Droid Sans : style = Bold : size = 8 }${color2}${totalup eth0}${color}${font}${alignr 7 }${voffset - 17 }${color2}${upspeedgraph eth0 20 , 110 CE5C00 E07A1F}${color}
# eth0下载
${ GOTO 40 }${voffset - 8 }${color0}${font VariShapes Solid : size = 14 }Q${font}${color}${ goto 58 }${voffset - 8 }${font simhei : size = 9 }下载 : ${font}${voffset - 2 }${font Droid Sans : style = Bold : size = 8 }${color1}${downspeed eth0} / s${color}${font}
${ goto 58 }${voffset - 6 }${font simhei : size = 9 }流量 : ${font}${voffset - 2 }${font Droid Sans : style = Bold : size = 8 }${color2}${totaldown eth0}${color}${font}${alignr 7 }${voffset - 17 }${color2}${downspeedgraph eth0 20 , 110 CE5C00 E07A1F}${color}
# ip地址
${ goto 38 }${voffset - 6 }${font simhei : size = 9 }wifi IP : ${font}${voffset - 2 }${font Droid Sans : style = Bold : size = 8 }${color1}${addr wlan0}${color}${font}
${ goto 38 }${voffset - 6 }${font simhei : size = 9 }eth0 IP : ${font}${voffset - 2 }${font Droid Sans : style = Bold : size = 8 }${color1}${addr eth0}${color}${font}
${alignr 32 }${voffset - 37 }${font simhei : size = 9 }public IP${font}
${alignr}${voffset - 3 }${font simhei : style = Bold : size = 8 }${color1}${color}${font}
#
下载地址: myConky.tar.zip重命名为 myConky.tar解压至用户目录
conky-start.sh 为启动conky脚本,延迟8秒钟启动,把它加入启动程序即可开启运行
如果出现conky遮挡窗口得情况,请更改脚本内容为无延迟启动:
#
!/bin/bash
conky - c ~/. conky / conkyrc
conky - c ~/. conky / conkyrc
需要的一些字体可以在网上找到
配置文件:conky.rc
#
Default Fonts
use_xft yes
xftfont 文泉驿微米黑:size = 10
override_utf8_locale yes
# Performance Settings
update_interval 1
total_run_times 0
double_buffer yes
no_buffers yes
net_avg_samples 2
text_buffer_size 1024
# Window Settings
own_window yes
own_window_transparent yes
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Window border
draw_borders no
draw_shades no
# Default Color
default_color F5F4F4
# Color Title.
color0 98DD01
# 图标颜色
color1 F8FA7E
# 图标 绿色
color3 EDE814
# 日期颜色 白色
color4 FFFFFF
# 系统信息颜色 棕色
color5 DC6F00
# 小图标 暗棕色
color6 CA821D
# 进度表 暗棕色
color6 E07A1F
# cpu 兰色
color7 1410EE
# 分区 分区
color8 19A9B3
# wlan
color9 0AA322
# Size and position
minimum_size 256 744
gap_x 1
gap_y 24
alignment top_right
TEXT
########################
# 背景 #
#######################
${image ~ / .conky / pix / background.png - p 0 , 0 - s 256x744}
########################
# 日期 #
#######################
# 表盘
${voffset - 13 }${voffset 4 }${goto 32 }${color4}${font clockfaces:blod:size = 40 }O${font}${color}
${voffset - 34 }${goto 41 }${color4}${font zoraclockH:size = 30 }${execpi 120 ~ / .conky / bin / conkyClock hour}${font}${color}
${voffset - 40 }${goto 35 }${color4}${font zoraclockM:size = 40 }${execpi 60 ~ / .conky / bin / conkyClock minute}${font}${color}
# 日期
${voffset - 80 }${goto 100 }${color6}${font OpenLogos:size = 86 }v${font}${color}
${voffset - 40 }${goto 100 }${color4}${execi 3600 date | cut - c1 - 29 }${color}
${goto 100 }${color4}${execi 3600 ~ / .conky / scripts / chinese_calendar.sh}${color}${voffset 14 }
########################
# 系统信息 #
#######################
${voffset - 8 }${GOTO 75 }${font simhei:size = 9 }${color5}Kernel:${color}${GOTO 140 }${color5}${kernel}${color}${font}
${voffset - 5 }${GOTO 75 }${font simhei:size = 9 }${color5}运行时长:${color}${GOTO 140 }${color5}${uptime}${color}${voffset 6 }${font}
########################
# CPU #
#######################
${voffset - 35 }${color0}${GOTO 33 }${font Devil inside:size = 40 }v${font} ${voffset - 8 }$stippled_hr${color} ${voffset 8 }
${voffset 5 }${GOTO 36 }${color6}${font Poky:size = 16 }P${font}${color}${voffset - 10 }${GOTO 70 }${color1}${execi 4 sensors | grep - A 0 ' Core 0 ' | cut - c15 - 18 } ºC${color}${GOTO 120 }${color7}${cpubar cpu1 10 , 63 }${color}${GOTO 190 }${color7}${cpubar cpu2 10 , 63 }${color}
${GOTO 70 }${color1}${execi 4 sensors | grep - A 0 ' Core 2 ' | cut - c15 - 18 } ºC${color}${GOTO 120 }${color7}${cpubar cpu3 10 , 63 }${color}${GOTO 190 }${color7}${cpubar cpu4 10 , 63 }${color}
########################
# 显卡 #
#######################
${voffset 12 }${GOTO 35 }${color6}${font Poky:size = 14 }x${font}${color}${voffset - 5 }${GOTO 67 }${color1}${execi 4 aticonfig -- odgt | grep -A 0 'Sensor 0' | cut -c42-46} ºC${color}${voffset -10}${GOTO 144}${color6}${font Poky:size=12}P${font}${color}${GOTO 121}${voffset 15}${color1}${execi 4 aticonfig --odgc | grep -A 0 'Current Clocks' | cut -c32-34} MHz${color}${voffset -20}${GOTO 216}${color6}${font Poky:size=12}M${font}${color}${GOTO 194}${voffset 15}${color1}${execi 4 aticonfig --odgc | grep -A 0 'Current Clocks' | cut -c46-48} MHz${color}
########################
# 内存 #
#######################
${voffset 4 }${GOTO 35 }${color6}${font Poky:size = 16 }M${font}${color}${GOTO 74 }${voffset - 10 }${color6}${membar 10 , 180 }${color} ${GOTO 230 }${voffset - 2 }${color0}${font Droid Sans:style = Bold:size = 7 }${memperc} % ${font}${color}
${voffset - 9 }${GOTO 74 }${color6}${swapbar 10 , 180 }${color}${GOTO 230 }${voffset - 2 }${color0}${font Droid Sans:style = Bold:size = 7 }${swapperc} % ${font}${color}
########################
# 进程 #
#######################
${color0}${GOTO 33 }${font Poky:size = 15 }a${font} ${voffset - 8 }$stippled_hr${color} ${voffset 8 }
${voffset 4 }${goto 55 }${voffset - 10 }${color8}进程 ${color}${color8}${alignr 46 }CPU${alignr 5 }RAM${color}
${voffset - 1 }${goto 42 }${color1}${top name 1 }${color}${font Droid Sans:style = Bold:size = 8 }${color1} ${goto 160 }${top cpu 1 }${alignr 7 }${top mem 1 }${color}${font}
${voffset - 1 }${goto 42 }${color1}${top name 2 }${color}${font Droid Sans:style = Bold:size = 8 }${color1} ${goto 160 }${top cpu 2 }${alignr 7 }${top mem 2 }${color}${font}
${voffset - 1 }${goto 42 }${color1}${top name 3 }${color}${font Droid Sans:style = Bold:size = 8 }${color1} ${goto 160 }${top cpu 3 }${alignr 7 }${top mem 3 }${color}${font}
########################
# 硬盘 #
#######################
${color0}${GOTO 33 }${font Poky:size = 15 }y${font} ${voffset - 8 }$stippled_hr${color} ${voffset 8 }
${GOTO 42 }${color6}${font Poky:size = 10 }y${font} / ${color} ${color1}${execi 120 hddtemp / dev / sda - n -- unit=C} ºC${color}${color1}${alignr 7}${fs_used /} / ${fs_size /}${color}
${voffset - 4 }${GOTO 42 }(root) ${voffset 2 }${GOTO 90 }${color8}${fs_bar 10 , 165 / }${colors}
${GOTO 42 }${color6}${font Poky:size = 10 }y${font} / dev / sda1${color}${alignr 7 }${color1}${fs_used / media / C} / ${fs_size / media / C}${color}
${voffset - 4 }${GOTO 42 }C: ${voffset 2 }${GOTO 90 }${color8}${fs_bar 10 , 165 / media / C}${color}
${GOTO 42 }${color6}${font Poky:size = 10 }y${font} / dev / sda5${color} ${alignr 7 }${color1}${fs_used / media / D} / ${fs_size / media / D}${color}
${voffset - 4 }${GOTO 42 }D: ${voffset 2 }${GOTO 90 }${color8}${fs_bar 10 , 165 / media / D}${color}
${GOTO 42 }${color6}${font Poky:size = 10 }y${font} / dev / sda6${color}${alignr 7 }${color1}${fs_used / media / E} / ${fs_size / media / E}${color}
${voffset - 4 }${GOTO 42 }E: ${voffset 2 }${GOTO 90 }${color8}${fs_bar 10 , 165 / media / E}${color}
${GOTO 42 }${color6}${font Poky:size = 10 }y${font} / dev / sda7${color}${alignr 7 }${color1}${fs_used / media / F} / ${fs_size / media / F}${color}
${voffset - 4 }${GOTO 42 }F: ${voffset 2 }${GOTO 90 }${color8}${fs_bar 10 , 165 / media / F}${color}
########################
# 网络 #
#######################
# upspeed 上传速度
# upspeedgraph 上传图形
# totalup 上传流量
# downspeed 下载速度
# downspeedgraph 下载图形
# totaldown 下载流量
#
#
#
#
${color0}${GOTO 33 }${font Poky:size = 15 }w${font} ${voffset - 8 }$stippled_hr${color}
#
# wlan
#
${if_up wlan0}
# 上传
${GOTO 40 }${voffset - 13 }${color0}${font VariShapes Solid:size = 14 }q${font}${color}${goto 58 }${voffset - 13 }上传: ${font Droid Sans:style = Bold:size = 8 }${color1}${upspeed wlan0} / s${color}${font}
${goto 58 }${voffset - 3 }流量: ${font Droid Sans:style = Bold:size = 8 }${color2}${totalup wlan0}${color}${font}${alignr 7 }${voffset - 23 }${color2}${upspeedgraph wlan0 26 , 110 CE5C00 E07A1F}${color}
# 下载
${GOTO 40 }${voffset - 3 }${color0}${font VariShapes Solid:size = 14 }Q${font}${color}${goto 58 }${voffset - 10 }下载: ${font Droid Sans:style = Bold:size = 8 }${color1}${downspeed wlan0} / s${color}${font}
${goto 58 }${voffset - 3 }流量: ${font Droid Sans:style = Bold:size = 8 }${color2}${totaldown wlan0}${color}${font}${alignr 7 }${voffset - 23 }${color2}${downspeedgraph wlan0 26 , 110 CE5C00 E07A1F}${color}
# 信号
${GOTO 40 }${voffset - 8 }${color0}${font Poky:size = 16 }Y${font}${color}${goto 58 } ${voffset - 3 }信号: ${font Droid Sans:style = Bold:size = 8 }${color1}${wireless_link_qual wlan0} % ${color}${font} ${alignr 7 }${voffset - 2 }${color9}${wireless_link_bar 8 , 110 wlan0}${color}
# IP地址
${GOTO 40 }${voffset 7 }${color0}${font OpenLogos:size = 19 }P${font}${color}${goto 58 }${voffset - 15 }内网IP: ${alignr 7 }${color2}${addr wlan0}${color}
${goto 58 }公网IP: ${alignr 7 }${color2}${execi 10800 ~ / .conky / bin / conkyIp}${color}
#
# eth0
#
${ else }${if_up eth0}
# 上传
${GOTO 40 }${voffset - 13 }${color0}${font VariShapes Solid:size = 14 }q${font}${color}${goto 58 }${voffset - 13 }上传: ${font Droid Sans:style = Bold:size = 8 }${color1}${upspeed eth0} / s${color}${font}
${goto 58 }${voffset - 3 }流量: ${font Droid Sans:style = Bold:size = 8 }${color2}${totalup eth0}${color}${font}${alignr 7 }${voffset - 23 }${color2}${upspeedgraph eth0 26 , 110 CE5C00 E07A1F}${color}
# 下载
${GOTO 40 }${voffset - 3 }${color0}${font VariShapes Solid:size = 14 }Q${font}${color}${goto 58 }${voffset - 10 }下载: ${font Droid Sans:style = Bold:size = 8 }${color1}${downspeed eth0} / s${color}${font}
${goto 58 }${voffset - 3 }流量: ${font Droid Sans:style = Bold:size = 8 }${color2}${totaldown eth0}${color}${font}${alignr 7 }${voffset - 23 }${color2}${downspeedgraph eth0 26 , 110 CE5C00 E07A1F}${color}
# IP地址
${GOTO 40 }${voffset 7 }${color0}${font OpenLogos:size = 19 }P${font}${color}${goto 58 }${voffset - 15 }内网IP: ${alignr 7 }${color2}${addr eth0}${color}
${goto 58 }公网IP: ${alignr 7 }${color2}${execi 10800 ~ / .conky / bin / conkyIp}${color}
# 无网络
${ else }${GOTO 40 }无网络${endif}${endif}
${voffset - 80 }${goto 70 }${color5}${font Devil inside:size = 100 }a${font}${color}
use_xft yes
xftfont 文泉驿微米黑:size = 10
override_utf8_locale yes
# Performance Settings
update_interval 1
total_run_times 0
double_buffer yes
no_buffers yes
net_avg_samples 2
text_buffer_size 1024
# Window Settings
own_window yes
own_window_transparent yes
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Window border
draw_borders no
draw_shades no
# Default Color
default_color F5F4F4
# Color Title.
color0 98DD01
# 图标颜色
color1 F8FA7E
# 图标 绿色
color3 EDE814
# 日期颜色 白色
color4 FFFFFF
# 系统信息颜色 棕色
color5 DC6F00
# 小图标 暗棕色
color6 CA821D
# 进度表 暗棕色
color6 E07A1F
# cpu 兰色
color7 1410EE
# 分区 分区
color8 19A9B3
# wlan
color9 0AA322
# Size and position
minimum_size 256 744
gap_x 1
gap_y 24
alignment top_right
TEXT
########################
# 背景 #
#######################
${image ~ / .conky / pix / background.png - p 0 , 0 - s 256x744}
########################
# 日期 #
#######################
# 表盘
${voffset - 13 }${voffset 4 }${goto 32 }${color4}${font clockfaces:blod:size = 40 }O${font}${color}
${voffset - 34 }${goto 41 }${color4}${font zoraclockH:size = 30 }${execpi 120 ~ / .conky / bin / conkyClock hour}${font}${color}
${voffset - 40 }${goto 35 }${color4}${font zoraclockM:size = 40 }${execpi 60 ~ / .conky / bin / conkyClock minute}${font}${color}
# 日期
${voffset - 80 }${goto 100 }${color6}${font OpenLogos:size = 86 }v${font}${color}
${voffset - 40 }${goto 100 }${color4}${execi 3600 date | cut - c1 - 29 }${color}
${goto 100 }${color4}${execi 3600 ~ / .conky / scripts / chinese_calendar.sh}${color}${voffset 14 }
########################
# 系统信息 #
#######################
${voffset - 8 }${GOTO 75 }${font simhei:size = 9 }${color5}Kernel:${color}${GOTO 140 }${color5}${kernel}${color}${font}
${voffset - 5 }${GOTO 75 }${font simhei:size = 9 }${color5}运行时长:${color}${GOTO 140 }${color5}${uptime}${color}${voffset 6 }${font}
########################
# CPU #
#######################
${voffset - 35 }${color0}${GOTO 33 }${font Devil inside:size = 40 }v${font} ${voffset - 8 }$stippled_hr${color} ${voffset 8 }
${voffset 5 }${GOTO 36 }${color6}${font Poky:size = 16 }P${font}${color}${voffset - 10 }${GOTO 70 }${color1}${execi 4 sensors | grep - A 0 ' Core 0 ' | cut - c15 - 18 } ºC${color}${GOTO 120 }${color7}${cpubar cpu1 10 , 63 }${color}${GOTO 190 }${color7}${cpubar cpu2 10 , 63 }${color}
${GOTO 70 }${color1}${execi 4 sensors | grep - A 0 ' Core 2 ' | cut - c15 - 18 } ºC${color}${GOTO 120 }${color7}${cpubar cpu3 10 , 63 }${color}${GOTO 190 }${color7}${cpubar cpu4 10 , 63 }${color}
########################
# 显卡 #
#######################
${voffset 12 }${GOTO 35 }${color6}${font Poky:size = 14 }x${font}${color}${voffset - 5 }${GOTO 67 }${color1}${execi 4 aticonfig -- odgt | grep -A 0 'Sensor 0' | cut -c42-46} ºC${color}${voffset -10}${GOTO 144}${color6}${font Poky:size=12}P${font}${color}${GOTO 121}${voffset 15}${color1}${execi 4 aticonfig --odgc | grep -A 0 'Current Clocks' | cut -c32-34} MHz${color}${voffset -20}${GOTO 216}${color6}${font Poky:size=12}M${font}${color}${GOTO 194}${voffset 15}${color1}${execi 4 aticonfig --odgc | grep -A 0 'Current Clocks' | cut -c46-48} MHz${color}
########################
# 内存 #
#######################
${voffset 4 }${GOTO 35 }${color6}${font Poky:size = 16 }M${font}${color}${GOTO 74 }${voffset - 10 }${color6}${membar 10 , 180 }${color} ${GOTO 230 }${voffset - 2 }${color0}${font Droid Sans:style = Bold:size = 7 }${memperc} % ${font}${color}
${voffset - 9 }${GOTO 74 }${color6}${swapbar 10 , 180 }${color}${GOTO 230 }${voffset - 2 }${color0}${font Droid Sans:style = Bold:size = 7 }${swapperc} % ${font}${color}
########################
# 进程 #
#######################
${color0}${GOTO 33 }${font Poky:size = 15 }a${font} ${voffset - 8 }$stippled_hr${color} ${voffset 8 }
${voffset 4 }${goto 55 }${voffset - 10 }${color8}进程 ${color}${color8}${alignr 46 }CPU${alignr 5 }RAM${color}
${voffset - 1 }${goto 42 }${color1}${top name 1 }${color}${font Droid Sans:style = Bold:size = 8 }${color1} ${goto 160 }${top cpu 1 }${alignr 7 }${top mem 1 }${color}${font}
${voffset - 1 }${goto 42 }${color1}${top name 2 }${color}${font Droid Sans:style = Bold:size = 8 }${color1} ${goto 160 }${top cpu 2 }${alignr 7 }${top mem 2 }${color}${font}
${voffset - 1 }${goto 42 }${color1}${top name 3 }${color}${font Droid Sans:style = Bold:size = 8 }${color1} ${goto 160 }${top cpu 3 }${alignr 7 }${top mem 3 }${color}${font}
########################
# 硬盘 #
#######################
${color0}${GOTO 33 }${font Poky:size = 15 }y${font} ${voffset - 8 }$stippled_hr${color} ${voffset 8 }
${GOTO 42 }${color6}${font Poky:size = 10 }y${font} / ${color} ${color1}${execi 120 hddtemp / dev / sda - n -- unit=C} ºC${color}${color1}${alignr 7}${fs_used /} / ${fs_size /}${color}
${voffset - 4 }${GOTO 42 }(root) ${voffset 2 }${GOTO 90 }${color8}${fs_bar 10 , 165 / }${colors}
${GOTO 42 }${color6}${font Poky:size = 10 }y${font} / dev / sda1${color}${alignr 7 }${color1}${fs_used / media / C} / ${fs_size / media / C}${color}
${voffset - 4 }${GOTO 42 }C: ${voffset 2 }${GOTO 90 }${color8}${fs_bar 10 , 165 / media / C}${color}
${GOTO 42 }${color6}${font Poky:size = 10 }y${font} / dev / sda5${color} ${alignr 7 }${color1}${fs_used / media / D} / ${fs_size / media / D}${color}
${voffset - 4 }${GOTO 42 }D: ${voffset 2 }${GOTO 90 }${color8}${fs_bar 10 , 165 / media / D}${color}
${GOTO 42 }${color6}${font Poky:size = 10 }y${font} / dev / sda6${color}${alignr 7 }${color1}${fs_used / media / E} / ${fs_size / media / E}${color}
${voffset - 4 }${GOTO 42 }E: ${voffset 2 }${GOTO 90 }${color8}${fs_bar 10 , 165 / media / E}${color}
${GOTO 42 }${color6}${font Poky:size = 10 }y${font} / dev / sda7${color}${alignr 7 }${color1}${fs_used / media / F} / ${fs_size / media / F}${color}
${voffset - 4 }${GOTO 42 }F: ${voffset 2 }${GOTO 90 }${color8}${fs_bar 10 , 165 / media / F}${color}
########################
# 网络 #
#######################
# upspeed 上传速度
# upspeedgraph 上传图形
# totalup 上传流量
# downspeed 下载速度
# downspeedgraph 下载图形
# totaldown 下载流量
#
#
#
#
${color0}${GOTO 33 }${font Poky:size = 15 }w${font} ${voffset - 8 }$stippled_hr${color}
#
# wlan
#
${if_up wlan0}
# 上传
${GOTO 40 }${voffset - 13 }${color0}${font VariShapes Solid:size = 14 }q${font}${color}${goto 58 }${voffset - 13 }上传: ${font Droid Sans:style = Bold:size = 8 }${color1}${upspeed wlan0} / s${color}${font}
${goto 58 }${voffset - 3 }流量: ${font Droid Sans:style = Bold:size = 8 }${color2}${totalup wlan0}${color}${font}${alignr 7 }${voffset - 23 }${color2}${upspeedgraph wlan0 26 , 110 CE5C00 E07A1F}${color}
# 下载
${GOTO 40 }${voffset - 3 }${color0}${font VariShapes Solid:size = 14 }Q${font}${color}${goto 58 }${voffset - 10 }下载: ${font Droid Sans:style = Bold:size = 8 }${color1}${downspeed wlan0} / s${color}${font}
${goto 58 }${voffset - 3 }流量: ${font Droid Sans:style = Bold:size = 8 }${color2}${totaldown wlan0}${color}${font}${alignr 7 }${voffset - 23 }${color2}${downspeedgraph wlan0 26 , 110 CE5C00 E07A1F}${color}
# 信号
${GOTO 40 }${voffset - 8 }${color0}${font Poky:size = 16 }Y${font}${color}${goto 58 } ${voffset - 3 }信号: ${font Droid Sans:style = Bold:size = 8 }${color1}${wireless_link_qual wlan0} % ${color}${font} ${alignr 7 }${voffset - 2 }${color9}${wireless_link_bar 8 , 110 wlan0}${color}
# IP地址
${GOTO 40 }${voffset 7 }${color0}${font OpenLogos:size = 19 }P${font}${color}${goto 58 }${voffset - 15 }内网IP: ${alignr 7 }${color2}${addr wlan0}${color}
${goto 58 }公网IP: ${alignr 7 }${color2}${execi 10800 ~ / .conky / bin / conkyIp}${color}
#
# eth0
#
${ else }${if_up eth0}
# 上传
${GOTO 40 }${voffset - 13 }${color0}${font VariShapes Solid:size = 14 }q${font}${color}${goto 58 }${voffset - 13 }上传: ${font Droid Sans:style = Bold:size = 8 }${color1}${upspeed eth0} / s${color}${font}
${goto 58 }${voffset - 3 }流量: ${font Droid Sans:style = Bold:size = 8 }${color2}${totalup eth0}${color}${font}${alignr 7 }${voffset - 23 }${color2}${upspeedgraph eth0 26 , 110 CE5C00 E07A1F}${color}
# 下载
${GOTO 40 }${voffset - 3 }${color0}${font VariShapes Solid:size = 14 }Q${font}${color}${goto 58 }${voffset - 10 }下载: ${font Droid Sans:style = Bold:size = 8 }${color1}${downspeed eth0} / s${color}${font}
${goto 58 }${voffset - 3 }流量: ${font Droid Sans:style = Bold:size = 8 }${color2}${totaldown eth0}${color}${font}${alignr 7 }${voffset - 23 }${color2}${downspeedgraph eth0 26 , 110 CE5C00 E07A1F}${color}
# IP地址
${GOTO 40 }${voffset 7 }${color0}${font OpenLogos:size = 19 }P${font}${color}${goto 58 }${voffset - 15 }内网IP: ${alignr 7 }${color2}${addr eth0}${color}
${goto 58 }公网IP: ${alignr 7 }${color2}${execi 10800 ~ / .conky / bin / conkyIp}${color}
# 无网络
${ else }${GOTO 40 }无网络${endif}${endif}
${voffset - 80 }${goto 70 }${color5}${font Devil inside:size = 100 }a${font}${color}