LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: xw_xiao

为何我的urxvt不能实现半透明效果呢?

[复制链接]
 楼主| 发表于 2006-8-13 15:37:51 | 显示全部楼层
Post by completist
debian中是eterm里带的,和Enlightenment配合的最好
http://eterm.sourceforge.net/

debian中eterm不是单独的包,看样子是在Enlightenment里边了。算了,太大,不装了。再想想看有没有其他的办法。
回复 支持 反对

使用道具 举报

发表于 2006-8-14 08:52:21 | 显示全部楼层
Post by completist
确保你的rxvt编译时启用了透明支持,可以自己重编译下加入--enable-transparency --enable-tinting --enable-xft等试一下

不知道兄台的这种字体是怎么设置的?
URXVT默认的字体太丑了,我设了几次没设好
回复 支持 反对

使用道具 举报

发表于 2006-8-14 09:58:31 | 显示全部楼层
  1. urxvt -name Terminal -fn "xft:Monospace:pixelsize=11" -fade 20 +sb -depth 32 -fg white -bg rgba:2000/2000/2000/dddd
复制代码

这样有没有效果?
回复 支持 反对

使用道具 举报

发表于 2006-8-14 17:41:02 | 显示全部楼层
~/.Xdefaults 中和urxvt相关的部分,和screen配合还算凑合

  1. !URxvt.imLocale: zh_CN.UTF-8
  2. URxvt.background:black
  3. URxvt.foreground:grey
  4. URxvt.colorBD:yellow
  5. URxvt.colorUL:green
  6. URxvt.scrollBar:True
  7. URxvt.scrollBar_right:False
  8. URxvt.scrollBar_floating:True
  9. URxvt.scrollstyle:plain
  10. URxvt.saveLines:150
  11. URxvt.color4:RoyalBlue4
  12. URxvt.color12:SkyBlue2
  13. URxvt.inheritPixmap:true
  14. URxvt.tintColor:grey
  15. URxvt.shading:90
  16. URxvt.font:xft:DejaVu Sans Mono:pixelsize=21,xft:Vera Sans YuanTi Mono
  17. !URxvt.font:xft:Bitstream Vera Sans Mono:pixelsize=21,xft:NSimSun
  18. URxvt.geometry: 75x21
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-14 21:16:56 | 显示全部楼层
Post by completist
~/.Xdefaults 中和urxvt相关的部分,和screen配合还算凑合

  1. !URxvt.imLocale: zh_CN.UTF-8
  2. URxvt.background:black
  3. URxvt.foreground:grey
  4. URxvt.colorBD:yellow
  5. URxvt.colorUL:green
  6. URxvt.scrollBar:True
  7. URxvt.scrollBar_right:False
  8. URxvt.scrollBar_floating:True
  9. URxvt.scrollstyle:plain
  10. URxvt.saveLines:150
  11. URxvt.color4:RoyalBlue4
  12. URxvt.color12:SkyBlue2
  13. URxvt.inheritPixmap:true
  14. URxvt.tintColor:grey
  15. URxvt.shading:90
  16. URxvt.font:xft:DejaVu Sans Mono:pixelsize=21,xft:Vera Sans YuanTi Mono
  17. !URxvt.font:xft:Bitstream Vera Sans Mono:pixelsize=21,xft:NSimSun
  18. URxvt.geometry: 75x21
复制代码




我贴了你的配置,还是不能半透明。看来确实跟我的环境有关系。

问几个问题吧
1、你用的也是fvwm吗?
2、你的墙纸是用什么方法设置的呢?
回复 支持 反对

使用道具 举报

发表于 2006-8-14 21:59:00 | 显示全部楼层
1. 用的是fluxbox,之前用了很长时间的fvwm,之后是fvwm-crystal,那时基本是用mlterm,实现透明很简单的
2. fbsetbg -c xxx.png,装个fluxbox试试好了,很小的,呵呵
回复 支持 反对

使用道具 举报

发表于 2006-8-14 22:07:18 | 显示全部楼层
搞定了,thx,呵呵
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-14 23:06:42 | 显示全部楼层
Post by nait
搞定了,thx,呵呵

咋搞定的,说来听听。
回复 支持 反对

使用道具 举报

发表于 2006-8-14 23:17:06 | 显示全部楼层
伪透明的嘛,不搞也罢啦
回复 支持 反对

使用道具 举报

发表于 2006-8-15 00:41:24 | 显示全部楼层
能作到的何妨一试,一如以前fvwm的伪透明,当然,rxvt-unicode的宗旨还是“lean and nice on resources”,透明与否确实不是其关注的,在其FAQ中也提及了:

  1. ...
  2. I can't get transparency working, what am I doing wrong?
  3.     First of all, transparency isn't officially supported in rxvt-unicode,
  4.     so you are mostly on your own. Do not bug the author about it (but you
  5.     may bug everybody else). Also, if you can't get it working consider it a
  6.     rite of passage: ... and you failed.

  7.     Here are four ways to get transparency. Do read the manpage and option
  8.     descriptions for the programs mentioned and rxvt-unicode. Really, do it!

  9.     1. Use inheritPixmap:

  10.        Esetroot wallpaper.jpg
  11.        urxvt -ip -tint red -sh 40

  12.     That works. If you think it doesn't, you lack transparency and tinting
  13.     support, or you are unable to read.
  14. ...
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表