Difference between revisions of "Compiz"

From ArchWiki
Jump to: navigation, search
(cleanup after merge (1))
(cleanup after merge (2))
Line 41: Line 41:
:ccsm, compiz-fusion-plugins-extra, compiz-fusion-plugins-main, compizconfig-backend-gconf, emerald, emerald-themes, fusion-icon
:ccsm, compiz-fusion-plugins-extra, compiz-fusion-plugins-main, compizconfig-backend-gconf, emerald, emerald-themes, fusion-icon
You might want to install compiz-manager. It will allow you to have session management working. (From what I have understood.)
;groupless / legacy (?):
:compiz-decorator-gtk, compiz-decorator-kde, compiz-manager
(more TODO?)
ccsm might be your first choice frontend to configure compiz.
Emerals is compiz's own window decorator.
fusion-icon offers a tray icon and a nice way to start compiz, start ccsm and change the WM / Window Decorator.
compiz-manager is said to bring better session managing capabilities (needs confirmation!).
compiz-decorator-gtk and compiz-decorator-kde are alternatives to emerald, if you prefer using your DE's configuration backends and looks (needs confirmation too).
== Check Settings ==
== Check Settings ==
Line 353: Line 359:
= pre-merge leftovers? =
= Misc =
== Troubleshooting ==
Make sure that the environmental variable $XLIB_SKIP_ARGB_VISUALS is not set
== Installation ==
There are binary packages available in the ''Community'' repository. Install compiz using one of the following commands:
# pacman -S compiz-core
# pacman -S compiz-decorator-gtk
# pacman -S compiz-decorator-kde
Don't forget the extra package which contains more animations and plugins:
# pacman -S compiz-fusion-plugins-extra
== Using "Texture from Pixmap" rendering ==
Preparing Xorg for Compiz
Compiz, at this moment, has only one rendering path. The "Texture from Pixmap" path runs faster but doesn't work on all hardware yet.
The GLX_EXT_texture_from_pixmap extension is needed for this rendering path. This extension is currently provided by Xorg if you either use the 9xxx nvidia drivers or the AIGLX extension. It is also provided by Xgl. Refer to the [[Composite]] wiki for more information.
== gconf: Additional Compiz Configurations ==
== gconf: Additional Compiz Configurations ==

Revision as of 01:06, 13 May 2009

Template:I18n links start Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n links end


Compiz is a compositing window manager. Because it provides its own window manager, it cannot be used simultaneously with other window managers such as Openbox, Fluxbox, Enlightenment, or even GNOME's Metacity--users of these window managers may wish to try Xcompmgr instead.

Compiz is the core of the project Compiz-Fusion, which worked on adding many functions/plugins to the WM and now is being merged again. Both projects are active and undergoing constant development. For more information, refer to the article, Compiz Fusion vs. Compiz.


Basic installation can be done using community as repo (see below).

The second way is using nesl's git packages. See Compiz_Fusion_Git for more information.

Install from Community

Make sure the Community repository is enabled and run this command as root to install everything:

# pacman -S compiz-fusion

Run this if you only want gtk-based packages installed:

# pacman -S compiz-fusion-gtk

or this if you only want kde-based packages installed:

# pacman -S compiz-fusion-kde 

If you want select the packages individually, here is a list:

List of packages by group

Entire compiz-fusion group
ccsm, compiz-core, compiz-fusion-plugins-extra, compiz-fusion-plugins-main, compizconfig-backend-gconf, compizconfig-backend-kconfig, emerald, emerald-themes, fusion-icon
KDE compiz-fusion group
ccsm, compiz-fusion-plugins-extra, compiz-fusion-plugins-main, compizconfig-backend-kconfig, emerald, emerald-themes, fusion-icon
GTK compiz-fusion group
ccsm, compiz-fusion-plugins-extra, compiz-fusion-plugins-main, compizconfig-backend-gconf, emerald, emerald-themes, fusion-icon
groupless / legacy (?)
compiz-decorator-gtk, compiz-decorator-kde, compiz-manager

ccsm might be your first choice frontend to configure compiz. Emerals is compiz's own window decorator. fusion-icon offers a tray icon and a nice way to start compiz, start ccsm and change the WM / Window Decorator. compiz-manager is said to bring better session managing capabilities (needs confirmation!). compiz-decorator-gtk and compiz-decorator-kde are alternatives to emerald, if you prefer using your DE's configuration backends and looks (needs confirmation too).

Check Settings

Depending on the packages you installed, you can use different backends to manage your compiz settings. While gconf / kconf should be fine for Gnome / KDE, the basic Flat-file Configuration Backed should be your choice if want to try out compiz in different Environments without losing the settings in between or you simply use a different Desktop Environment. You can change the used Backend with ccsm ("Settings=>").
Activate important plugins!
Before you do anything else, you might want to check if the plugins that provide basic window manager behaviour are activated or you will have no possibility to drag, scale or close windows as soon as compiz is activated. Among those plugins are "Window Decoration" under Effects and "Move Window" & "Resize Window" under Window Management. You can use ccsm to do that.

