当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : conky透明背景色问题!
帖子发表于 : 2011-05-26 17:17 

注册: 2011-05-16 23:43
帖子: 14
送出感谢: 0 次
接收感谢: 0 次
我安装了conky 现在在制作透明地方遇到了点问题。首先在own_window_type哪里设置成normal后透明状态下有个背景色是白的。我想更换下颜色不知道怎么修改!如果把normal修改成panel后有完全透明了 和桌面效果不怎么融洽!

这个是normal状态下的透明效果:

附件:
snapshot1.png
snapshot1.png [ 213.24 KiB | 被浏览 709 次 ]



这个是panel下的透明效果:

附件:
snapshot2.png
snapshot2.png [ 270.55 KiB | 被浏览 709 次 ]



我的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/}


页首
 用户资料  
 
2 楼 
 文章标题 : Re: conky透明背景色问题!
帖子发表于 : 2011-05-29 10:28 
头像

注册: 2011-03-28 11:04
帖子: 102
地址: 我躲着,你来找
送出感谢: 0 次
接收感谢: 0 次
又是conky :em06


_________________
弯柚博客-Linux-嵌入式-驱动-Android开发->http://www.ourunix.org
使用redhat2年,正在使用unbuntu10.04,现为软件蓝领
Unix/Linux技术研讨群:53720857
《玩转Linux》
《深入Linux驱动》
《Android自学教程》
弯柚博客---一个分享嵌入式系统、Linux新技术的平台,招募一起学习的同志!!!


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译