Difference between revisions of "Compiz"

From ArchWiki
Jump to: navigation, search
m (Mate Desktop)
m (Alt-Tab switcher has no background (Emerald): add compiz version as well as revision number on its own is not so helpful)
 
(867 intermediate revisions by 26 users not shown)
Line 1: Line 1:
 
[[Category:Eye candy]]
 
[[Category:Eye candy]]
 
[[Category:Stacking WMs]]
 
[[Category:Stacking WMs]]
 +
[[de:Compiz-fusion]]
 
[[el:Compiz]]
 
[[el:Compiz]]
 
[[es:Compiz]]
 
[[es:Compiz]]
 +
[[fr:Compiz]]
 
[[it:Compiz]]
 
[[it:Compiz]]
 
[[ja:Compiz]]
 
[[ja:Compiz]]
Line 10: Line 12:
 
[[tr:Compiz]]
 
[[tr:Compiz]]
 
[[zh-CN:Compiz]]
 
[[zh-CN:Compiz]]
{{Article summary start}}
+
{{Related articles start}}
{{Article summary wiki|Compiz Configuration}}
+
{{Related|Compiz configuration}}
{{Article summary wiki|AIGLX}}
+
{{Related|Window manager}}
{{Article summary wiki|Composite}}
+
{{Related|Desktop environment}}
{{Article summary wiki|Xcompmgr}}
+
{{Related|Xfce}}
{{Article summary wiki|Cairo Compmgr}}
+
{{Related|MATE}}
{{Article summary end}}
+
{{Related articles end}}
  
Compiz is a [[Wikipedia:Compositing window manager|compositing window manager]]. It provides its own window manager, [[Emerald]].  Therefore it cannot be used simultaneously with other window managers such as [[Openbox]], [[Fluxbox]], or [[Enlightenment]].  Users who want to keep their current window managers and add some effects to it may wish to try [[Xcompmgr]] instead.
+
According to [[Wikipedia:Compiz|Wikipedia]]:
 
+
: Compiz is a [[Wikipedia:Compositing window manager|compositing window manager]] for the [[X Window System]], using 3D graphics hardware to create fast compositing desktop effects for window management. Effects, such as a minimization animation or a cube workspace, are implemented as loadable plugins.
== Requirements ==
+
Users of major [[DE]]s can make good use of {{Pkg|compiz-manager}}, performing brief requirements checking and switching to fallback WM in case of errors. Discovering setup and hardware issues can also be done with {{AUR|compiz-check}} script (available in [[AUR]]).
+
  
 
== Installation ==
 
