https://wiki.archlinux.org/api.php?action=feedcontributions&user=Grim147&feedformat=atomArchWiki - User contributions [en]2024-03-29T10:11:48ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Xcompmgr&diff=136166Xcompmgr2011-04-07T21:24:49Z<p>Grim147: /* Mozilla Firefox crashes when entering a Flash site */</p>
<hr />
<div>[[Category:X Server (English)]]<br />
[[Category:Eye candy (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n|Xcompmgr}}<br />
{{Article summary start}}<br />
{{Article summary text|Describes the installation and usage of xcompmgr.}}<br />
{{Article summary heading|Related articles}}<br />
{{Article summary wiki|Cairo Compmgr}}<br />
{{Article summary wiki|Composite}}<br />
{{Article summary wiki|AIGLX}}<br />
{{Article summary wiki|Xorg}}<br />
{{Article summary wiki|Window Manager}}<br />
{{Article summary wiki|Openbox}}<br />
{{Article summary wiki|Fluxbox}}<br />
{{Article summary wiki|Awesome}}<br />
{{Article summary end}}<br />
Xcompmgr is a simple composite manager, capable of rendering drop shadows and, with the use of the {{Codeline|transset}} utility, primitive window transparency. Designed solely as a proof-of-concept, xcompmgr is a lightweight alternative to Compiz Fusion and similar composite managers.<br />
<br />
Because it does not replace any existing window manager, it is an ideal solution for [[Openbox]] and [[Fluxbox]] users seeking a more elegant desktop.<br />
<br />
== Prerequisites ==<br />
<br />
Xcompmgr requires the following:<br />
* [[Xorg]] must be installed, configured and running<br />
* [[Composite]] must be enabled via graphics drivers or [[AIGLX]]<br />
<br />
== Installation ==<br />
<br />
Both {{Codeline|xcompmgr}} and the transparency tool {{Codeline|transset-df}}, are available from the standard repositories:<br />
# pacman -Syu xcompmgr transset-df<br />
<br />
== Configuration ==<br />
<br />
To load xcompmgr, simply run:<br />
$ xcompmgr -c<br />
<br />
To have it load at session start, add the following to [[xprofile]]:<br />
xcompmgr -c &<br />
<br />
Instead of {{Codeline|-c}} you can experiment with the other switches to modify the drop-shadows or even enable fading. Below is a common example:<br />
xcompmgr -c -t-5 -l-5 -r4.2 -o.55 &<br />
<br />
For a full list of options, run:<br />
$ xcompmgr --help<br />
<br />
=== Window Transparency ===<br />
<br />
Although its practical use is limited, due to its slow performance, the {{Codeline|transset}} utility can be used to set the transparency of individual windows.<br />
<br />
To set the transparency of a program window, make sure the desired program is already running, then execute:<br />
transset n<br />
.. where {{Codeline|n}} is a number from 0 to 1, zero being transparent and 1 being opaque.<br />
<br />
Once executed, the mouse cursor will transform to a crosshair. Simply click the desired window and the transparency will change to the value specified. For example, {{Codeline|transset .25}} will set the target window to 75% transparency.<br />
<br />
== Troubleshooting ==<br />
<br />
=== Fluxbox windows won't raise ===<br />
<br />
This is fixed in fluxbox CVS after 0.9.10. See [http://freedesktop.org/bugzilla/show_bug.cgi?id=1264] for more info.<br />
<br />
A workaround in 0.9.10 is to set the layer of the Slit to "Desktop" (flux menu -> Configure -> Slit -> Layer -> Desktop).<br />
<br />
=== Mozilla Firefox crashes when entering a Flash site ===<br />
<br />
You can fix it by creating an executable file named {{Filename|/etc/profile.d/flash.sh}} containing this line:<br />
export XLIB_SKIP_ARGB_VISUALS=1<br />
<br />
Warning! this will disable compositing effects aswell as cause kwin to not function and cairo-compmgr to crash.<br />
<br />
=== Background turns light gray briefly after logging in (e.g. in Openbox) ===<br />
<br />
This is fixed by installing hsetroot (it's in AUR) and setting the background color by executing {{Codeline|hsetroot -solid "#000000"}} (just type the code of the colour you want instead of 000000) before xcompmgr.<br />
<br />
== Tips ==<br />
<br />
=== Starting/Stopping xcompmgr on Demand ===<br />
<br />
This script (e.g. in ~/bin) allows easy (re)starting and stopping of the compositing manager.<br />
#!/bin/bash<br />
#<br />
# Start a composition manager.<br />
# (xcompmgr in this case)<br />
<br />
function comphelp () {<br />
echo "Composition Manager:"<br />
echo " (re)start: COMP"<br />
echo " stop: COMP -s"<br />
echo " query: COMP -q"<br />
echo " returns 1 if composition manager is running, else 0"<br />
exit<br />
}<br />
<br />
function checkcomp () {<br />
( ps nc -C xcompmgr &>/dev/null ) && exit 1<br />
exit 0<br />
}<br />
<br />
function stopcomp () {<br />
( ps nc -C xcompmgr &>/dev/null ) && killall xcompmgr<br />
}<br />
<br />
function startcomp () {<br />
stopcomp<br />
# Example settings only. Replace with your own.<br />
xcompmgr -CcfF -I-.015 -O-.03 -D6 -t-1 -l-3 -r4.2 -o.5 &<br />
exit<br />
}<br />
<br />
case "$1x" in<br />
"x") startcomp;;<br />
"-qx") checkcomp;;<br />
"-sx") stopcomp; exit;;<br />
*) comphelp;;<br />
esac<br />
<br />
I bound COMP and COMP -s to two hot keys in IceWM because there are a few glitches using xcompmgr in this WM. This allows for fast restart or temporary composition removal if needed without interrupting other work.<br />
<br />
==See also==<br />
*[[AIGLX]]<br />
*[[Composite]] -- A Xorg extension required by composite managers<br />
*[[Compiz]] -- The original composite/window manager from Novell<br />
*[[Cairo Compmgr|Cairo Composite Manager]] -- A versatile and extensible composite manager which uses cairo for rendering.<br />
*[[Wikipedia:Compositing window manager]]</div>Grim147