代码: 全选
# Conky settings #
background yes
update_interval 1
double_buffer yes
no_buffers yes
imlib_cache_size 10
# Window specifications #
gap_x 50
gap_y 30
minimum_size 256 5
maximum_width 256
own_window yes
own_window_type dock # other options are: override/normal/desktop/panel
own_window_transparent yes
own_window_colour FFFFFF
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
#alignment middle_middle
own_window_argb_visual yes
own_window_argb_value 0
# Graphics settings #
draw_shades no
default_shade_color AAAAAA
draw_outline no
default_outline_color AAAAAA
draw_borders no
draw_graph_borders no
default_graph_size 26 80
show_graph_scale no
show_graph_range no
# Text settings #
use_xft yes
xftalpha 0
xftfont Droid Sans:size=10
text_buffer_size 256
override_utf8_locale yes
# Useful shortenings #
short_units yes
pad_percents 2
top_name_width 7
# Color scheme #
default_color FFFFFF
color1 FFA500
color2 FFFFFF
color3 87CEEB
TEXT
\
# Clock + calendar #
${font Droid Sans Mono :size=32}${color1}${alignc}${time %H:%M}${color}${font}
${font Droid Sans :size=12}${color2}${alignc}${time %A, %F}${color}${font}
${font Droid Sans :size=8}${color2}${alignc}${nodename}(${machine})___${kernel}${color}${font}
\
# Note #
${hr 3}
${voffset 6}${font size=10}${color1}${alignc}Note:${color}${font}
${font WenQuanYi Zen Hei:size=12}${color3}${execp cat /home/highwind/Documents/.ToDoList.txt | sed 's#^#${goto 16}#'}${color}${font}
${hr 3}
\
# Cpu, memory, processes, swap info and load graph 利用voffset整合了文字和图形,但是随之而来的是背景的下移,暂时隐去背景折衷#
${goto 16}${color2}${cpubar cpu0 25,224}
${voffset -35}${goto 20}${color1}${font DejaVu Sans Mono:size=15}CPU${font}${goto 200}${voffset -3}${font DejaVu Sans Mono:size=12}${cpu cpu0}%${font}
${voffset 5}${goto 36}${color2}Name${goto 118}CPU${goto 198}MEM${color}
${goto 36}${top name 1}${goto 112}${top cpu 1}${goto 192}${top mem 1}
${goto 36}${top name 2}${goto 112}${top cpu 2}${goto 192}${top mem 2}
${goto 36}${top name 3}${goto 112}${top cpu 3}${goto 192}${top mem 3}${font}${color}
${goto 16}${color2}${membar 25,224}
${voffset -35}${goto 20}${color1}${font DejaVu Sans Mono:size=15}MEM${font}${goto 200}${voffset -3}${font DejaVu Sans Mono:size=12}${memperc}%${font}
${voffset 5}${goto 36}${color2}Name${goto 118}CPU${goto 198}MEM${color}
${goto 36}${top_mem name 1}${goto 112}${top_mem cpu 1}${goto 192}${top_mem mem 1}
${goto 36}${top_mem name 2}${goto 112}${top_mem cpu 2}${goto 192}${top_mem mem 2}
${goto 36}${top_mem name 3}${goto 112}${top_mem cpu 3}${goto 192}${top_mem mem 3}${font}${color}
\
# The network section #
${goto 20}${color1}Up:${color}${color2}${goto 80}${upspeed wlan0}${color1}${goto 140}Down:${color}${color2}${goto 200}${downspeed wlan0}${color}
${goto 16}${color3}${upspeedgraph wlan0 18,100}${goto 140}${downspeedgraph wlan0 18,100}${color}
${goto 20}${color1}Sent:${color2}${goto 80}${totalup wlan0}${color1}${goto 140}Received: ${color2}${goto 200}${totaldown wlan0}${color}
代码: 全选
${execp cat /home/highwind/Documents/.ToDoList.txt | sed 's#^#${goto 16}#'}