这个是normal状态下的透明效果:
这个是panel下的透明效果:
我的conkyrc
代码: 全选
background yes
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type panel
own_window_transparent yes
own_window_argb_visual yes
own_window_class conky-semi
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 250 5
maximum_width 306
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_right
gap_x 5
gap_y 5
no_buffers yes
cpu_avg_samples 2
override_utf8_locale no
uppercase no
use_spacer no
TEXT
${color yellow} ${font Aerial:style=Bold:pixelsize=10}SYSTEM${font Snap.se:size=8} ${hr 1 }
${color green}Hostname: ${color yellow}${alignr}BackTrack 5
${color green}Kernel: ${color yellow}$alignr$sysname ($kernel)
${color green}Uptime: ${color yellow}$alignr$uptime
${color green}Processes: ${color yellow}${alignr}$processes ($running_processes running)
${color green}Load: ${color yellow}${alignr}$loadavg
${color green}CPU ${color yellow} ${alignc} ${freq}MHz / ${acpitemp}C ${alignr}(${cpu cpu1}%)
${color red}${cpubar 4 cpu1}
${cpugraph 29,250 ffffff ff3333}
${color green}RAM ${color yellow}${alignr}$mem / $memmax ($memperc%)
${color red}${membar 4}
${color green}SWAP ${color yellow}${alignr}$swap / $swapmax ($swapperc%)
${color red}${swapbar 4}
${color green}Highest CPU $alignr CPU% MEM%
${color green}${hr 1}
${color yellow}${top name 1}$alignr${top cpu 1}${top mem 1}
${color yellow}${top name 2}$alignr${top cpu 2}${top mem 2}
${color green}Highest MEM $alignr CPU% MEM%
${color green}${hr 1}
${color yellow}${top_mem name 1}$alignr${top_mem cpu 1}${top_mem mem 1}
${color yellow}${top_mem name 2}$alignr${top_mem cpu 2}${top_mem mem 2}
${color yellow}${font Aerial:style=Bold:pixelsize=10}NETWORK ${font Snap.se:size=8}${hr 1}
${color green}Down ${color yellow}${downspeed eth0} k/s ${alignr}${color green}Up ${color yellow}${upspeed eth0} k/s
${downspeedgraph eth0 25,107 ffffff ff3333} ${alignr}${upspeedgraph eth0 25,107 ffffff ff3333}
${color green}Total ${color yellow}${totaldown eth0} ${alignr}${color green}Total ${color yellow}${totalup eth0}
${color green}Private Address: $alignr${color yellow}${addr eth0}
${color green}Public Address: $alignr${color yellow}${execi 300 /root/.conky_scripts/ip.sh}
${color yellow}${font Aerial:style=Bold:pixelsize=10}CONNECTIONS ${font Snap.se:size=8}${hr 1}
${color green}Inbound: ${color yellow}${tcp_portmon 1 32767 count}${color green} ${alignc}Outbound: ${color yellow}${tcp_portmon 32768 61000 count}${alignr} ${color green}ALL: ${color yellow}${tcp_portmon 1 65535 count}
${color green}Inbound Connection ${alignr} Local Service/Port$color
${color yellow} ${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
${color yellow} ${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
${color yellow} ${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
${color green}Outbound Connection ${alignr} Remote Service/Port$color
${color yellow} ${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
${color yellow} ${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
${color yellow} ${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
${color yellow}${font Aerial:style=Bold:pixelsize=10}FILESYSTEM ${font Snap.se:size=8}${hr 1}
${color green}Root: ${color yellow}${alignr}${fs_free /} / ${fs_size /}
${color red}${fs_bar 4 /}
${color green}Boot: ${color yellow}${alignr}${fs_free /boot} / ${fs_size /boot}
${color red}${fs_bar 4 /boot}
${color yellow}${font Aerial:style=Bold:pixelsize=10}BACKTRACK RSS ${font Snap.se:size=8}${hr 1}
${color green}${execi 300 /root/.conky_scripts/conky-rss.sh http://www.offensive-security.com/blog/feed/}