Starting Compiz Fusion

Manual (with "fusion-icon")

Launch the Compiz Fusion tray icon:

$ fusion-icon

Note: If it fails, you may try it with dbus-launch:

$ dbus-launch "fusion-icon"

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.

If this fails you can start compiz-fusion by using the following commands

$ fusion-icon
$ emerald --replace
$ compiz-manager

If you want to use compiz window decorations make sure you have the "Window Decoration" plugin marked in the compiz settings.


Manual (without "fusion-icon")

Launch Compiz with the following command once installation is done :

$ compiz --replace ccp &

Start new settings manager:

$ ccsm &

Select all the plugins you like including “decoration” plugin, Add

$ kde-window-decorator --replace

as command string under ‘decoration’ plugin.

Autostart (with "fusion-icon")

You should add a symbolic link to the fusion-icon executable in your KDE Autostart directory (generally located on ~/.kde/Autostart):

$ ln -s /usr/bin/fusion-icon ~/.kde/Autostart/fusion-icon

Next time you start KDE it will load fusion-icon automatically.

Autostart (without "fusion-icon")

Method 1 - Autostart Link

  • You can ensure that Compiz Fusion will always start at login by appending a desktop entry to the KDE autostart directory. Create the file ~/.kde/Autostart/compiz.desktop with the following contents:
[Desktop Entry]
Exec=compiz --replace ccp
  • If you want to use the optional 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 ~/.kde/share/config/ksmserverrc:

Method 2 - export KDEWM (avoid KWIN)

Using this method will load Compiz-Fusion as the default window manager instead of KWin from the start. This method is faster then loading Compiz-Fusion in the ~/.kde4/Autostart/ (method 1) because it avoids loading KDE's default WM (KWin) first. This way also stops that annoying black screen flicker you might see using other methods (when kwin switches to Compiz on KDE's desktop loading screens).

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 export KDEWM="compiz --replace ccp --sm-disable" doesn't seem to work.

$ echo "compiz --replace ccp --sm-disable &" > /usr/bin/compiz-fusion

If this doesn't work, install the "fusion-icon" package and then use this line instead:

$ echo "fusion-icon &" > /usr/bin/compiz-fusion

Ensure that "/usr/bin/compiz-fusion" has executable (+x) permissions.

$ chmod a+x /usr/bin/compiz-fusion

Edit your ~/.bashrc and add the following so KDE will load compiz (via the script you just created) instead of loading KWin.

$ export KDEWM="compiz-fusion"

Note: If you use /usr/local/bin directory it may not work. In that case you should export the script with the path, i.e. export KDEWM="/usr/local/bin/compiz-fusion".

Note: The elegant way for above mentioned method is to include:


line in the ~/.kde4/env/compiz.sh or /usr/env/compiz.sh (system wide).

Method 3 - Use KDE 4.2 System Settings

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 fusion-icon from a terminal you can see the command line with which compiz was started). Create a file called "compiz-kde-launcher" in your /usr/bin directory. Then make the file executable: "chmod +x /usr/bin/compiz-kde-launcher". Here is an example for compiz-kde-launcher:

 compiz --replace --sm-disable --ignore-desktop-hints ccp --indirect-rendering &

Make sure you have the plugin "Window Decorations" enabled. Depending on what packages you have have downloaded you can choose between serveral window decorators. The recommended ones for KDE are emerald and kde4-window-decorator. The emerald decorator has the advantage that it fits better to compiz's screen handling. Use "CompizConfig Settings Manager" to change the default decorator: Window Decorator -> Command: emerald --replace or kde4-window-decorator --replace.

If you have no window decorations try to add the following line to your "compiz-kde-launcher"-file:

 sleep 1
 kde4-window-decorator --replace&
 # or if you want to use emerald
 # emerald --replace&


Autostart (without "fusion-icon")

Create /usr/share/applications/compiz.desktop containing the following:

[Desktop Entry]
Exec=compiz ccp
# name of loadable control center module
# name we put on the WM spec check window

Set a GConf parameter: "gconftool-2 --set -t string /desktop/gnome/session/required_components/windowmanager compiz"

Note: If that doesn't work try Exec=compiz ccp --indirect-rendering instead of Exec=compiz ccp in the above.

Autostart (without "fusion-icon", Gnome prior to 2.24)

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:

export WINDOW_MANAGER="compiz ccp"
exec gnome-session

and make executable (chmod +x). Next create the file /etc/X11/sessions/Compiz.desktop containing the following:

[Desktop Entry]
Name=Compiz on GNOME

Select Compiz on Gnome as your session and you're good to go.

Autostart (with "fusion-icon")

To start Compiz fusion automatically when starting a session add

"Compiz Fusion" (Name:)


"fusion-icon" (Command:)

to the applications that start with your session. You can do this by going to:

[System] -> [Preferences] -> [Sessions] -> [Startup Programs]

Adding "Compiz Fusion" to the list might be a good idea too so you can switch back to Metacity if need be.

