Xcompmgr (简体中文)

https://wiki.archlinux.org/index.php/Xcompmgr_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)

 

Xcompmgr是一个简单的混合窗口管理器,可以实现阴影、原生窗口透明(配合transset工具)等特效。Xcompmgr设计初衷只是实现混合窗口管理器的概念,所以比起同类混合窗口管理器如 Compiz Fusion,Xcompmgr轻量许多。

Xcompmgr不替代任何窗口管理器,所以对于OpenboxFluxbox这类缺乏特效的窗口管理器来讲,配合Xcompmgr能得到更华丽的视觉效果。

Contents

 [hide

系统要求

使用Xcompmgr前,必须做以下工作:

安装

官方软件仓库安装xcompmgr以及透明度设置工具transset-df

配置

运行xcompmgr:

$ xcompmgr -c

如果要在每次Xorg启动时运行,添加下面内容到xprofile

xcompmgr -c &

用户可以通过命令行参数调整阴影、消隐等效果,以下是一个常用的配置:

xcompmgr -c -C -t-5 -l-5 -r4.2 -o.55 &

查看命令行帮助:

$ xcompmgr --help

窗口透明度

transset工具用来设置单个窗口的透明度,透明特效可能会降低系统性能。

先启动要设置透明度的程序,然后运行:

transset n

.. 此处 n 是0到1之间的数字,0表示完全透明(不可见),1表示不透明。例如:transset .25 代表75%的透明度。

运行后,鼠标会变成十字形。点击要设置的窗口,即可应用透明度设置。

疑难解答

Fluxbox windows won't raise

This is fixed in fluxbox CVS after 0.9.10. See [1] for more info.

A workaround in 0.9.10 is to set the layer of the Slit to "Desktop" (flux menu -> Configure -> Slit -> Layer -> Desktop).

Mozilla Firefox 打开 Flash 时崩溃

新建可执行文件/etc/profile.d/flash.sh,文件内容如下:

export XLIB_SKIP_ARGB_VISUALS=1

这将关闭混合特效。

登陆后变成浅灰色背景 (如Openbox)

安装hsetroot,在运行xcompmgr之前,执行hsetroot -solid "#000000"(将000000替换成你想要的颜色代码)。

在 awesome 窗口管理器中出现 BadPicture request

如果你在 awesome 得到以下错误信息:

 error 163: BadPicture request 149 minor 8 serial 34943
 error 163: BadPicture request 149 minor 8 serial 34988
 error 163: BadPicture request 149 minor 8 serial 35033

只需要安装软件包 feh 然后重启 awesome

Chromium & Xcompmgr & Awesome & Conky

I got some problems at startup after changing the displayresolution and autostarting Chromium in AwesomeWM (laptop with external monitor). In Combination with Conky there is always some part of the screen "stuck", the problem came from my resolution change at start via .xinitrc and Awesome setting the background afterwards via feh. I solved this by putting

hsetroot -solid "#000066"

in my .xinitrc just before xcompmgr.

小提示

方便开关xcompmgr的脚本

把这个脚本放在合适的应用程序目录,可以方便地启动、关闭xcompmgr。

#!/bin/bash
#
# Start a composition manager.
# (xcompmgr in this case)

function comphelp () {
  echo "Composition Manager:"
  echo "   (re)start: COMP"
  echo "   stop:      COMP -s"
  echo "   query:     COMP -q"
  echo "              returns 1 if composition manager is running, else 0"
  exit
}

function checkcomp () {
  ( ps nc -C xcompmgr &>/dev/null ) && exit 1
  exit 0
}

function stopcomp () {
  ( ps nc -C xcompmgr &>/dev/null ) && killall xcompmgr
}

function startcomp () {
  stopcomp
# Example settings only. Replace with your own.
  xcompmgr -CcfF -I-.015 -O-.03 -D6 -t-1 -l-3 -r4.2 -o.5 &
  exit
}

case "$1x" in
    "x") startcomp;;
  "-qx") checkcomp;;
  "-sx") stopcomp; exit;;
      *) comphelp;;
esac

另见

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值