== Installation ==
All compiz packages, available in [[official repositories]], can be [[pacman|installed]] with group {{Grp|compiz-fusion}}.
 
  
For those who do not want to install EVERYTHING there are also groups {{Grp|compiz-fusion-gtk}} and {{Grp|compiz-fusion-kde}} for [[Gnome]] or [[KDE]] correspondingly.
+
As of May 2013, Compiz is [https://mailman.archlinux.org/pipermail/arch-dev-public/2013-May/024956.html no longer available] in the [[official repositories]]. Packages for installing both the 0.9 and 0.8 series are available in the [[AUR]]. The two series are '''not parallel installable.'''
  
Users who wish to select the packages individually may start with {{Pkg|compiz-core}} and one of [[#Decorators|decorators]].
+
=== Installing the 0.9 series ===
{{Note|Lack of configured window decorator can render your [[X]] workspace slightly unusable.}}
+
  
=== Initial configuration ===
+
{{Note|
While the appearance of the windows and their contents is a function of [[GTK+]] and [[Qt]], the frames around the windows are controlled by the Window Decoration plugin. To use it make sure you have a window decorator installed. Depending on what packages you have downloaded you can choose among several window decorators. The most common ones are Emerald, kde-window-decorator, and gtk-window-decorator. The emerald decorator has the advantage that it fits better to compiz's screen handling and offers transparency effects.To set your default window decorator type the following command string in the "Window Decoration" plugin's settings under the field "Command".
+
* From Compiz 0.9.8 onwards, all Compiz components are developed and distributed as a single project. This means that a single package can provide all of the Compiz components.
To set emerald as your default window-decorator type:
+
* To have ''emerald-themes'' with ''emerald0.9'', first install {{AUR|emerald0.9}} and then install {{AUR|emerald-themes}}. Doing the opposite will resolve the wrong dependencies and cause conflicts.}}
emerald --replace
+
To set the kde-window-decorator as an alternative to Emerald type:
+
kde4-window-decorator --replace
+
To set the compiz-decorator-gtk as an alternative to Emerald type:
+
gtk-window-decorator --replace
+
  
{{Box RED|Activate important plugins!|
+
Required:
There is high possibility that you will want to activate a few plugins that provide basic window manager behavior or else you will have no ability to drag, scale or close any windows as soon as compiz is activated. Among those plugins are "Window Decoration" under Effects and "Move Window" & "Resize Window" under Window Management. Ccsm may be used to achieve this.
+
* {{App|Compiz|OpenGL compositing window manager with CCSM, Plugins and GTK Window Decorator.|https://launchpad.net/compiz|{{AUR|compiz}}}}
Launch CompizConfig Settings Manager:
+
$ ccsm
+
Simply put check marks next to those plugins to activate them.}}
+
  
== Additional software ==
+
Optional:
=== Decorators ===
+
* {{App|Emerald|A standalone window decorator for Compiz.|http://www.compiz.org/|{{AUR|emerald0.9}}}}
* {{App|[[Emerald]]|Compiz's own window decorator with few dependencies. (Note: Works but is buggy and no longer maintained)|http://www.compiz.org|{{Pkg|emerald}}}}
+
* {{App|Emerald Themes|Extra themes for the Emerald window decorator.|http://www.northfield.ws/projects/compiz/|{{AUR|emerald-themes}}}}
* {{Pkg|compiz-decorator-gtk}} and {{Pkg|compiz-decorator-kde}} – alternatives to Emerald, using your desktop environment's configuration backends and looks
+
* {{App|Fusion Icon|A tray applet for starting Compiz and switching window managers and decorators on the fly.|https://github.com/kozec/fusion-icon-gtk3|{{AUR|fusion-icon0.9}}}}
=== Other ===
+
* {{Pkg|ccsm}} (CompizConfig settings manager) – GUI application that lets you configure all of Compiz's plugins
+
* {{Pkg|fusion-icon}} – offers a tray icon and a nice way to start compiz, start ccsm and change the WM / Window Decorator
+
* [https://aur.archlinux.org/packages.php?K=compiz Lots of quickly dying packages in AUR]
+
  
== Starting Compiz Fusion ==
+
=== Installing the 0.8 series ===
  
=== Manually (with "fusion-icon") ===
+
{{Note|The {{AUR|compiz-core}} package does not provide the GTK Window Decorator by default. Users of this package should use {{AUR|emerald}} for [[#Window decoration]]. Alternatively, use {{AUR|compiz-gtk}} for a Compiz Core package that also provides GTK Window Decorator.}}
  
Launch the Compiz Fusion tray icon:
+
Required:
$ fusion-icon
+
* {{App|Compiz Core|OpenGL compositing window manager.|http://www.northfield.ws/projects/compiz/|{{AUR|compiz-core}}, {{AUR|compiz-gtk}}}}
  
{{Note|If it fails (almost never), you may try it with dbus-launch:
+
Highly recommended:
{{bc|$ dbus-launch "fusion-icon"}}}}
+
* {{App|CompizConfig Settings Manager|Graphical settings manager for Compiz.|http://www.northfield.ws/projects/compiz/|{{AUR|ccsm}}}}
Right click on the icon in the panel and go to 'select window manager'. Choose "Compiz" if it isn't selected already, and you should be set.
+
* {{App|Compiz Fusion Plugins Main|Main plugins collection for Compiz.|http://www.northfield.ws/projects/compiz/|{{AUR|compiz-fusion-plugins-main}}}}
 +
* {{App|Compiz Fusion Plugins Extra|Extra plugins collection for Compiz.|http://www.northfield.ws/projects/compiz/|{{AUR|compiz-fusion-plugins-extra}}}}
  
If this fails you can start compiz-fusion by using the following additional command to replace your default window decorator with Compiz's window decorator (Emerald):
+
Optional:
$ emerald --replace
+
* {{App|Compiz Fusion Plugins Experimental|Experimental Compiz plugins.|http://www.northfield.ws/projects/compiz/|{{AUR|compiz-fusion-plugins-experimental}}}}
 +
* {{App|Emerald|A standalone window decorator for Compiz.|http://www.northfield.ws/projects/compiz/|{{AUR|emerald}}}}
 +
* {{App|Emerald Themes|Extra themes for the Emerald window decorator.|http://www.northfield.ws/projects/compiz/|{{AUR|emerald-themes}}}}
 +
* {{App|Fusion Icon|A tray applet for starting Compiz and switching window managers and decorators on the fly.|http://www.compiz.org/|{{AUR|fusion-icon}}}}
  
'''Again, note:''' If you want to use compiz window decorations make sure you have the "Window Decoration" plugin marked in the compiz settings through ccsm.
+
== Starting Compiz ==
  
=== Manually (without "fusion-icon") ===
+
=== Enabling important plugins ===
  
Launch Compiz with the following command (which replaces your current window manager):
+
{{Tip|Depending on which package you installed Compiz from, some of these plugins may already be activated.}}
$ compiz --replace ccp &
+
  
A quick overview over common compiz command-line options:
+
Before starting Compiz, you should activate some plugins to provide basic window manager behaviour or else you will have no ability to drag, scale or close any windows. Important plugins are listed below:
*--indirect-rendering: use indirect-rendering (AIGLX)
+
*--loose-binding: can help performance issues (nVidia?)
+
*--replace: replace current window-manager
+
*--keep-window-hints: keep the gnome window-manager gconf-settings for available viewports, ...
+
*--sm-disable: disable session-management
+
*ccp: the "ccp" command loads the last configured settings from ccsm (CompizConfig Settings Manager) otherwise Compiz will load with no settings and you won't be able to do anything with your windows like dragging, maximizing/minimizing, or moving.
+
  
=== KDE4 ===
+
* Window Decoration - provides window borders, see [[#Window decoration]].
{{Note| The first and last methods will load Compiz-Fusion as the default window manager instead of KWin. This is faster than loading Compiz with 'fusion-icon' because it avoids loading two window managers at startup. This also prevents that annoying black screen flicker you might see using other methods (when KWin switches to Compiz on KDE's desktop loading screens). The downside is that if Compiz crashes, it may be more difficult to recover your desktop}}
+
* Move Window.
 +
* Resize Window.
 +
* Place Windows - configure window placement options.
 +
* Application Switcher - provides an {{ic|Alt+Tab}} switcher - there are numerous alternative application switcher plugins, for example: Shift Switcher, Static Application Switcher and more. Not all of them use the {{ic|Alt+Tab}} keybinding.
 +
 +
To be able to switch to different [[Compiz configuration#Workspaces and Viewports|viewports]] you will need to enable one of the following:
 +
* Desktop Cube & Rotate Cube - provides the spinning cube with each side being a different viewport.
 +
* Desktop Wall - viewports are arranged next to each other - the animation is similar to the workspace switching animation in [[Cinnamon]] and [[GNOME]] Shell.
 +
* Expo - creates a view of all viewports and windows when the mouse is moved into the top left corner - this plugin can be used on its own or in conjunction with either of the two previous plugins.
  
==== Use System Settings (easiest)====
+
==== Window decoration ====
Go to: ''System Settings'' --> ''Default Applications'' --> ''Window Manager'' --> ''Use a different window manager''
+
  
'''''If''''' you need to run compiz with custom options select "Compiz custom" (when you run <code>fusion-icon</code> from a terminal you can see the command line with which compiz was started).
+
{{Tip|For information on selecting and managing themes, see: [[Compiz configuration#Window decoration themes]].}}
Create a file called "compiz-kde-launcher" in <code>/usr/bin</code>. Then make the file executable: <code>chmod +x /usr/bin/compiz-kde-launcher</code>.
+
  
For example:
+
The window decorator is the program which provides windows with borders. Unlike window managers such as Kwin or [[Xfwm]] which provide just one decorator, users of Compiz have a choice of three: GTK Window Decorator, KDE Window Decorator and Emerald. The GTK Window Decorator and the KDE Window Decorator are included in the Compiz source and can be optionally compiled whilst building Compiz. Emerald, on the other hand, is a separate, standalone decorator. The ''Window Decoration'' plugin in CCSM must be ticked otherwise no window decorator will be started.
  #!/bin/bash
+
  LIBGL_ALWAYS_INDIRECT=1
+
  compiz --replace ccp &
+
  wait
+
  
==== Autostart with "fusion-icon" ====
+
;Choosing the decorator
 +
The window decorator that will be started is specified under CCSM -> ''Effects'' -> ''Window Decoration'' -> ''Command''. The command can be one of the following executables: ''emerald'', ''gtk-window-decorator'', ''kde4-window-decorator''. Use the {{ic|--replace}} switch, e.g. {{ic|emerald --replace}}, if specifying the decorator executable on its own is not sufficient.
  
Add a symbolic link, that points to the fusion-icon executable, in your KDE Autostart directory:
+
{{Tip|In Compiz 0.9, the decorator command is set to ''compiz-decorator'' by default. This is a script which will search for the ''emerald'', ''gtk-window-decorator'' and ''kde4-window-decorator'' executables in that order and start the first one that it finds.}}
$ ln -s /usr/bin/fusion-icon ~/.kde4/Autostart/fusion-icon
+
  
Next time KDE is started, it will load fusion-icon automatically.
+
=== Compiz startup ===
  
==== Autostart Link without "fusion-icon" ====
+
{{Note|Some Compiz versions may require you to manually load the CCP plugin on startup: {{ic|compiz --replace ccp}} [http://blog.northfield.ws/compiz-release-announcement-0-8-12/]}}
  
{{Warning|DO NOT create compiz.desktop if you intend to install compiz-decorator-gtk; it will create a file conflict.}}
+
You can start Compiz using the following command:
 +
$ compiz --replace
  
* Append a desktop entry in the KDE Autostart directory. If it doesn't already exist (it should), create the file {{ic|~/.kde4/Autostart/compiz.desktop}} with the following:
+
See {{ic|compiz --help}} for more options.
  
[Desktop Entry]
+
==== Fusion Icon ====
Type=Application
+
Encoding=UTF-8
+
Name=Compiz
+
Exec=/usr/bin/compiz ccp --replace
+
NoDisplay=true
+
# name of loadable control center module
+
X-GNOME-WMSettingsModule=compiz
+
# autostart phase
+
X-GNOME-Autostart-Phase=WindowManager
+
X-GNOME-Provides=windowmanager
+
# name we put on the WM spec check window
+
X-GNOME-WMName=Compiz
+
# back compat only
+
X-GnomeWMSettingsLibrary=compiz
+
  
{{Note| If {{ic|compiz.desktop}} already exists, you may have to add "--replace" and/or "ccp" to the Exec variable. Without "--replace", Compiz won't load since it will detect another window manager already loaded. Without "ccp", Compiz will not load any of the settings and plugins that you have enabled through CompizConfig Settings Manager (ccsm) and you won't be able to manipulate any of your windows.}}
+
{{Tip|When [[#Autostarting Compiz in a desktop environment]] ''fusion-icon'' can be set as the default command instead of ''compiz''.}}
  
* If you want to use the optional {{ic|fusion-icon}} application, launch ''fusion-icon''. If you log out normally with ''fusion-icon'' running, KDE should restore your session and launch ''fusion-icon'' the next time you log in if this setting is enabled. If it doesn't appear to be working, ensure you have the following line in {{ic|~/.kde4/share/config/ksmserverrc}}:
+
To start Compiz using Fusion Icon, execute the command below:
 +
$ fusion-icon
  
loginMode=restorePreviousLogout
+
To ensure that ''fusion-icon'' then starts Compiz, right click on the icon in the panel and go to ''select window manager''. Choose ''Compiz'' if it is not selected already.
{{Note| This is a KDE specific setting that will allow you to restore other apps next time you log in, not just fusion-icon.}}
+
  
==== Export KDEWM without "fusion-icon" (preferred) ====
+
=== Autostarting Compiz in a desktop environment ===
  
As root you must create a short script by doing the following in your terminal. This will allow you to load compiz with the switches because doing it directly via {{ic|1=export KDEWM="compiz --replace ccp --sm-disable"}} doesn't seem to work.
+
See [[Desktop environment#Custom window manager]].
$ echo "compiz --replace ccp --sm-disable &" > /usr/bin/compiz-fusion
+
  
{{Note| If this line doesn't work, make sure the "fusion-icon" package is installed and then use this line instead:
+
== Using Compiz as a standalone window manager ==
$ echo "fusion-icon &" > /usr/bin/compiz-fusion
+
Be sure to complete the whole method before trying this substitute.}}
+
  
Ensure that {{ic|/usr/bin/compiz-fusion}} has executable (+x) permissions.
+
=== Starting the session with a display manager ===
$ chmod a+x /usr/bin/compiz-fusion
+
  
Choose one of the following:
+
A standalone Compiz session can be started from a [[display manager]]. For most display manager's - [[LightDM]] for example - all that is required is to create a {{ic|.desktop}} file in {{ic|/usr/share/xsessions}} that executes ''compiz'' (with command line options if needed) or ''fusion-icon''. See the article for your display manager. See [[Desktop entries]] for information on creating a {{ic|.desktop}} file.
  
:1) Compiz for your user only --> Edit the file {{ic|~/.kde4/env/compiz.sh}} and add the following line so KDE will load compiz (via the script you just created) instead of loading KWin.
+
==== Autostarting programs when using a display manager ====
: {{bc|1=KDEWM="compiz-fusion"}}
+
  
:2) Compiz system wide --> Edit the file {{ic|/etc/kde/env/compiz.sh}} and add the following line so KDE will load compiz (via the script you just created) instead of loading KWin.
+
One way in which you could start programs with your Compiz session, when it is started from a [[display manager]], is to use an [[xprofile]] file. Another option is for the {{ic|.desktop}} file in {{ic|/usr/share/xsessions}} to not execute ''compiz'' directly but to execute a script which starts the programs you wish to start and also starts Compiz.
: {{bc|1=KDEWM="compiz-fusion"}}
+
  
{{Note| If that still doesn't work, yet another alternate way to accomplish the above method is to include the line
+
=== Starting the session with startx ===
{{bc|1=export KDEWM="compiz-fusion"}}
+
in your user's {{ic|~/.bashrc}} file.}}
+
{{Note| If you optionally use the {{ic|/usr/local/bin}} directory it may not work. In that case you should export the script including the whole path:
+
{{bc|1=export KDEWM="/usr/local/bin/compiz-fusion"}}}}
+
  
=== GNOME ===
+
A Compiz session can be started with ''startx''. Define either ''compiz'' or ''fusion-icon'' in your {{ic|.xinitrc}} file. See the [[xinitrc]] article for more details.
If you have installed [[GNOME3]] with gnome-shell, either enable forced Fallback Mode (System Info > Graphics) or simply uninstall gnome-shell.
+
{{Note|Fallback Mode is not necessary if you choose the Compiz/Cairo-Dock session method below.}}
+
  
==== Alternate Session for GNOME (Preferred Method for Experienced Compiz/Dock Users) ====
+
=== Add a root menu ===
The {{AUR|gnome-session-compiz}} can be used to add an additional menu entry in the GNOME session login dialog. This method does not require foced fallback mode and/or modifications to sensitive system files/settings. Also, you can switch between GNOME Shell and Compiz/Cairo-Dock between sessions. If you can't get it working, you can always go back to your original GNOME session.
+
  
For this method to work, Compiz and Cairo-Dock (Taskbar/Panel) may have to be [[#Configuration|configured initially]] for fresh accounts, from another working session (ccsm in GNOME Shell worked fine for me).
+
To add a root menu similar to that in [[Openbox]] and other standalone window managers install {{AUR|compiz-boxmenu}}. This program is a fork of {{AUR|compiz-deskmenu}}.
  
This method completely replaces the GNOME's window manager and panel (they are not launched at all, rather than being replaced or killed later). So, before actually switching to this alternate session, you may want to configure corresponding/alternate features of the original panel application in Cairo-Dock:
+
Then copy the config files to your home directory as shown below:
* Add Application Menu icon to Cairo-Dock and remember its key-bindings.
+
* Remap Application Menu key-bindings to ALT+F1 and ALT+F2, for convenience.
+
* Add Clock, WiFi, NetSpeed icons to the dock as applicable.
+
* Add Log-out icon:
+
** Set the command for logout to "gnome-session-quit --logout"
+
** Set the command for shutdown to "gnome-session-quit --power-off"
+
* Add the Notification Area Old (systray) icon to Cairo-Dock.
+
  
==== Autostart (without "fusion-icon") (Preferred Method) ====
+
# cp -R /etc/xdg/compiz /home/''username''/.config
This Method makes use of the [http://standards.freedesktop.org/desktop-entry-spec/latest/ Desktop Entry Specification] to specify a Compiz Desktop Entry and of the GConf default windowmanager setting. Thanks to the Desktop Entry you should be able to select Compiz as a windowmanager out of GDM.
+
# chown -R ''username'':''group'' /home/''username''/.config/compiz
  
'''1)'''If the following file doesn't already exist (it should), create it {{ic|/usr/share/applications/compiz.desktop}} containing the following:
+
where {{ic|username}} is your username and {{ic|group}} is the primary group for your user.
  
[Desktop Entry]
+
Then, open CCSM, navigate to the ''Commands'' plugin and in ''Command line 0'' enter the command {{ic|compiz-boxmenu}}. In the ''Key Bindings'' tab, set ''Run command 0'' to {{ic|Control+Space}} or another key/mouse button combination of choice. Take care not to use a combination that is already used for other functionality.
Type=Application
+
Encoding=UTF-8
+
Name=Compiz
+
Exec=/usr/bin/compiz ccp  #Make sure ccp is included so that Compiz loads your previous settings.
+
NoDisplay=true
+
# name of loadable control center module
+
X-GNOME-WMSettingsModule=compiz
+
# autostart phase
+
##-> the folloing line cause gnome-session warning and slow startup, so try not to enable this
+
# X-GNOME-Autostart-Phase=WindowManager
+
X-GNOME-Provides=windowmanager
+
# name we put on the WM spec check window
+
X-GNOME-WMName=Compiz
+
# back compat only
+
X-GnomeWMSettingsLibrary=compiz
+
  
{{Note| If {{ic|compiz.desktop}} already exists, you must make sure that the "ccp" is included in the Exec variable. Having "ccp" included simply tells Compiz to load your previous settings, otherwise you won't have any functionality.}}
+
Now navigate to the ''Viewport Switcher'' plugin and click on the ''Desktop-based Viewport Switching'' tab. Change the ''Plugin for initiate action'' to {{ic|core}} and change ''Action name for initiate'' to {{ic|run_command0_key}}.
  
If the above doesn't work (in most cases it does), for example if you notice some issues with windows refreshing or low performance, try:
+
You should now find that a menu appears when you click {{ic|Control+Space}}. To launch a graphical menu editor, click on the ''Edit'' option or run {{ic|compiz-boxmenu-editor}} in a terminal. If you would prefer to edit your menu manually, open the following file in your favourite editor: {{ic|~/.config/compiz/boxmenu/menu.xml}}. For your changes to take effect, you must click the ''Reload'' option in your menu.
  
{{bc|1=Exec=/usr/bin/compiz ccp --indirect-rendering}}
+
=== Allow users to shutdown/reboot ===
  
or
+
An unprivileged user should be able to execute commands such as {{ic|systemctl poweroff}} and {{ic|systemctl reboot}}. You could assign a keyboard shortcut to one of these commands using the ''Commands'' plugin in CCSM. Alternatively, you could create a launcher for one of these commands in {{AUR|compiz-boxmenu}} - see above. For more detailed information on shutting down see the following article: [[Allow users to shutdown]].
  
{{bc|1=Exec=/usr/bin/compiz --replace --sm-disable --ignore-desktop-hints ccp --indirect-rendering}}
+
== Tips and tricks ==
  
Instead of
+
=== Restoring the native window manager ===
  
{{bc|1=Exec=/usr/bin/compiz ccp}}
+
You can switch back to your desktop environment's default window manager with the following command:
  
Some Users noticed a "lag" of 4-10 seconds when loging in from a login manager. The solution is to change the command to:
+
''wm_name'' --replace
{{bc|1=Exec=bash -c 'compiz ccp decoration --sm-client-id $DESKTOP_AUTOSTART_ID'}}
+
as noted [https://bbs.archlinux.org/viewtopic.php?pid=655237#p655237 in the forum]. You can also add the extra parameters as described above if needed.
+
  
'''2)''' Set some GConf parameters using the gconftool-2 command in a terminal window or do it visually with Configuration Editor (gconf-editor). The following outlines using the command line method, but you can also see which keys to change using gconf-editor:
+
using ''kwin'', ''metacity'' or ''xfwm4'' for example instead of ''wm_name''.
  
{{Note| Since those parameters apply to a given user, you '''must''' logout from the root account and log in as that other user before proceeding with the next steps. GConf will fail, if called from a root account.}}
+
=== Enabling the Alt+F2 run dialog ===
  
gconftool-2 --set -t string /desktop/gnome/session/required_components/windowmanager compiz
+
;GNOME Panel
  
The following are optional and in most cases not necessary (the respective keys are deprecated since GNOME 2.12). But iny any case, if the above didn't succeed the next two statements are still valid and should be tried.
+
Enable the ''Gnome Compatibility'' plugin in CCSM.
  
gconftool-2 --set -t string /desktop/gnome/applications/window_manager/current /usr/bin/compiz
+
;MATE Panel
gconftool-2 --set -t string /desktop/gnome/applications/window_manager/default /usr/bin/compiz
+
  
==== Autostart (without "fusion-icon") (With gnome3 fallback mode session) ====
+
There are two ways to enable MATE Panel's run dialog in Compiz. You can either:
Edit file {{ic|/usr/share/gnome-session/sessions/gnome-fallback.session}}:
+
  
Replace your windows manager (gnome-shell,metacity...) with ''compiz'' in '''RequiredComponents''' line.
+
* Enable the ''MATE Compatibility'' plugin in CCSM (use the ''Gnome Compatibility'' plugin for older Compiz versions which lack the MATE plugin).
 +
* Map the command below to the {{ic|Alt+F2}} key combination using the ''Commands'' plugin in CCSM.
  
Change ''DefaultProvider-windowmanager'' line to ''DefaultProvider-windowmanager=compiz''
+
mate-panel --run-dialog
  
Here is part of my {{ic|gnome-fallback.session}}:
+
;LXDE Panel
  
{{bc|1=
+
Map the command below to the {{ic|Alt+F2}} key combination using the ''Commands'' plugin in CCSM.
RequiredComponents=compiz;gnome-settings-daemon;
+
RequiredProviders=windowmanager;notifications;
+
DefaultProvider-windowmanager=compiz
+
DefaultProvider-notifications=notification-daemon
+
}}
+
  
{{Note| I took out gnome-panel as I am using avant-window-navigator as my panel.
+
lxpanelctl run
I'am using gnome3 fallback mode with compiz, make gtk-window-decorator start with compiz, and make avant-window-navigator start automatically.}}
+
  
==== Autostart (without "fusion-icon", Gnome prior to 2.24) ====
+
;Xfce Appfinder
This is a way that works if you use GDM (and I'd assume KDM too).
+
  
Make a file called /usr/local/bin/compiz-start-boot with the contents:
+
When Compiz is used in an Xfce session, the run dialog (provided by {{Pkg|xfce4-appfinder}}) should work without intervention. If you are using Xfce Appfinder in a standalone Compiz session, map the command below to the {{ic|Alt+F2}} key combination using the ''Commands'' plugin in CCSM.
#!/bin/bash
+
export WINDOW_MANAGER="compiz ccp"
+
exec gnome-session
+
  
and make it executable ({{ic|chmod +x /usr/local/bin/compiz-start-boot}}). Next create the file {{ic|/etc/X11/sessions/Compiz.desktop}} containing the following:
+
  xfce4-appfinder --collapsed
  [Desktop Entry]
+
Version=1.0
+
Encoding=UTF-8
+
Name=Compiz on GNOME
+
Exec=/usr/local/bin/compiz-start-boot
+
Icon=
+
Type=Application
+
  
Select Compiz on Gnome as your session and you're good to go.
+
;Other run dialogs
  
==== Autostart (with "fusion-icon") ====
+
Map the command for a [[List of applications#Application launchers|run dialog]] of choice to the {{ic|Alt+F2}} key combination using the ''Commands'' plugin in CCSM.
To start Compiz fusion automatically when starting a session go to System > Preferences > Startup Applications. In the Startup Programs tab, click the Add button.
+
  
You will now see the Add Startup Program dialogue. Fill it in as follows.
+
== Troubleshooting ==
  
Name:
+
=== Missing GLX_EXT_texture_from_pixmaps ===
Compiz Fusion
+
Command:
+
fusion-icon
+
Comment:  (Put anything you like or leave blank.)
+
  
{{Note| You can also use "compiz --replace ccp" instead of "fusion-icon" to load compiz but there will be no fusion-icon.
+
==== On ATI cards (first solution) ====
  
The ccp value will tell compiz to load your previous Compiz settings as configured with CompizConfig Settings Manager (ccsm).}}
+
You may run into the following error when trying to run Compiz on an ATI card:
  
When you're done hit the Add button. You should now see your startup program in the list in the Startup Programs tab. It must be checked to be enabled. You can uncheck it to disable Compiz on startup and switch back to Metacity.
+
Missing GLX_EXT_texture_from_pixmap
  
You may also need to use the gconftool-2 command in a terminal window to set the following parameter, otherwise fusion-icon might not load the windows decorator.
+
This is because Compiz's binary was compiled against Mesa's OpenGL library rather than ATI's OpenGL library.
gconftool-2 --type bool --set /apps/metacity/general/compositing_manager false
+
  
{{Note| This method will be slower due to the fact that Gnome will first load the default window manager (Metacity), then will launch fusion-icon which will load the Compiz window manager to replace Metacity. Essentially, it will take the amount of time that it takes to load two window manangers to get Compiz loaded. The first method is preferred and eliminates this issue.}}
+
Firstly, copy the library into a directory to keep it because ATI's drivers will over write it
 +
 +
$ install -Dm644 /usr/lib/libGL.so.1.2 /usr/lib/mesa/libGL.so.1.2
 +
Then you can reinstall your fglrx drivers.  Now start Compiz as shown below:
 +
 +
LD_PRELOAD=/usr/lib/mesa/libGL.so.1.2 compiz --replace &
  
=== Mate Desktop ===
+
==== On ATI cards (second solution) ====
==== Autostart (without "fusion-icon") (Preferred Method) ====
+
As with Gnome, create a compiz.desktop file (see [[Compiz#Autostart_.28without_.22fusion-icon.22.29_.28Preferred_Method.29]]), then set Compiz as the default window manager :
+
* on Mate prior to 1.6, edit the following mateconf entries (note: the last two are deprecated values):
+
mateconftool-2 --set -t string /desktop/mate/session/required_components/windowmanager compiz
+
mateconftool-2 --set -t string /desktop/mate/applications/window_manager/current /usr/bin/compiz
+
mateconftool-2 --set -t string /desktop/mate/applications/window_manager/default /usr/bin/compiz
+
  
* on Mate 1.6 and higher, edit the following gsettings value
+
Another possible problem with ''GLX_EXT_texture_from_pixmap'' on ATI cards is that the card can only render it indirectly. If so, you have to pass the option to your libgl as shown below:
gsettings set org.mate.session.required-components windowmanager compiz
+
  
=== XFCE ===
+
LIBGL_ALWAYS_INDIRECT=1 compiz --replace &
==== Xfce autostart (without "fusion-icon") ====
+
This method will start Compiz directly through the XFCE session manager without loading Xfwm.
+
  
Please note the change to xml config files in XFCE newer than 4.2
+
This workaround was tested on the following card : ATI Technologies Inc Radeon R250 [Mobility FireGL 9000] (rev 02).
  
To install the session manager, install {{Pkg|xfce4-session}}.
+
==== On Intel chips ====
  
Now we have to configure the default/failsafe session of XFCE.
+
Firstly, check that you're using the intel driver as opposed to i810. Then, use the following command to start Compiz (this command must be used every time).
 +
LIBGL_ALWAYS_INDIRECT=true compiz --replace --sm-disable &
  
Edit the {{Ic|~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml}} or (to make the change for all XFCE users) {{Ic|/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml}}:
+
=== Compiz starts without window borders with NVIDIA binary drivers ===
  
Replace the xfwm startup command,
+
Firstly, ensure that your window decorator settings are configured correctly - see [[#Window decoration]]. If window borders still do not start try adding ''Option "AddARGBGLXVisuals" "True"'' and ''Option "DisableGLXRootClipping" "True"'' to your "Screen" section in {{ic|/etc/X11/xorg.conf.d/20-nvidia.conf}}. If window borders still do not load and you have used other Options elsewhere in {{ic|/etc/X11/xorg.conf.d/}} try commenting them out and using only the aformentioned ARGBGLXVisuals and GLXRootClipping Options.
  
  <property name="Client0_Command" type="array">
+
=== Blank screen on resume from suspend-to-ram with NVIDIA binary drivers ===
    <value type="string" value="xfwm4"/>
+
  </property>
+
  
with the following:
+
If you receive a blank screen with a responsive cursor upon resume, try disabling sync to vblank. To do so, open CCSM, navigate to the ''OpenGL'' plugin and untick the ''Sync to VBlank'' option.
  
  <property name="Client0_Command" type="array">
+
=== Poor performance from capable graphics cards ===
    <value type="string" value="compiz"/>
+
    <value type="string" value="ccp"/>
+
  </property>
+
  
{{Note| the ccp value will tell compiz to load your previous Compiz settings as configured with CompizConfig Settings Manager (ccsm).}}
+
'''NVIDIA and Intel chips''': If everything is configured correctly but you still have poor performance with some effects, try disabling ''CCSM > General Options > Display Settings > Detect Refresh Rate'' and instead choose a value manually.
  
To prevent the default session from being overwritten you may also add this:
+
'''NVIDIA chips only''': The inadequate refresh rate with ''Detect Refresh Rate'' may be due to an option called ''DynamicTwinView'' being enabled by default which plays a factor in accurately reporting the maximum refresh rate that your card and display support. You can disable ''DynamicTwinView'' by adding the following line to the "Device" or "Screen" section of your {{ic|/etc/X11/xorg.conf.d/20-nvidia.conf}}, and then restarting your computer:
  
  <property name="general" type="empty">
+
Option "DynamicTwinView" "False"
    ...
+
    ...
+
    <property name="SaveOnExit" type="bool" value="false"/>
+
  </property>
+
  
To remove the existing sessions, run:
+
=== Screen flicks with NVIDIA card ===
$ rm -r ~/.cache/sessions
+
  
==== Xfce autostart (with "fusion-icon") ====
+
To fix this behaviour create the file below:
=====Method 1:=====
+
{{hc|/etc/modprobe.d/nvidia.conf|2=
This will load Xfwm first then replace it with Compiz.
+
options nvidia NVreg_RegistryDwords="PerfLevelSrc=0x2222"
 +
}}
  
Open the XFCE Settings Manager & then Sessions & Startup. Click the Application Autostart tab.
+
=== Video tearing ===
  
Add
+
If you experience video tearing when using Compiz, try enabling the ''Workarounds'' plugin in CCSM. Once enabled, ensure that the following options are enabled in Workarounds: ''Force complete redraw on initial damage'', ''Force full screen redraws (buffer swap) on repaint''.
  (Name:) Compiz Fusion
+
  
  (Command:) fusion-icon
+
If you are using [[Intel graphics]] and the workaround above does not fix the video tearing, see [[Intel graphics#Tear-free video]].
  
{{Note| You can also use "compiz --replace ccp" instead of "fusion-icon" to load compiz but there will be no fusion-icon.
+
Also see, [[#Poor performance from capable graphics cards]].
  
The ccp value will tell compiz to load your previous Compiz settings as configured with CompizConfig Settings Manager (ccsm).}}
+
=== Compiz effects not working (GConf backend) ===
  
{{Note| This method is the least preferred since it loads both window managers. All the other XFCE methods only load Compiz without loading Xfwm.}}
+
If you have installed the GTK Window Decorator, check if the GConf schema was correctly installed:
  
=====Method 2:=====
+
  $ gconftool-2 -R /apps/compiz/plugins | grep plugins
Edit the following file (settings in this file is used in preference)
+
  $ nano ~/.config/xfce4-session/xfce4-session.rc
+
  
Or to make the change for all XFCE users (root access required)
+
Make sure that all plugins are listed. If they are not, try to install the Compiz schema manually (do '''not''' run this command as root):
# nano /etc/xdg/xfce4-session/xfce4-session.rc
+
  
Add the following
+
  $ gconftool-2 --install-schema-file=/usr/share/gconf/schemas/compiz-decorator-gtk.schemas
  [Failsafe Session]
+
Client0_Command=fusion-icon
+
  
Comment out Client0_Command=xfwm4 if it exists.
+
=== Fusion Icon fails to start ===
  
This will cause xfce to load Compiz instead of Xfwm when the user has no existing sessions.
+
If you get an output like this from the command line:
 +
{{hc|$ fusion-icon|
 +
* Detected Session: gnome
 +
* Searching for installed applications...
 +
Traceback (most recent call last):
 +
  File "/usr/bin/fusion-icon", line 57, in <module>
 +
    from FusionIcon.interface import choose_interface
 +
  File "/usr/lib/python2.5/site-packages/FusionIcon/interface.py", line 23, in <module>
 +
    import start
 +
  File "/usr/lib/python2.5/site-packages/FusionIcon/start.py", line 36, in <module>
 +
    config.check()
 +
  File "/usr/lib/python2.5/site-packages/FusionIcon/util.py", line 362, in check
 +
    os.makedirs(self.config_folder)
 +
  File "/usr/lib/python2.5/os.py", line 172, in makedirs
 +
    mkdir(name, mode)
 +
OSError: [Errno 13] Permission denied: '/home/andy/.config/compiz'
 +
}}
  
To prevent the default session from being overwritten you may also add
+
the problem is with the permission on {{ic|~/.config/compiz/}}. To fix it, use:
[General]
+
AutoSave=false
+
SaveOnExit=false
+
  
To remove the existing sessions
+
  # chown -R ''username'' /home/''username''/.config/compiz/
  rm -R ~/.cache/sessions
+
  
=====Method 3:=====
+
=== Alt+F4 keybinding not working (Xfce) ===
Check if this file exists:
+
~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
+
  
If not do:
+
If Compiz replaces Xfwm4 at login, this can cause the {{ic|Alt+F4}} keybinding to become non-functional. To avoid this issue, ensure that only Compiz is started at login - see [[Xfce#Default window manager]].
cp /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
+
  
and edit {{Ic|~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml}}
+
=== Emerald crashes when selecting a theme ===
  
or (to make the changes for all xfce4 users) {{Ic|/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml}}:
+
You may find that Emerald crashes when selecting certain themes (especially themes that use the legacy engine). If this occurs, select another theme in Emerald Theme Manager and then run the command {{ic|emerald --replace}}.
  
Edit Client0_Command that it look like this:
+
=== No system bell when Compiz is running ===
<property name="Client0_Command" type="array">
+
    <value type="string" value="fusion-icon"/>
+
    <value type="string" value="--force-compiz"/>
+
</property>
+
if '''--force-compiz''' dosen't work use '''compiz --replace --sm-disable --ignore-desktop-hints ccp''' instead.
+
  
Add the '''SaveOnExit property''' if missing and set it to '''false''':
+
You may find that the system bell (such as the drip sound played when pressing backspace at the beginning of a line in GNOME or MATE Terminal) will not sound if Compiz is running. See the following [https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/537703 upstream bug report].
<property name="general" type="empty">
+
    <property name="FailsafeSessionName" type="string" value="Failsafe"/>
+
    <property name="SessionName" type="string" value="Default"/>
+
    <property name="SaveOnExit" type="bool" value="false"/>
+
  </property>
+
  
finally remove old xfce4 sessions:
+
[[PulseAudio]] users, as a workaround, can force PulseAudio to handle the system bell, see [[PulseAudio#X11 Bell Events]].
rm -r ~/.cache/sessions
+
  
Now xfce4 will load compiz instead of Xfwm.
+
=== Compiz crashes when enabling the Gnome Compatibility plugin (GSettings backend) ===
  
=== As a Standalone Window Manager ===
+
If you are using the GSettings backend, you may find that Compiz crashes if you try to enable the ''Gnome Compatibility'' plugin. In order to enable this plugin whilst using the GSettings backend you need to open CCSM and navigate to ''Preferences''. Under the header ''Integration'' untick the box labelled ''Enable integration into the desktop environment''. After unticking this option, you should find it possible to enable the ''Gnome Compatibility'' plugin.
The package compiz-core by itself is sufficient to start using compiz-fusion. However ccsm and emerald (or another window-decorator) are additional highly recommended packages. You may install fusion-icon, compiz-fusion-plugins-main, compiz-fusion-plugins-extra or any other package later on at any time.
+
  
To autostart compiz-fusion configure .xinitrc to launch compiz as:
+
=== Windows lose focus when unminimised ===
{{hc|~/.xinitrc|<nowiki>
+
exec compiz ccp
+
</nowiki>}}
+
You can also add other [[Compiz_fusion#Manually_.28without_.22fusion-icon.22.29|command-line options]] to your .xinitrc
+
  
Or if using fusion-icon, configure .xinitrc as
+
You may find that certain windows (such as a [[Chromium]] window) will lose focus when unminimised. See the following [https://bugs.launchpad.net/compiz/+bug/1328779 upstream bug report]. One possible solution is to enable the ''Keep previews of minimized windows'' option, located within the ''Workarounds'' plugin.
{{hc|~/.xinitrc|<nowiki>
+
exec fusion-icon
+
</nowiki>}}
+
  
However chances are you will need additional apps (e.g a panel) for optimal usability. So to autostart such apps simply add them to your .xinitrc as:
+
{{Note|If you use the Chrome/Chromium browser and you enable this workaround, you will need to ensure that the ''Use system title bar and borders'' option within Chrome is enabled. If Chrome's own titlebar is used with the ''Keep previews of minimized windows'' Compiz workaround then when Chrome is minimized, the desktop beneath will become unresponsive.}}
{{hc|~/.xinitrc|<nowiki>
+
tint2 &
+
cairo-dock &
+
exec fusion-icon
+
</nowiki>}}
+
  
{{Note| Add a terminal-emulator to this autostart list while starting for the first time to help [[Compiz_fusion#Configuration|configure]] compiz.}}
+
=== Popout windows are offset when Compiz is running ===
  
An alternative method, utilizing a simple script entitled '''start-fusion.sh''':
+
You may find that popout windows for panels which are placed at the bottom of the screen are offset by a few pixels so that the window appears to float above the panel. This problem is known to affect Xfce and KDE and may affect other desktops as well. Listed below are a number of workarounds that might fix some cases.
{{hc|start-fusion.sh|<nowiki>
+
#!/bin/sh
+
# add more apps here if necessary or start another panel, tray like pypanel, bmpanel, stalonetray
+
xfce4-panel&
+
fusion-icon
+
</nowiki>}}
+
If this script dosn't work for you, or you get issues with '''dbus''' utilize this script:
+
{{hc|start-fusion.sh|<nowiki>
+
#!/bin/sh
+
cd /home/<yourusername>
+
eval `dbus-launch --sh-syntax --exit-with-session`
+
/usr/bin/X :0.0 -br -audit 0 -nolisten tcp vt7 &
+
export DISPLAY=:0.0
+
sleep 1
+
compiz-manager decoration move resize > /tmp/compiz.log 2>&1 &
+
# add more apps here if necessary or start another panel, tray like pypanel, bmpanel, stalonetray
+
xfce4-panel&
+
fusion-icon
+
</nowiki>}}
+
Make it executable
+
  
chmod +x start-fusion.sh
+
* Place the panel at the top of screen instead of the bottom - this should work in most cases.
 +
* Disable the ''Place Windows'' plugin - this works for the Xfce Whisker Menu plugin but may not work elsewhere.
 +
* Use fixed window placement to determine the window's position. This can be set from the ''Place Windows'' plugin. For instance, for the Whisker Menu, specify that the window with the title ''Whisker Menu'' should appear at (-1, -1).
  
And add it to .xinitrc, like this:
+
For more information, see the following [https://bugs.launchpad.net/compiz/+bug/1419346 upstream bug report].
{{hc|~/.xinitrc|<nowiki>
+
exec /path/to/file/start-fusion.sh
+
</nowiki>}}
+
  
Feel free to use a different panel, tray, or start a whole bunch of applications with your session.
+
=== Alt-Tab switcher has no background (Emerald) ===
See [https://bbs.archlinux.org/viewtopic.php?id=51282 this forum thread] for more info.
+
  
{{Note | Using a separate script instead of running everything from xinitrc is the only way to let all launching applications use ConsoleKit: see [[ConsoleKit#Running_several_applications_from_.7E.2F.xinitrc|this article]].}}
+
You may find that the {{ic|Alt-Tab}} switcher (provided by the staticswitcher or switcher plugins) has a completely transparent background when using Emerald as well. This can make it hard to differentiate window thumbnails from the desktop background behind them. As of Compiz 0.9.12 ([http://bazaar.launchpad.net/~compiz-team/compiz/0.9.12/revision/3975 revision 3975]) a workaround is available. In CCSM, navigate to ''Application Switcher'' or ''Static Application Switcher'' depending on which plugin you are using. For the former, the ''Background'' settings are located under ''General'' and for the latter the settings are located under ''Appearance''. Once you have found the settings, ensure that the ''Set background color'' box is ticked. The default is a dark grey which can be optionally changed.
  
==== Add a root menu ====
+
Alternatively, use GTK Window Decorator instead of Emerald or use a different window switcher altogether such as the shift switcher. Note that even if you are using the GTK Window Decorator, you can still change the background color as described above.
To add a root menu similar to that in Openbox, Fluxbox, Blackbox etc. you must install the package {{AUR|compiz-deskmenu}}.
+
Upon a restart of Compiz-Fusion, you should be able to middle click on your desktop to launch the menu.
+
  
If it does not automatically work, enter the CompizConfig Settings Manager, and in Commands tab, within the General Settings menu, ensure that there is a command to launch Compiz-Deskmenu, and the appropriate key binding is set to Control+Space.
+
== Known issues ==
  
If it still does not work, enter the Viewport Switcher menu, and change "Plugin for initiate action" to core (NOTE: for versions 0.8.2+ it's 'commands' instead of 'core'), and "Action name for initiate" to run_command0_key.
+
=== Plugins in Compiz 0.8 are not present in Compiz 0.9 ===
  
An alternative is to use [https://aur.archlinux.org/packages.php?ID=29564 mygtkmenu], also in [[AUR]].
+
Many plugins that were popular in Compiz 0.8 (such as the Animations Add-On plugin) were disabled in Compiz versions 0.9.8 and above in order to complete [[Wikipedia:OpenGL ES|OpenGL ES]] support. Disabled plugins that receive patches for this issue may well be re-enabled in future releases. For more information, see the [https://launchpad.net/compiz/0.9.8/0.9.8.0 Compiz 0.9.8 release notes].
  
==== Allow users to shutdown/reboot ====
+
Likewise, Compiz Plugins Unsupported (a package which includes plugins such as ''Atlantis'') is unavailable in recent versions of Compiz 0.9. It has not been developed for the Compiz 0.9 series since Compiz 0.9.5 and no longer builds successfully.
Refer to [[Allow_Users_to_Shutdown|this]] wiki page. If using "The Modern way" of policykit You can add the command to ccsm->General->Commands and assign a short-cut key to it or alternatively you can use a launcher application.
+
  
== Misc ==
+
=== Xfce panel window buttons are not refreshed when a window changes viewport ===
  
=== Configuration  ===
+
You may find that if you right click on a window title and choose an option such as ''Move to Workspace Right'' then the window will move but the window button will still be visible in the viewport the window moved from until you switch viewports. This issue can be fixed by replacing {{Pkg|xfce4-panel}} with {{AUR|xfce4-panel-compiz}} which incorporates a patch for this issue. See the following [https://bugzilla.xfce.org/show_bug.cgi?id=10908 upstream bug report] for more information.
[[Compiz#Configuration|You must do this so your windows function like you expect them to!]]
+
  
=== Using compiz-manager ===
+
=== Compiz crashes when enabling the D-Bus plugin ===
  
In order to use compiz-manager, you need to install it from community:
+
The ''D-Bus'' plugin will cause Compiz to crash if enabled in conjunction with certain other plugins such as the ''Cube'' plugin. See the following [https://bugs.launchpad.net/compiz/+bug/959395 upstream bug report].
pacman -S compiz-manager
+
  
Compiz-manager, that is now installed in {{ic|/usr/bin/compiz-manager}}, is a simple wrapper for Compiz and ALL of its options. For example, you can run
+
=== Workspace pager and window buttons issues ===
compiz-manager
+
and see what the console returns for more info. You can use it in all the scripts that start Compiz. Very simple!
+
  
=== Using gtk-window-decorator ===
+
Only a few [[List of applications#Taskbars / panels / docks|panels and docks]] are compatible with Compiz's [[Compiz configuration#Workspaces and Viewports|viewports]]. Incompatible panels and docks may display issues such as showing all window buttons in all workspaces or the workspace pager may only show one workspace available. The panels listed below are known to be compatible:
  
In order to use gtk-window-decorator, install the package ''compiz-decorator-gtk'' and select "GTK Window Decorator" instead of "Emerald" as your window decorator in fusion-icon or whatever other program you are using to configure compiz.
+
*{{Pkg|xfce4-panel}}
 +
*{{Pkg|mate-panel}}
 +
*{{Pkg|perlpanel}}
 +
*{{Pkg|gnome-panel}}
 +
*{{Pkg|cairo-dock}}
  
=== gconf: Additional Compiz Configurations ===
+
=== Xfce workspace switcher has wrong aspect ratio ===
  
To achieve more satisfying results from Compiz, you can tweak its config with gconf-editor:
+
When Compiz is used with Xfce Panel 4.11 and above, the workspace pager will use the width of only one workspace but will divide this space into ever smaller bars, according to how many viewports Compiz will specify. This issue can be fixed by replacing {{Pkg|xfce4-panel}} with {{AUR|xfce4-panel-compiz}} which incorporates a patch for this issue. For more information, see the following [https://bugzilla.xfce.org/show_bug.cgi?id=11697 upstream bug report].
  
$ gconf-editor
+
== See also ==
  
Note that now compiz-core isn't built with gconf support; It is now built with gconf support through compiz-decorator-gtk. So, you need to install it if you want to use gconf-editor to edit your Compiz configuration.
+
* [https://launchpad.net/compiz Compiz in Launchpad]
The Compiz gconf configuration is located in in the key <b>apps</b> > <b>compiz</b> > <b>general</b> > <b>allscreens</b> > <b>options</b>.
+
* [http://compiz.org Compiz Home], including wiki and forum (website and wiki are unmaintained)
 
+
* [http://wiki.compiz.org/Troubleshooting Troubleshooting - Compiz Wiki], (wiki is unmaintained)
"Active plugins" is where you specify the plugins you would like to use. Simply edit the key and add a value(refer to the key <b>apps</b> > <b>compiz</b> > <b>plugins</b> to see possible values). Plugins I’ve found useful are screenshot, png, fade, and minimize. Please do not remove those enabled by default.
+
 
+
=== ATI R600/R700 Notes ===
+
While using fusion-icon you shouldn't experience any problems because it takes care of everything for you, but if you are using one of the autostart methods that do not involve fusion-icon you will run into trouble.  For example when using the Xfce autostart method without fusion icon you must edit ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml per the instructions above.  However, if you follow the directions above explicity you will find that compiz does not load.  You must instead make your xfce4-session.xml file look like this
+
 
+
<property name="Client0_Command" type="array">
+
  <value type="string" value="LIBGL_ALWAYS_INDIRECT=1"/>
+
  <value type="string" value="compiz"/>
+
  <value type="string" value="--sm-disable"/>
+
  <value type="string" value="--ignore-desktop-hints"/>
+
  <value type="string" value="ccp"/>
+
  <value type="string" value="--indirect-rendering"/>
+
</property>
+
 
+
This example targeted Xfce specifically, but it can be adapted to any desktop environment.  It's just a matter of figuring out how to add it to the proper config file.  The key thing is the required command which if typed on a command line would look like this
+
 
+
LIBGL_ALWAYS_INDIRECT=1 compiz --sm-disable --ignore-desktop-hints ccp --indirect-rendering
+
 
+
This is how Xfce's session manager interprets the above XML code.  Notice that you do not need --replace because you are not first loading xfwm and then compiz.
+
 
+
== Tips and tricks ==
+
=== Fallback ===
+
If you are using [[KDE]], [[GNOME]] or [[XFCE]] and something is not right, for example you don’t see borders for your window, you can switch back to default DE window manager with this command:
+
 
+
''wm_name'' --replace
+
 
+
with kwin, metacity or xfwm4 instead of ''wm_name''.
+
 
+
=== Keyboard Shortcuts ===
+
Default plugin keyboard shortcuts (plugins have to be activated!)
+
 
+
* Switch windows = {{Keypress|Alt + Tab}}
+
* Switch desktops on cube = {{Keypress|Ctrl + Alt + Left/Right Arrow}}
+
* Move window = {{Keypress|Alt + left-click}}
+
* Resize window = {{Keypress|Alt + right-click}}
+
 
+
A more detailed list can be found under [http://wiki.compiz-fusion.org/CommonKeyboardShortcuts CommonKeyboardShortcuts] in the Compiz wiki or you can always just look at your plugin's configuration (ccsm).
+
 
+
== Troubleshooting ==
+
{{Out of date}}
+
 
+
=== Missing GLX_EXT_texture_from_pixmaps ===
+
==== On ATI cards (first solution) ====
+
https://bbs.archlinux.org/viewtopic.php?id=50073
+
If you run into the following error when trying to run Compiz Fusion on an ATI card:
+
 
+
Missing GLX_EXT_texture_from_pixmap
+
 
+
This is because Compiz Fusion's binary was compiled against Mesa's OpenGL library rather than ATI's OpenGL library (which is what you are using). Re-install libgl-dri (yes you will have to uninstall fglrx temporarily) to get Mesa's OpenGL library.
+
 
+
copy the library into a directory to keep it because ATI's drivers will over write it. 
+
+
mkdir /lib/mesa
+
cp /usr/lib/libGL.so.1.2 /lib/mesa
+
 
+
Once you have it copied, you can reinstall your fglrx drivers (It should have been removed when you installed libgl-dri).  Now you can start Compiz Fusion using the following example syntax:
+
+
LD_PRELOAD=/lib/mesa/libGL.so.1.2 compiz --replace &
+
 
+
==== On ATI cards (second solution) ====
+
An other problem could arise with GLX_EXT_texture_from_pixmap, it is possible that the card could only render it indirectly, then you have to pass the option to your libgl like that :
+
 
+
  LIBGL_ALWAYS_INDIRECT=1 compiz --replace ccp &
+
 
+
(Workaround tested on the following card : ATI Technologies Inc Radeon R250 [Mobility FireGL 9000] (rev 02))
+
 
+
==== On Intel chips ====
+
First off, check that you're using the intel driver as opposed to i810. Then, run the following command to run compiz (must use this every time.).
+
LIBGL_ALWAYS_INDIRECT=true compiz --replace --sm-disable ccp &
+
If you then do not have borders, run
+
emerald --replace
+
As at 17-Oct-07 the [http://wiki.compiz-fusion.org/Troubleshooting Compiz-Fusion Wiki] states: <i>"If you are using an Intel GMA card with AIGLX, you will need to start Compiz Fusion with LIBGL_ALWAYS_INDIRECT=1 appended.</i>"
+
 
+
=== Compiz starts, but no effects are visible ===
+
If you have installed compiz-decorator-gtk:
+
Check if GConf schema was correctly installed:
+
  gconftool-2 -R /apps/compiz/plugins | grep plugins
+
make sure that all plugins are listed (not only fade!). If not, try to install compiz schema manually (do this as normal user, not as root!!!):
+
  gconftool-2 --install-schema-file=/usr/share/gconf/schemas/compiz-decorator-gtk.schemas
+
 
+
Note: Compiz basic plugins are not enabled by default. You should enable "Move Window", "Resize Window", and "Window decoration" plugins in settings manager from fusion-icon to have a usable window manager.
+
 
+
=== Compiz starts, but gtk-window-decorator does not ===
+
It is a configuration problem for gconf and gconfd. I solved it by removing ".gconf" dir in my home, but I'm using KDE. If you are using Gnome you should enter your ".gconf" directory and remove all compiz keys. This will erase your compiz settings, so be sure to reconfigure.
+
Finally exec as user:
+
 
+
  gconftool-2 --install-schema-file=/usr/share/gconf/schemas/compiz-decorator-gtk.schemas
+
 
+
=== Compiz appears to start, but there are no window borders ===
+
When you run fusion-icon from commandline, you get output like this:
+
 
+
* Detected Session: gnome
+
* Searching for installed applications...
+
* NVIDIA on Xorg detected, exporting: __GL_YIELD=NOTHING
+
* Using the GTK Interface
+
* Metacity is already running
+
* Setting window manager to Compiz
+
... executing: compiz --replace --sm-disable --ignore-desktop-hints ccp
+
compiz (core) - Warn: No GLXFBConfig for depth 32
+
compiz (core) - Warn: No GLXFBConfig for depth 32
+
compiz (core) - Warn: No GLXFBConfig for depth 32
+
compiz (core) - Warn: No GLXFBConfig for depth 32
+
compiz (core) - Warn: No GLXFBConfig for depth 32
+
compiz (core) - Warn: No GLXFBConfig for depth 32
+
 
+
All you need to do is edit your {{Ic|/etc/X11/xorg.conf}} and find the "Depth" directive inside the "Screen" section; change all occurences of this value to 24. This occured to me with my colour depth set to 16; but also happens when it is set to 32.
+
 
+
----
+
 
+
You may also try adding ''Option "AddARGBGLXVisuals" "True"'' & ''Option "DisableGLXRootClipping" "True"'' to your "Screen" section if you are using the Nvidia binary driver. (Radeon, and the open 'nv' driver will not work with this option as far as I can tell.) If you used any other Options elsewhere in {{Ic|xorg.conf}} to get compiz working and still have no luck, try commenting them out and using only the aformentioned ARGBGLXVisuals and GLXRootClipping Options.
+
 
+
'''Note''': Check that "Window decoration", "Move" and "Resize" plugins are enabled with Compiz Settings Manager or gconf-editor.
+
 
+
With gconf-editor you can easly enable "Window decoration", "Move" and "Resize" plugins.
+
 
+
  $ gconf-editor
+
 
+
Navigate to apps/compiz/general/allscreens/options
+
 
+
Add/Edit "active_plugins" Key (Name: active_plugins, Type: List, List type: String).
+
 
+
Add "decoration", "move", and "resize" to the list.
+
 
+
----
+
 
+
'''Another way to fix this''':
+
* Launch '''ccsm'''.
+
* Find '''windows decoration''' and make sure it is enabled.
+
* Now click on it, to edit the options.
+
* If the entry behind '''command''' is empty, put the value '''gtk-window-decorator''' there.
+
** Alternatives are '''kde-window-decorator''' and '''emerald'''
+
* Click '''Back''' and '''Close'''
+
* If all went well, the borders should appear.
+
 
+
=== Compiz starts and borders appear, but windows won't move ===
+
Be sure you have the "Move Window" plugin installed and enabled in the compiz settings manager.
+
 
+
=== Blank screen on resume from suspend-to-ram using the Nvidia binary drivers ===
+
If you receive a blank screen with a responsive cursor upon resume, try disabling sync to vblank:
+
 
+
gconftool -s /apps/compiz/general/screen0/options/sync_to_vblank-t boolean false
+
 
+
=== fusion-icon doesn't start ===
+
If you get an output like this from the command line:
+
[andy@andylaptop ~]$ fusion-icon
+
  * Detected Session: gnome
+
  * Searching for installed applications...
+
Traceback (most recent call last):
+
  File "/usr/bin/fusion-icon", line 57, in <module>
+
    from FusionIcon.interface import choose_interface
+
  File "/usr/lib/python2.5/site-packages/FusionIcon/interface.py", line 23, in <module>
+
    import start
+
  File "/usr/lib/python2.5/site-packages/FusionIcon/start.py", line 36, in <module>
+
    config.check()
+
  File "/usr/lib/python2.5/site-packages/FusionIcon/util.py", line 362, in check
+
    os.makedirs(self.config_folder)
+
  File "/usr/lib/python2.5/os.py", line 172, in makedirs
+
    mkdir(name, mode)
+
OSError: [Errno 13] Permission denied: '/home/andy/.config/compiz'
+
 
+
the problem is with the permission on {{Ic|~/.config/compiz}}. You have set the owner of a folder in your area as root. To change this, run (as root)
+
chown <username> /home/<username>/.config/compiz
+
 
+
=== Choppy animations, even though everything configured correctly ===
+
If everything is configured correctly but you still have poor performance on some effects, try disabling CCSM->General Options->Display Settings->"Detect Refresh Rate" and instead choose a value manually. Tested on both nvidia and intel chips. Can work wonders.
+
 
+
Alternatively, if your chip is nvidia and you are experiencing an inadequate refresh rate with "Detect Refresh Rate" enabled in Compiz, it's likely due to an option called DynamicTwinView being enabled by default which plays a factor in accurately reporting the maximum refresh rate that your card and display support. You can disable DynamicTwinView by adding the following line to the "Device" or "Screen" section of your xorg.conf file, and then restarting your computer:
+
 
+
Option "DynamicTwinView" "False"
+
 
+
Doing so will allow XrandR to accurately report the refresh rate to anything that detects it, including Compiz. You should be able to leave "Detect Refresh Rate" enabled and get excellent performance. Once again, this only applies to nvidia chips.
+
 
+
=== Fix Gnome Screenshot ===
+
To re-enable gnome-screenshot (the default behavior caused by hitting {{Keypress|PrtScn}}) simply go to Settings Manager>Commands and map 'gnome-screenshot' to the 'PrtScn' key.  This is advantageous because you can also use the Compiz-Fusion 'Screenshot' plugin at the same time since the action that enables it is <Super>Button1 thereby giving you two methods to do a screen capture (one of which gives a full screen capture in a single keystroke).
+
 
+
=== Get GNOME Workspace Switcher work with Compiz-Fusion ===
+
In older versions of Compiz, the Gnome Workspace Switcher applet would actually work with Compiz-Fusion (i.e. rotate cube/move plane etc.), but recent versions seem not to. This is due to a new feature introduced in Compiz, which allows real seperate workspaces. For example, if you have a desktop plane with four planes, and have four desktops enabled in Gnome, it sums up to a total of 16 different workspaces. Currently, there is no animation associated with "real" workspace changing. To get the Workspace Switcher work, do the following:
+
 
+
In GConf, set the following options:
+
 
+
/apps/compiz/general/screen0/options/number_of_desktops = '''1'''
+
/apps/compiz/general/screen0/options/hsize = 4 (this is an example)
+
/apps/compiz/general/screen0/options/vsize = 1 (this is an example)
+
 
+
=== Screen flicks with NVIDIA card ===
+
For fixing it, create /etc/modprobe.d/nvidia.conf file and add line:
+
options nvidia NVreg_RegistryDwords="PerfLevelSrc=0x2222"
+
 
+
=== Fix Custom Cursor Theme on Gnome 2.30 ===
+
Create or edit /usr/share/icons/default/index.theme for default, or per user '''(non-root)''' ~/.icons/default/index.theme, and add this lines:
+
 
+
[Icon Theme]
+
#Name=''foo''
+
Name=''foo''
+
#Inherits=''foo''
+
Inherits=''foo''
+
[Desktop Entry]
+
Name[en_US]=index.theme
+
 
+
"Foo" is the name of the cursor theme.
+
 
+
=== Screen artifacts on Firefox / Thunderbird ===
+
{{Note|Altough this issue is not strictly related to Compiz, it has been added here due to popular misconception that Compiz itself may be the cause.}}
+
 
+
Some users noticed a strange behavior with AMD/ATI Catalyst drivers starting from 10.6 release. Artifacts are visible mainly with Mozilla applications, where the GUI shows black spots of variable size. This is caused by different 2D acceleration tecnique introduced with Catalyst 10.6.
+
The problem can be fixed following the troubleshooting steps in the [[ATI_Catalyst#Black.2Fgrey.2Fwhite_boxes.2Fartifacts_mainly_in_firefox.2Fthunderbird|ATI Catalyst page]]
+
 
+
=== Setting the window manager back to Metacity after uninstall ===
+
Removing compiz with pacman does not set your window manager back to metacity. This can result in no window borders being drawn, an inability to minimize, and an inability to change the focus. To change it back, run the command "gconf-editor" in the terminal (install it if you do not have it already). Use this to set the value of the key {{Ic|/desktop/gnome/session/required_components/window_manager}} from "compiz" to "metacity". Log out and back in for this change to take effect.
+
 
+
=== Context menu in applications (firefox, ...?) disappears on mouseover ===
+
Try disabling "focus stealing prevention" (general options).
+
 
+
=== External notes ===
+
[http://wiki.compiz.org/Troubleshooting Troubleshooting page] on compiz.org
+
 
+
== See also ==
+
*[http://compiz.org Compiz Website] -- including wiki and forum
+

Latest revision as of 14:47, 11 June 2016

According to Wikipedia:

Compiz is a compositing window manager for the X Window System, using 3D graphics hardware to create fast compositing desktop effects for window management. Effects, such as a minimization animation or a cube workspace, are implemented as loadable plugins.

Contents

Installation

As of May 2013, Compiz is no longer available in the official repositories. Packages for installing both the 0.9 and 0.8 series are available in the AUR. The two series are not parallel installable.

Installing the 0.9 series

Note:
  • From Compiz 0.9.8 onwards, all Compiz components are developed and distributed as a single project. This means that a single package can provide all of the Compiz components.
  • To have emerald-themes with emerald0.9, first install emerald0.9AUR and then install emerald-themesAUR. Doing the opposite will resolve the wrong dependencies and cause conflicts.

Required:

  • Compiz — OpenGL compositing window manager with CCSM, Plugins and GTK Window Decorator.
https://launchpad.net/compiz || compizAUR

Optional:

  • Emerald — A standalone window decorator for Compiz.
http://www.compiz.org/ || emerald0.9AUR
  • Emerald Themes — Extra themes for the Emerald window decorator.
http://www.northfield.ws/projects/compiz/ || emerald-themesAUR
  • Fusion Icon — A tray applet for starting Compiz and switching window managers and decorators on the fly.
https://github.com/kozec/fusion-icon-gtk3 || fusion-icon0.9AUR

Installing the 0.8 series

Note: The compiz-coreAUR package does not provide the GTK Window Decorator by default. Users of this package should use emeraldAUR for #Window decoration. Alternatively, use compiz-gtkAUR for a Compiz Core package that also provides GTK Window Decorator.

Required:

  • Compiz Core — OpenGL compositing window manager.
http://www.northfield.ws/projects/compiz/ || compiz-coreAUR, compiz-gtkAUR

Highly recommended:

  • CompizConfig Settings Manager — Graphical settings manager for Compiz.
http://www.northfield.ws/projects/compiz/ || ccsmAUR
  • Compiz Fusion Plugins Main — Main plugins collection for Compiz.
http://www.northfield.ws/projects/compiz/ || compiz-fusion-plugins-mainAUR
  • Compiz Fusion Plugins Extra — Extra plugins collection for Compiz.
http://www.northfield.ws/projects/compiz/ || compiz-fusion-plugins-extraAUR

Optional:

  • Compiz Fusion Plugins Experimental — Experimental Compiz plugins.
http://www.northfield.ws/projects/compiz/ || compiz-fusion-plugins-experimentalAUR
  • Emerald — A standalone window decorator for Compiz.
http://www.northfield.ws/projects/compiz/ || emeraldAUR
  • Emerald Themes — Extra themes for the Emerald window decorator.
http://www.northfield.ws/projects/compiz/ || emerald-themesAUR
  • Fusion Icon — A tray applet for starting Compiz and switching window managers and decorators on the fly.
http://www.compiz.org/ || fusion-iconAUR

Starting Compiz

Enabling important plugins

Tip: Depending on which package you installed Compiz from, some of these plugins may already be activated.

Before starting Compiz, you should activate some plugins to provide basic window manager behaviour or else you will have no ability to drag, scale or close any windows. Important plugins are listed below:

  • Window Decoration - provides window borders, see #Window decoration.
  • Move Window.
  • Resize Window.
  • Place Windows - configure window placement options.
  • Application Switcher - provides an Alt+Tab switcher - there are numerous alternative application switcher plugins, for example: Shift Switcher, Static Application Switcher and more. Not all of them use the Alt+Tab keybinding.

To be able to switch to different viewports you will need to enable one of the following:

  • Desktop Cube & Rotate Cube - provides the spinning cube with each side being a different viewport.
  • Desktop Wall - viewports are arranged next to each other - the animation is similar to the workspace switching animation in Cinnamon and GNOME Shell.
  • Expo - creates a view of all viewports and windows when the mouse is moved into the top left corner - this plugin can be used on its own or in conjunction with either of the two previous plugins.

Window decoration

Tip: For information on selecting and managing themes, see: Compiz configuration#Window decoration themes.

The window decorator is the program which provides windows with borders. Unlike window managers such as Kwin or Xfwm which provide just one decorator, users of Compiz have a choice of three: GTK Window Decorator, KDE Window Decorator and Emerald. The GTK Window Decorator and the KDE Window Decorator are included in the Compiz source and can be optionally compiled whilst building Compiz. Emerald, on the other hand, is a separate, standalone decorator. The Window Decoration plugin in CCSM must be ticked otherwise no window decorator will be started.

Choosing the decorator

The window decorator that will be started is specified under CCSM -> Effects -> Window Decoration -> Command. The command can be one of the following executables: emerald, gtk-window-decorator, kde4-window-decorator. Use the --replace switch, e.g. emerald --replace, if specifying the decorator executable on its own is not sufficient.

Tip: In Compiz 0.9, the decorator command is set to compiz-decorator by default. This is a script which will search for the emerald, gtk-window-decorator and kde4-window-decorator executables in that order and start the first one that it finds.

Compiz startup

Note: Some Compiz versions may require you to manually load the CCP plugin on startup: compiz --replace ccp [1]

You can start Compiz using the following command:

$ compiz --replace

See compiz --help for more options.

Fusion Icon

Tip: When #Autostarting Compiz in a desktop environment fusion-icon can be set as the default command instead of compiz.

To start Compiz using Fusion Icon, execute the command below:

$ fusion-icon

To ensure that fusion-icon then starts Compiz, right click on the icon in the panel and go to select window manager. Choose Compiz if it is not selected already.

Autostarting Compiz in a desktop environment

See Desktop environment#Custom window manager.

Using Compiz as a standalone window manager

Starting the session with a display manager

A standalone Compiz session can be started from a display manager. For most display manager's - LightDM for example - all that is required is to create a .desktop file in /usr/share/xsessions that executes compiz (with command line options if needed) or fusion-icon. See the article for your display manager. See Desktop entries for information on creating a .desktop file.

Autostarting programs when using a display manager

One way in which you could start programs with your Compiz session, when it is started from a display manager, is to use an xprofile file. Another option is for the .desktop file in /usr/share/xsessions to not execute compiz directly but to execute a script which starts the programs you wish to start and also starts Compiz.

Starting the session with startx

A Compiz session can be started with startx. Define either compiz or fusion-icon in your .xinitrc file. See the xinitrc article for more details.

Add a root menu

To add a root menu similar to that in Openbox and other standalone window managers install compiz-boxmenuAUR. This program is a fork of compiz-deskmenuAUR.

Then copy the config files to your home directory as shown below:

# cp -R /etc/xdg/compiz /home/username/.config
# chown -R username:group /home/username/.config/compiz

where username is your username and group is the primary group for your user.

Then, open CCSM, navigate to the Commands plugin and in Command line 0 enter the command compiz-boxmenu. In the Key Bindings tab, set Run command 0 to Control+Space or another key/mouse button combination of choice. Take care not to use a combination that is already used for other functionality.

Now navigate to the Viewport Switcher plugin and click on the Desktop-based Viewport Switching tab. Change the Plugin for initiate action to core and change Action name for initiate to run_command0_key.

You should now find that a menu appears when you click Control+Space. To launch a graphical menu editor, click on the Edit option or run compiz-boxmenu-editor in a terminal. If you would prefer to edit your menu manually, open the following file in your favourite editor: ~/.config/compiz/boxmenu/menu.xml. For your changes to take effect, you must click the Reload option in your menu.

Allow users to shutdown/reboot

An unprivileged user should be able to execute commands such as systemctl poweroff and systemctl reboot. You could assign a keyboard shortcut to one of these commands using the Commands plugin in CCSM. Alternatively, you could create a launcher for one of these commands in compiz-boxmenuAUR - see above. For more detailed information on shutting down see the following article: Allow users to shutdown.

Tips and tricks

Restoring the native window manager

You can switch back to your desktop environment's default window manager with the following command:

wm_name --replace

using kwin, metacity or xfwm4 for example instead of wm_name.

Enabling the Alt+F2 run dialog

GNOME Panel

Enable the Gnome Compatibility plugin in CCSM.

MATE Panel

There are two ways to enable MATE Panel's run dialog in Compiz. You can either:

  • Enable the MATE Compatibility plugin in CCSM (use the Gnome Compatibility plugin for older Compiz versions which lack the MATE plugin).
  • Map the command below to the Alt+F2 key combination using the Commands plugin in CCSM.
mate-panel --run-dialog
LXDE Panel

Map the command below to the Alt+F2 key combination using the Commands plugin in CCSM.

lxpanelctl run
Xfce Appfinder

When Compiz is used in an Xfce session, the run dialog (provided by xfce4-appfinder) should work without intervention. If you are using Xfce Appfinder in a standalone Compiz session, map the command below to the Alt+F2 key combination using the Commands plugin in CCSM.

xfce4-appfinder --collapsed
Other run dialogs

Map the command for a run dialog of choice to the Alt+F2 key combination using the Commands plugin in CCSM.

Troubleshooting

Missing GLX_EXT_texture_from_pixmaps

On ATI cards (first solution)

You may run into the following error when trying to run Compiz on an ATI card:

Missing GLX_EXT_texture_from_pixmap

This is because Compiz's binary was compiled against Mesa's OpenGL library rather than ATI's OpenGL library.

Firstly, copy the library into a directory to keep it because ATI's drivers will over write it:

$ install -Dm644 /usr/lib/libGL.so.1.2 /usr/lib/mesa/libGL.so.1.2

Then you can reinstall your fglrx drivers. Now start Compiz as shown below:

LD_PRELOAD=/usr/lib/mesa/libGL.so.1.2 compiz --replace &

On ATI cards (second solution)

Another possible problem with GLX_EXT_texture_from_pixmap on ATI cards is that the card can only render it indirectly. If so, you have to pass the option to your libgl as shown below:

LIBGL_ALWAYS_INDIRECT=1 compiz --replace &

This workaround was tested on the following card : ATI Technologies Inc Radeon R250 [Mobility FireGL 9000] (rev 02).

On Intel chips

Firstly, check that you're using the intel driver as opposed to i810. Then, use the following command to start Compiz (this command must be used every time).

LIBGL_ALWAYS_INDIRECT=true compiz --replace --sm-disable &

Compiz starts without window borders with NVIDIA binary drivers

Firstly, ensure that your window decorator settings are configured correctly - see #Window decoration. If window borders still do not start try adding Option "AddARGBGLXVisuals" "True" and Option "DisableGLXRootClipping" "True" to your "Screen" section in /etc/X11/xorg.conf.d/20-nvidia.conf. If window borders still do not load and you have used other Options elsewhere in /etc/X11/xorg.conf.d/ try commenting them out and using only the aformentioned ARGBGLXVisuals and GLXRootClipping Options.

Blank screen on resume from suspend-to-ram with NVIDIA binary drivers

If you receive a blank screen with a responsive cursor upon resume, try disabling sync to vblank. To do so, open CCSM, navigate to the OpenGL plugin and untick the Sync to VBlank option.

Poor performance from capable graphics cards

NVIDIA and Intel chips: If everything is configured correctly but you still have poor performance with some effects, try disabling CCSM > General Options > Display Settings > Detect Refresh Rate and instead choose a value manually.

NVIDIA chips only: The inadequate refresh rate with Detect Refresh Rate may be due to an option called DynamicTwinView being enabled by default which plays a factor in accurately reporting the maximum refresh rate that your card and display support. You can disable DynamicTwinView by adding the following line to the "Device" or "Screen" section of your /etc/X11/xorg.conf.d/20-nvidia.conf, and then restarting your computer:

Option "DynamicTwinView" "False"

Screen flicks with NVIDIA card

To fix this behaviour create the file below:

/etc/modprobe.d/nvidia.conf
options nvidia NVreg_RegistryDwords="PerfLevelSrc=0x2222"

Video tearing

If you experience video tearing when using Compiz, try enabling the Workarounds plugin in CCSM. Once enabled, ensure that the following options are enabled in Workarounds: Force complete redraw on initial damage, Force full screen redraws (buffer swap) on repaint.

If you are using Intel graphics and the workaround above does not fix the video tearing, see Intel graphics#Tear-free video.

Also see, #Poor performance from capable graphics cards.

Compiz effects not working (GConf backend)

If you have installed the GTK Window Decorator, check if the GConf schema was correctly installed:

$ gconftool-2 -R /apps/compiz/plugins | grep plugins

Make sure that all plugins are listed. If they are not, try to install the Compiz schema manually (do not run this command as root):

$ gconftool-2 --install-schema-file=/usr/share/gconf/schemas/compiz-decorator-gtk.schemas

Fusion Icon fails to start

If you get an output like this from the command line:

$ fusion-icon
* Detected Session: gnome
* Searching for installed applications...
Traceback (most recent call last):
  File "/usr/bin/fusion-icon", line 57, in <module>
    from FusionIcon.interface import choose_interface
  File "/usr/lib/python2.5/site-packages/FusionIcon/interface.py", line 23, in <module>
    import start
  File "/usr/lib/python2.5/site-packages/FusionIcon/start.py", line 36, in <module>
    config.check()
  File "/usr/lib/python2.5/site-packages/FusionIcon/util.py", line 362, in check
    os.makedirs(self.config_folder)
  File "/usr/lib/python2.5/os.py", line 172, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/home/andy/.config/compiz'

the problem is with the permission on ~/.config/compiz/. To fix it, use:

# chown -R username /home/username/.config/compiz/

Alt+F4 keybinding not working (Xfce)

If Compiz replaces Xfwm4 at login, this can cause the Alt+F4 keybinding to become non-functional. To avoid this issue, ensure that only Compiz is started at login - see Xfce#Default window manager.

Emerald crashes when selecting a theme

You may find that Emerald crashes when selecting certain themes (especially themes that use the legacy engine). If this occurs, select another theme in Emerald Theme Manager and then run the command emerald --replace.

No system bell when Compiz is running

You may find that the system bell (such as the drip sound played when pressing backspace at the beginning of a line in GNOME or MATE Terminal) will not sound if Compiz is running. See the following upstream bug report.

PulseAudio users, as a workaround, can force PulseAudio to handle the system bell, see PulseAudio#X11 Bell Events.

Compiz crashes when enabling the Gnome Compatibility plugin (GSettings backend)

If you are using the GSettings backend, you may find that Compiz crashes if you try to enable the Gnome Compatibility plugin. In order to enable this plugin whilst using the GSettings backend you need to open CCSM and navigate to Preferences. Under the header Integration untick the box labelled Enable integration into the desktop environment. After unticking this option, you should find it possible to enable the Gnome Compatibility plugin.

Windows lose focus when unminimised

You may find that certain windows (such as a Chromium window) will lose focus when unminimised. See the following upstream bug report. One possible solution is to enable the Keep previews of minimized windows option, located within the Workarounds plugin.

Note: If you use the Chrome/Chromium browser and you enable this workaround, you will need to ensure that the Use system title bar and borders option within Chrome is enabled. If Chrome's own titlebar is used with the Keep previews of minimized windows Compiz workaround then when Chrome is minimized, the desktop beneath will become unresponsive.

Popout windows are offset when Compiz is running

You may find that popout windows for panels which are placed at the bottom of the screen are offset by a few pixels so that the window appears to float above the panel. This problem is known to affect Xfce and KDE and may affect other desktops as well. Listed below are a number of workarounds that might fix some cases.

  • Place the panel at the top of screen instead of the bottom - this should work in most cases.
  • Disable the Place Windows plugin - this works for the Xfce Whisker Menu plugin but may not work elsewhere.
  • Use fixed window placement to determine the window's position. This can be set from the Place Windows plugin. For instance, for the Whisker Menu, specify that the window with the title Whisker Menu should appear at (-1, -1).

For more information, see the following upstream bug report.

Alt-Tab switcher has no background (Emerald)

You may find that the Alt-Tab switcher (provided by the staticswitcher or switcher plugins) has a completely transparent background when using Emerald as well. This can make it hard to differentiate window thumbnails from the desktop background behind them. As of Compiz 0.9.12 (revision 3975) a workaround is available. In CCSM, navigate to Application Switcher or Static Application Switcher depending on which plugin you are using. For the former, the Background settings are located under General and for the latter the settings are located under Appearance. Once you have found the settings, ensure that the Set background color box is ticked. The default is a dark grey which can be optionally changed.

Alternatively, use GTK Window Decorator instead of Emerald or use a different window switcher altogether such as the shift switcher. Note that even if you are using the GTK Window Decorator, you can still change the background color as described above.

Known issues

Plugins in Compiz 0.8 are not present in Compiz 0.9

Many plugins that were popular in Compiz 0.8 (such as the Animations Add-On plugin) were disabled in Compiz versions 0.9.8 and above in order to complete OpenGL ES support. Disabled plugins that receive patches for this issue may well be re-enabled in future releases. For more information, see the Compiz 0.9.8 release notes.

Likewise, Compiz Plugins Unsupported (a package which includes plugins such as Atlantis) is unavailable in recent versions of Compiz 0.9. It has not been developed for the Compiz 0.9 series since Compiz 0.9.5 and no longer builds successfully.

Xfce panel window buttons are not refreshed when a window changes viewport

You may find that if you right click on a window title and choose an option such as Move to Workspace Right then the window will move but the window button will still be visible in the viewport the window moved from until you switch viewports. This issue can be fixed by replacing xfce4-panel with xfce4-panel-compizAUR which incorporates a patch for this issue. See the following upstream bug report for more information.

Compiz crashes when enabling the D-Bus plugin

The D-Bus plugin will cause Compiz to crash if enabled in conjunction with certain other plugins such as the Cube plugin. See the following upstream bug report.

Workspace pager and window buttons issues

Only a few panels and docks are compatible with Compiz's viewports. Incompatible panels and docks may display issues such as showing all window buttons in all workspaces or the workspace pager may only show one workspace available. The panels listed below are known to be compatible:

Xfce workspace switcher has wrong aspect ratio

When Compiz is used with Xfce Panel 4.11 and above, the workspace pager will use the width of only one workspace but will divide this space into ever smaller bars, according to how many viewports Compiz will specify. This issue can be fixed by replacing xfce4-panel with xfce4-panel-compizAUR which incorporates a patch for this issue. For more information, see the following upstream bug report.

See also