Also set the following parameter, otherwise fusion-icon might not load windows decorator.

gconftool-2 --type bool --set /apps/metacity/general/compositing_manager false


Xfce autostart (without "fusion-icon")

Starting Compiz with the XFCE session manager. This will start Compiz directly without loading Xfwm.

Please note the change to xml config files in XFCE newer than 4.2

To install the session manager, run this command as root:

# pacman -S xfce4-session

Now we have to configure the default/failsafe session of XFCE.

Edit the following file

# nano ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml

Or to make the change for all XFCE users (root access required)

# nano /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml

Replace the xfwm startup command,

 <property name="Client0_Command" type="array">
   <value type="string" value="xfwm4"/>

with the following:

 <property name="Client0_Command" type="array">
   <value type="string" value="compiz"/>
   <value type="string" value="ccp"/>

To prevent the default session from being overwritten you may also add this:

 <property name="general" type="empty">
   <property name="SaveOnExit" type="bool" value="false"/>

To remove the existing sessions, run:

rm -r ~/.cache/sessions

Xfce autostart (with "fusion-icon")

Method 1:

This will load Xfwm first then replace it with Compiz.

Open the XFCE Settings Manager & then Sessions & Startup. Click the Application Autostart tab.


  (Name:) Compiz Fusion
  (Command:) fusion-icon

Method 2:

Edit the following file (settings in this file is used in preference)

nano ~/.conf/xfce4-session/xfce4-session.rc

Or to make the change for all XFCE users (root access required)

# nano /etc/xdg/xfce4-session/xfce4-session.rc

Add the following

[Failsafe Session]

Comment out Client0_Command=xfwm4 if it exists.

This will cause xfce to load Compiz instead of Xfwm when the user has no existing sessions.

To prevent the default session from being overwritten you may also add


To remove the existing sessions

rm -r ~/.cache/sessions

As a standalone WM

Write a simple script called, say, start-fusion.sh:

# add more apps here if necessary or start another panel, tray like pypanel, bmpanel, stalonetray

Make it executable and add it to ~/.xinitrc, like this:

exec start-fusion.sh

Feel free to use a different panel, tray, or start a whole bunch on applications with your session. See forum thread for more info.

Add a root menu

To add a root menu similar to that in Openbox, Fluxbox, Blackbox etc. you must install the package compiz-deskmenu from the AUR. 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.

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.

Using compiz-manager

In order to use compiz-manager, you need to install it from community:

pacman -Sy compiz-manager

Compiz-manager, that now is installed in /usr/bin/compiz-manager, is a simple wrapper for compiz and ALL its options. For example, you can run


and see that console returns. You can use it in all the scripts that start compiz. Very simple!

KDE 4.2 :

-Panel/taskbar is visible when running apps in fullscreen mode:

Enable Window Rules plugin and add under ABOVE : state=fullscreen

Also see Compiz_Troubleshooting and Compiz_Configuration.

Additional Resources


gconf: Additional Compiz Configurations

To achieve more satisfying results from Compiz, you can tweak its config with gconf-editor:

 gconf-editor &

Note that now compiz-core isn't built with gconf support; It is now on compiz-decorator-gtk. So, you need to install it if you want to use gconf-editor to edit compiz configuration. Compiz config is in apps > compiz > general > allscreens > options

Active plugins is where you specify the plugins you would like to use, simply edit the key and add in value(refer to apps > compiz > plugins). Plugins I’ve found useful are screenshot, png, fade, minimize. Please do not remove those enabled by default.

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.

Keyboard Shortcuts

Default plugin keyboard shortcuts

  • Switch windows = Alt + Tab
  • Arrange and View All Windows = F12 turns on or off; clicking a window will zoom it to the front
  • Switch desktops on cube = Ctrl + Alt + Left/Right Arrow
  • Switch desktops on cube - with active window following = Ctrl + Shift + Alt + Left/Right Arrow
  • Rotate cube manually = Ctrl + Alt + left-click
  • Make window translucent/opaque = Ctrl + Alt + wheel mouse OR Alt + wheel mouse
  • Zoom-in once = Super-key right-click
  • Zoom-in manually = Super-key + wheel mouse up OR WIN-key + wheel mouse up
  • Zoom-out manually = Super-key + wheel mouse down OR WIN-key + wheel mouse down
  • Move window = Alt + left-click
  • Snap Move window (will stick to borders) = Ctrl + Alt + left-click
  • Resize window = Alt + right-click
  • Bring up the window below the top window = Alt + middle-click
  • Slow-motion = Shift + F10
  • Water = hold Ctrl + Super key
  • Rain = Shift-F9
  • Film effect - changing desktop = Ctrl + Alt + Down Arrow (Compiz-quinn: Ctrl + Alt + Page Down)
  • Expose - Point your mouse to the TOP RIGHT CORNER of your screens.
  • Screenshot - Super Key + Left-Click Drag(Select a region)

This is another useful features when you have many windows opened at once without minimizing them. You can get to the window you want right away.

Source: Compiz - openSUSE