Difference between revisions of "Compiz (Italiano)"

From ArchWiki
Jump to: navigation, search
(Troubleshooting: Aggiunta una soluzione a ripetuti sfarfallii dello schermo con schede nvidia)
(Inizio traduzione)
Line 4: Line 4:
 
{{i18n|Compiz}}
 
{{i18n|Compiz}}
  
= Installazione =
+
{{out_of_date}}
L'installazione di base può essere eseguita usando il repo "community"(vedi avanti).
+
{{nota|Questa pagina non è aggiornata. Seguite per ora le istruzioni della versione inglese.}}
  
Una seconda opzione è quella di usare i git packages di nesl. [[Compiz_Fusion_Git]] per più informazioni riguardanti questo meodo.
 
  
== Installare dal repo community ==
+
Compiz è un [http://it.wikipedia.org/wiki/Compositing_window_manager gestore di finestre composito]. Fornisce il suo proprio gestore di finestre, quindi non può essere utilizzato insieme ad altri programmi dello stesso tipo come [[Openbox (Italiano)|Openbox]], [[Fluxbox (Italiano)|Fluxbox]], [[Enlightenment (Italiano)|Enlightenment]] - gli utenti di questi programmi possono voler provare [[Xcompmgr]].
  
Controlla che il repository sia abilitato, ed esegui questi comandi per installare tutto:
+
Compiz è il cuore del progetto Compiz-Fusion, il quale aveva l'obiettivo di aggiungere funzionalità e plugin al WM e che da un po' di tempo è stato riassorbito dal progetto Compiz originale. Entrambi i progetti sono attivi e in costante sviluppo. Per maggiori informazioni, riferirsi all'articolo (in inglese) [http://wiki.compiz-fusion.org/CompizFusionVsCompiz Compiz Fusion vs. Compiz].
 +
 
 +
 
 +
= Installazione =
 +
L'installazione di base può essere eseguita usando il repository [community].
 +
 
 +
== Installazione da community ==
 +
 
 +
Assicuratevi che il repository sia abilitato in {{filename|/etc/pacman.conf}}, dopodichè si procederà con il classico
 
  pacman -S compiz-fusion
 
  pacman -S compiz-fusion
oppure questo se vuoi solo i package per gtk(quindi senza necessità delle librerie qt)
+
che installerà TUTTI i componenti del progetto compiz-fusion. Nel caso vogliate fare selezione fra i pacchetti, poichè magari avete un ambienete solo KDE o solo GNOME..
 
  pacman -S compiz-fusion-gtk
 
  pacman -S compiz-fusion-gtk
al contrario se vuoi usare i pacchetti di kde-base:
+
installerà solo i pacchetti necessari ad un ambiente GNOME, oppure
 
  pacman -S compiz-fusion-kde  
 
  pacman -S compiz-fusion-kde  
Se vuoi selezionare manualmente i pacchetti, ecco una lista
+
se al contrario se vuoi usare i pacchetti di kde-base.
 +
 
 +
Nel caso si voglia selezionare manualmente i pacchetti, potrete aiutarvi con la lista seguente
 +
 
 +
{{Box Note| Per informazioni su cosa fare con altri Ambienti Desktop, fare riferimento al paragrafo [http://wiki.archlinux.org/index.php/Compiz#As_a_Standalone_Window_Manager "As A Standalone Window Manger"] in questa pagina. Aggiungete pure qualche informazione alla sezione se pensate possa essere utile!}}
 +
 
 +
=== Lista dei pacchetti per gruppo ===
 +
;L'intero gruppo compiz-fusion (compiz-fusion):
 +
:ccsm, compiz-core, compiz-fusion-plugins-extra, compiz-fusion-plugins-main, compizconfig-backend-gconf, compizconfig-backend-kconfig, emerald, emerald-themes, fusion-icon
 +
 
 +
;gruppo pacchetti per compiz-fusion KDE (compiz-fusion-kde):
 +
:ccsm, compiz-fusion-plugins-extra, compiz-fusion-plugins-main, compizconfig-backend-kconfig, emerald, emerald-themes, fusion-icon
 +
 
 +
;gruppo compiz-fusion GTK (compiz-fusion-gtk):
 +
:ccsm, compiz-fusion-plugins-extra, compiz-fusion-plugins-main, compizconfig-backend-gconf, emerald, emerald-themes, fusion-icon
 +
 
 +
;pacchetti non inclusi nei gruppi:
 +
:compiz-decorator-gtk, compiz-decorator-kde, compiz-manager
 +
 
 +
*ccsm è una buona prima scelta come interfaccia per configurare compiz.
 +
*[[Emerald]] è l'esclusivo window decorator proprio di Compiz. Ha molti temi, ma è abbastanza instabile e il suo sviluppo è in fase calante.
 +
*fusion-icon offre una tray icon carina e un bel metodo per avviare compiz, il frontend ccsm e per cambiare al volo alcune impostazioni, fra le quali il WM / Window Decorator da utilizzare.
 +
*compiz-manager a quanto si dice fornisce un buon sistema per gestire le sessioni di Compiz (da confermare!).
 +
*compiz-decorator-gtk e compiz-decorator-kde sono alternative a Emerald se preferite avere un aspetto più conforme al vostro Desktop "standard" (simulano rispettivamente l'aspetto di Metacity e Kwin)
 +
 
 +
=== Controllare le impostazioni ===
 +
; Compatibilità
 +
: Lo script [http://forlong.blogage.de/entries/pages/Compiz-Check compiz-check] esegue diversi test relativi a compiz sul proprio sistema e può aiutare nello scoprire problemi nell'hardware o nelle impostazioni che possono impedire di eseguire compiz correttamente. Esso è disponibile su [http://aur.archlinux.org/packages.php?ID=17163 AUR].
 +
; Pannelli di controllo (per gestire gli effetti e le impostazioni di Compiz):
 +
: CompizConfig Settings Manager (ccsm) è la GUI che vi permetterà di abilitare o disabilitare tutti i plugin e le impostazioni di Compiz. Lanciando semplicemente il comando 'ccsm' o selezionando Settings Manager dal menu fdi Fusion-Icon silancerà questo ottimo pannello.
 +
 
 +
; Attivate i plugin alla prima esecuzione di compiz!!:
 +
;
 +
{{warning|Prima di fare qualsiasi altra cosa, in Arch Linux è necessario attivare tutti i plugin che pensate vi possano servire, anche quelli che forniscono le funzioni base di spostamento, selezione, ridimensionamento delle finestre, e le decorazioni delle stesse. In particolare, essi sono i plugin "Decorazioni Finestre" sotto la sezione Effetti e "Muovi Finestra" & "Ridimensiona Finestre" sotto Gestione Finestre.}}
 +
{{Box Note| ccsm è ottimo per fare queste modifiche alla configurazione. Semplicemente, basterà mettere il "segno di spunta" sui rispettivi plugin per attivarli.}}
 +
 
 +
== Starting Compiz Fusion ==
 +
 
 +
=== Manually (with "fusion-icon") ===
 +
 
 +
Launch the Compiz Fusion tray icon:
 +
$ fusion-icon
 +
 
 +
'''Note:''' If it fails (almost never), 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 additional command to replace your default window decorator with Compiz's window decorator (Emerald):
 +
$ emerald --replace
 +
 
 +
'''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.
 +
 
 +
=== Manually (without "fusion-icon") ===
 +
 
 +
Launch Compiz with the following command (which replaces your current window manager):
 +
$ compiz --replace ccp &
 +
{{Box Note| The "ccp" in the command above 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.}}
 +
 
 +
;Set the kde-window-decorator as an alternative to Emerald and enable features you like
 +
 
 +
:Launch CompizConfig Settings Manager:
 +
: <pre>$ ccsm</pre>
 +
 
 +
:Select all the plugins you like including the “Window Decoration” plugin. Add
 +
:<pre>kde-window-decorator --replace</pre>
 +
:or
 +
:<pre>gtk-window-decorator --replace</pre>
 +
:as the command string in the "Window Decoration" plugin's settings under the field "Command".
 +
<!-- We need some more consistency with the autostart guides. The KDE version suggests starting compiz directly while the GNOME version tells you to use fusion-icon. -->
 +
 
 +
=== KDE ===
 +
 
 +
==== Autostart (with "fusion-icon") ====
 +
Add a symbolic link, that points to the fusion-icon executable, in your KDE Autostart directory (generally located in {{filename|~/.kde/Autostart}}):
 +
$ ln -s /usr/bin/fusion-icon ~/.kde/Autostart/fusion-icon
 +
 
 +
Next time KDE is started, it will load fusion-icon automatically.
 +
{{Box Note| This method can also be slower due to the fact that KDE will first load the default window manager (KWin), then will launch fusion-icon which will load the Compiz window manager to replace KWin. Essentially, it will take the amount of time that it takes to load two window managers to get Compiz loaded. Read ahead to see other methods.}}
 +
 
 +
==== Autostart (without "fusion-icon") ====
 +
 
 +
===== Method 1 - Autostart Link =====
 +
 
 +
{{Box Note|DO NOT create compiz.desktop if you intend to install compiz-decorator-gtk; it will create a file conflict.}}
 +
 
 +
* You can ensure that Compiz Fusion will always start at login by appending a desktop entry to the KDE Autostart directory. If it doesn't already exist (it should), create the file {{filename|~/.kde/Autostart/compiz.desktop}} with the following contents:
 +
 
 +
[Desktop Entry]
 +
Encoding=UTF-8
 +
Exec=compiz --replace ccp #Make sure ccp is included so that Compiz loads your previous settings.
 +
StartupNotify=false
 +
Terminal=false
 +
Type=Application
 +
X-KDE-autostart-after=kdesktop
 +
{{Box Note| If {{filename|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.}}
 +
{{Box Note| This method can also be slower due to the fact that KDE will first load the default window manager (KWin), then will launch fusion-icon which will load the Compiz window manager to replace KWin. Essentially, it will take the amount of time that it takes to load two window managers to get Compiz loaded. The next method eliminates this problem.}}
 +
 
 +
* If you want to use the optional <tt>fusion-icon</tt> 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 {{filename|~/.kde/share/config/ksmserverrc}}:
 +
 
 +
loginMode=restorePreviousLogout
 +
{{Box Note| This is a KDE specific setting that will allow you to restore other apps next time you log in, not just fusion-icon.}}
 +
 
 +
===== Method 2 - export KDEWM (Preferred Method) =====
 +
 
 +
{{Box Note| Using this method will load Compiz-Fusion as the default window manager instead of KWin from the start. This method is faster than automatically loading Compiz-Fusion with either of the two previous methods because it avoids loading KDE's default window manager (KWin) first. This method also prevents 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 <code>export KDEWM="compiz --replace ccp --sm-disable"</code> doesn't seem to work.
 +
$ echo "compiz --replace ccp --sm-disable &" > /usr/bin/compiz-fusion
 +
 
 +
{{Box Note| If this line doesn't work, make sure the "fusion-icon" package is installed and then use this line instead:
 +
$ echo "fusion-icon &" > /usr/bin/compiz-fusion
 +
Be sure to complete the whole method before trying this substitute.}}
 +
 
 +
Ensure that {{filename|/usr/bin/compiz-fusion}} has executable (+x) permissions.
 +
$ chmod a+x /usr/bin/compiz-fusion
 +
 
 +
Choose one of the following:
 +
 
 +
:1) Compiz for your user only --> Edit the file {{filename|~/.kde4/env/compiz.sh}} and add the following line so KDE will load compiz (via the script you just created) instead of loading KWin.
 +
: <pre>KDEWM="compiz-fusion"</pre>
 +
 
 +
:2) Compiz system wide --> Edit the file {{filename|/usr/env/compiz.sh}} and add the following line so KDE will load compiz (via the script you just created) instead of loading KWin.
 +
: <pre>KDEWM="compiz-fusion"</pre>
 +
 
 +
{{Box Note| If the above method shall not work for any reason, try the replacement mentioned above.}}
 +
{{Box Note| If that still doesn't work, yet another alternate way to accomplish the above method is to include the line
 +
<pre>export KDEWM="compiz-fusion"</pre>
 +
in your user's {{filename|~/.bashrc}} file.}}
 +
{{Box Note| If you optionally use the {{filename|/usr/local/bin}} directory it may not work. In that case you should export the script including the whole path:
 +
<pre>export KDEWM="/usr/local/bin/compiz-fusion"</pre>}}
 +
 
 +
===== Method 3 - Use KDE 4 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:
 +
  #!/bin/bash
 +
  LIBGL_ALWAYS_INDIRECT=1
 +
  compiz --replace ccp &
 +
  wait
 +
 
 +
=== GNOME ===
 +
 
 +
==== Autostart (without "fusion-icon") (Preferred Method) ====
 +
 
 +
'''1)''' If it doesn't already exist (it should), create the file {{filename|/usr/share/applications/compiz.desktop}} containing the following:
 +
 
 +
[Desktop Entry]
 +
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
 +
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
 +
 
 +
{{Box Note| If {{filename|compiz.desktop}} already exists, you may have to add "ccp" to the Exec variable. Without "ccp", Compiz will not load any of the settings and plugins that you have previously enabled through CompizConfig Settings Manager (ccsm) and you won't be able to manipulate any of your windows.}}
 +
 
 +
If the above doesn't work, try:
 +
 
 +
<pre>Exec=/usr/bin/compiz ccp --indirect-rendering</pre>
 +
 
 +
or
 +
 
 +
<pre>Exec=/usr/bin/compiz --replace --sm-disable --ignore-desktop-hints ccp --indirect-rendering</pre>
 +
 
 +
Instead of
 +
 
 +
<pre>Exec=/usr/bin/compiz ccp</pre>
 +
 
 +
Some Users noticed a "lag" of 4-10 seconds when loging in from a login manager. The solution is to change the command to:
 +
<pre>Exec=bash -c "compiz ccp --indirect-rendering --sm-client-id $DESKTOP_AUTOSTART_ID"</pre>
 +
as noted [http://bbs.archlinux.org/viewtopic.php?pid=655237#p655237 in the forum].
 +
 
 +
'''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:
 +
 
 +
 
 +
{{Box 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.}}
 +
 
 +
gconftool-2 --set -t string /desktop/gnome/session/required_components/windowmanager compiz
 +
 
 +
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.
 +
 
 +
gconftool-2 --set -t string /desktop/gnome/applications/window_manager/current /usr/bin/compiz
 +
gconftool-2 --set -t string /desktop/gnome/applications/window_manager/default /usr/bin/compiz
 +
 
 +
==== 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:
 +
#!/bin/bash
 +
export WINDOW_MANAGER="compiz ccp"
 +
exec gnome-session
 +
 
 +
and make it executable (<code>chmod +x /usr/local/bin/compiz-start-boot</code>). Next create the file {{filename|/etc/X11/sessions/Compiz.desktop}} containing the following:
 +
[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.
 +
 
 +
==== Autostart (with "fusion-icon") ====
 +
 
 +
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.
 +
 
 +
 
 +
Name:
 +
Compiz Fusion
 +
Command:
 +
fusion-icon
 +
Comment:  (Put anything you like or leave blank.)
 +
 
 +
{{Box Note| You can also use "compiz --replace ccp" instead of "fusion-icon" to load compiz but there will be no fusion-icon.
 +
 
 +
The ccp value will tell compiz to load your previous Compiz settings as configured with CompizConfig Settings Manager (ccsm).}}
 +
 
 +
 
 +
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.
 +
 
 +
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.
 +
gconftool-2 --type bool --set /apps/metacity/general/compositing_manager false
 +
 
 +
{{Box 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.}}
 +
 
 +
=== XFCE ===
 +
 
 +
==== 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
 +
 
 +
 
 +
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"/>
 +
  </property>
 +
 
 +
with the following:
 +
 
 +
  <property name="Client0_Command" type="array">
 +
    <value type="string" value="compiz"/>
 +
    <value type="string" value="ccp"/>
 +
  </property>
 +
 
 +
{{Box Note| the ccp value will tell compiz to load your previous Compiz settings as configured with CompizConfig Settings Manager (ccsm).}}
 +
 
 +
 
 +
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"/>
 +
  </property>
 +
 
 +
 
 +
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.
 +
 
 +
Add
 +
  (Name:) Compiz Fusion
 +
 
 +
  (Command:) fusion-icon
 +
 
 +
{{Box Note| You can also use "compiz --replace ccp" instead of "fusion-icon" to load compiz but there will be no fusion-icon.
 +
 
 +
The ccp value will tell compiz to load your previous Compiz settings as configured with CompizConfig Settings Manager (ccsm).}}
 +
 
 +
{{Box Note| This method is the least preferred since it loads both window managers. All the other XFCE methods only load Compiz without loading Xfwm.}}
 +
 
 +
=====Method 2:=====
 +
 
 +
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)
 +
# nano /etc/xdg/xfce4-session/xfce4-session.rc
 +
 
 +
Add the following
 +
[Failsafe Session]
 +
Client0_Command=fusion-icon
 +
 
 +
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
 +
[General]
 +
AutoSave=false
 +
SaveOnExit=false
 +
 
 +
To remove the existing sessions
 +
rm -r ~/.cache/sessions
 +
 
 +
=====Method 3:=====
 +
Check if this file exists:
 +
~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
 +
 
 +
If not do:
 +
cp /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
 +
 
 +
and open it for edit:
 +
nano ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
 +
 
 +
or make the changes for all xfce4 users (needs root access):
 +
# nano /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
 +
 
 +
Edit Client0_Command that it look like this:
 +
<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''':
 +
<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:
 +
rm -r ~/.cache/sessions
 +
 
 +
Now xfce4 will load compiz instead of Xfwm.
 +
 
 +
=== As a Standalone Window Manager ===
 +
 
 +
Configure ~/.xinitrc to launch fusion-icon.
 +
 
 +
exec ck-launch-session fusion-icon
 +
 
 +
An alternative method, utilizing a simple script entitled '''start-fusion.sh''':
 +
#!/bin/sh
 +
# add more apps here if necessary or start another panel, tray like pypanel, bmpanel, stalonetray
 +
xfce4-panel&
 +
fusion-icon
 +
If this script dosn't work for you, or you get issues with '''dbus''' utilize this script:
 +
#!/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
 +
Make it executable and add it to ~/.xinitrc, like this:
 +
exec ck-launch-session start-fusion.sh
 +
Feel free to use a different panel, tray, or start a whole bunch of applications with your session.
 +
See [http://bbs.archlinux.org/viewtopic.php?id=51282 this 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.
 +
 
 +
An alternative is to use [http://aur.archlinux.org/packages.php?ID=29564 mygtkmenu], also in [[AUR]].
 +
 
 +
== Misc ==
 +
 
 +
=== You must do this so your windows function like you expect them to!: ===
 +
 
 +
Make sure you have the plugins "Window Decorations", "Move Window", and "Resize Window" enabled. Depending on what packages you have downloaded you can choose between serveral 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. Use CompizConfig Settings Manager (ccsm) to change the default decorator: Window Decorator -> Command: "emerald --replace" or "kde4-window-decorator --replace" or "gtk-window-decorator --replace".
 +
 
 +
=== Using compiz-manager ===
 +
 
 +
In order to use compiz-manager, you need to install it from community:
 +
pacman -S compiz-manager
 +
 
 +
Compiz-manager, that is now installed in {{filename|/usr/bin/compiz-manager}}, is a simple wrapper for Compiz and ALL of its options. For example, you can run
 +
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 ===
 +
 
 +
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.
 +
 
 +
=== 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 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.
 +
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>.
 +
 
 +
"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.
 +
 
 +
=== Keyboard Shortcuts ===
 +
Default plugin keyboard shortcuts (plugins have to be activated!)
 +
 
 +
* Switch windows = Alt + Tab
 +
* Switch desktops on cube = Ctrl + Alt + Left/Right Arrow
 +
* Move window = Alt + left-click
 +
* Resize window = 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).
 +
 
 +
=== 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 don't 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 don't need --replace because you are not first loading xfwm and then compiz.
 +
 
 +
== Additional Resources ==
 +
 
 +
*[[Compiz_Troubleshooting]] -- sub article
 +
*[[Compiz_Configuration]] -- sub article
 +
*[http://compiz.org Compiz Website] -- including wiki and forum
 +
 
 +
*[[AIGLX]] -- article
 +
*[[Xgl]] -- article
 +
*[[Composite]] -- A Xorg extension required by composite managers
 +
*[[Xcompmgr]] -- A simple composite manager capable of drop shadows and primitive transparency
 +
 
 +
*Wikipedia: [http://en.wikipedia.org/wiki/Compositing_window_manager Compositing Window Managers]
 +
 
 +
 
 +
 
 +
=======================================
 +
=======================================
 +
 
 +
=======================================
 +
=======================================
  
  

Revision as of 06:50, 31 July 2010

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

Tango-view-refresh-red.pngThis article or section is out of date.Tango-view-refresh-red.png

Reason: please use the first argument of the template to provide a brief explanation. (Discuss in Talk:Compiz (Italiano)#)
Nota: Questa pagina non è aggiornata. Seguite per ora le istruzioni della versione inglese.


Compiz è un gestore di finestre composito. Fornisce il suo proprio gestore di finestre, quindi non può essere utilizzato insieme ad altri programmi dello stesso tipo come Openbox, Fluxbox, Enlightenment - gli utenti di questi programmi possono voler provare Xcompmgr.

Compiz è il cuore del progetto Compiz-Fusion, il quale aveva l'obiettivo di aggiungere funzionalità e plugin al WM e che da un po' di tempo è stato riassorbito dal progetto Compiz originale. Entrambi i progetti sono attivi e in costante sviluppo. Per maggiori informazioni, riferirsi all'articolo (in inglese) Compiz Fusion vs. Compiz.


Contents

Installazione

L'installazione di base può essere eseguita usando il repository [community].

Installazione da community

Assicuratevi che il repository sia abilitato in Template:Filename, dopodichè si procederà con il classico

pacman -S compiz-fusion

che installerà TUTTI i componenti del progetto compiz-fusion. Nel caso vogliate fare selezione fra i pacchetti, poichè magari avete un ambienete solo KDE o solo GNOME..

pacman -S compiz-fusion-gtk

installerà solo i pacchetti necessari ad un ambiente GNOME, oppure

pacman -S compiz-fusion-kde 

se al contrario se vuoi usare i pacchetti di kde-base.

Nel caso si voglia selezionare manualmente i pacchetti, potrete aiutarvi con la lista seguente

Template:Box Note

Lista dei pacchetti per gruppo

L'intero gruppo compiz-fusion (compiz-fusion)
ccsm, compiz-core, compiz-fusion-plugins-extra, compiz-fusion-plugins-main, compizconfig-backend-gconf, compizconfig-backend-kconfig, emerald, emerald-themes, fusion-icon
gruppo pacchetti per compiz-fusion KDE (compiz-fusion-kde)
ccsm, compiz-fusion-plugins-extra, compiz-fusion-plugins-main, compizconfig-backend-kconfig, emerald, emerald-themes, fusion-icon
gruppo compiz-fusion GTK (compiz-fusion-gtk)
ccsm, compiz-fusion-plugins-extra, compiz-fusion-plugins-main, compizconfig-backend-gconf, emerald, emerald-themes, fusion-icon
pacchetti non inclusi nei gruppi
compiz-decorator-gtk, compiz-decorator-kde, compiz-manager
  • ccsm è una buona prima scelta come interfaccia per configurare compiz.
  • Emerald è l'esclusivo window decorator proprio di Compiz. Ha molti temi, ma è abbastanza instabile e il suo sviluppo è in fase calante.
  • fusion-icon offre una tray icon carina e un bel metodo per avviare compiz, il frontend ccsm e per cambiare al volo alcune impostazioni, fra le quali il WM / Window Decorator da utilizzare.
  • compiz-manager a quanto si dice fornisce un buon sistema per gestire le sessioni di Compiz (da confermare!).
  • compiz-decorator-gtk e compiz-decorator-kde sono alternative a Emerald se preferite avere un aspetto più conforme al vostro Desktop "standard" (simulano rispettivamente l'aspetto di Metacity e Kwin)

Controllare le impostazioni

Compatibilità
Lo script compiz-check esegue diversi test relativi a compiz sul proprio sistema e può aiutare nello scoprire problemi nell'hardware o nelle impostazioni che possono impedire di eseguire compiz correttamente. Esso è disponibile su AUR.
Pannelli di controllo (per gestire gli effetti e le impostazioni di Compiz)
CompizConfig Settings Manager (ccsm) è la GUI che vi permetterà di abilitare o disabilitare tutti i plugin e le impostazioni di Compiz. Lanciando semplicemente il comando 'ccsm' o selezionando Settings Manager dal menu fdi Fusion-Icon silancerà questo ottimo pannello.
Attivate i plugin alla prima esecuzione di compiz!!
Warning: Prima di fare qualsiasi altra cosa, in Arch Linux è necessario attivare tutti i plugin che pensate vi possano servire, anche quelli che forniscono le funzioni base di spostamento, selezione, ridimensionamento delle finestre, e le decorazioni delle stesse. In particolare, essi sono i plugin "Decorazioni Finestre" sotto la sezione Effetti e "Muovi Finestra" & "Ridimensiona Finestre" sotto Gestione Finestre.

Template:Box Note

Starting Compiz Fusion

Manually (with "fusion-icon")

Launch the Compiz Fusion tray icon:

$ fusion-icon

Note: If it fails (almost never), 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 additional command to replace your default window decorator with Compiz's window decorator (Emerald):

$ emerald --replace

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.

Manually (without "fusion-icon")

Launch Compiz with the following command (which replaces your current window manager):

$ compiz --replace ccp &

Template:Box Note

Set the kde-window-decorator as an alternative to Emerald and enable features you like
Launch CompizConfig Settings Manager:
$ ccsm
Select all the plugins you like including the “Window Decoration” plugin. Add
kde-window-decorator --replace
or
gtk-window-decorator --replace
as the command string in the "Window Decoration" plugin's settings under the field "Command".

KDE

Autostart (with "fusion-icon")

Add a symbolic link, that points to the fusion-icon executable, in your KDE Autostart directory (generally located in Template:Filename):

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

Next time KDE is started, it will load fusion-icon automatically. Template:Box Note

Autostart (without "fusion-icon")

Method 1 - Autostart Link

Template:Box Note

  • You can ensure that Compiz Fusion will always start at login by appending a desktop entry to the KDE Autostart directory. If it doesn't already exist (it should), create the file Template:Filename with the following contents:
[Desktop Entry]
Encoding=UTF-8
Exec=compiz --replace ccp #Make sure ccp is included so that Compiz loads your previous settings.
StartupNotify=false
Terminal=false
Type=Application
X-KDE-autostart-after=kdesktop

Template:Box Note Template:Box Note

  • 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 Template:Filename:
loginMode=restorePreviousLogout

Template:Box Note

Method 2 - export KDEWM (Preferred Method)

Template:Box Note

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

Template:Box Note

Ensure that Template:Filename has executable (+x) permissions.

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

Choose one of the following:

1) Compiz for your user only --> Edit the file Template:Filename and add the following line so KDE will load compiz (via the script you just created) instead of loading KWin.
KDEWM="compiz-fusion"
2) Compiz system wide --> Edit the file Template:Filename and add the following line so KDE will load compiz (via the script you just created) instead of loading KWin.
KDEWM="compiz-fusion"

Template:Box Note Template:Box Note Template:Box Note

Method 3 - Use KDE 4 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:

 #!/bin/bash
 LIBGL_ALWAYS_INDIRECT=1
 compiz --replace ccp &
 wait

GNOME

Autostart (without "fusion-icon") (Preferred Method)

1) If it doesn't already exist (it should), create the file Template:Filename containing the following:

[Desktop Entry]
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
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

Template:Box Note

If the above doesn't work, try:

Exec=/usr/bin/compiz ccp --indirect-rendering

or

Exec=/usr/bin/compiz --replace --sm-disable --ignore-desktop-hints ccp --indirect-rendering

Instead of

Exec=/usr/bin/compiz ccp

Some Users noticed a "lag" of 4-10 seconds when loging in from a login manager. The solution is to change the command to:

Exec=bash -c "compiz ccp --indirect-rendering --sm-client-id $DESKTOP_AUTOSTART_ID"

as noted in the forum.

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:


Template:Box Note

gconftool-2 --set -t string /desktop/gnome/session/required_components/windowmanager compiz

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.

gconftool-2 --set -t string /desktop/gnome/applications/window_manager/current /usr/bin/compiz
gconftool-2 --set -t string /desktop/gnome/applications/window_manager/default /usr/bin/compiz

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:

#!/bin/bash
export WINDOW_MANAGER="compiz ccp"
exec gnome-session

and make it executable (chmod +x /usr/local/bin/compiz-start-boot). Next create the file Template:Filename containing the following:

[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.

Autostart (with "fusion-icon")

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.


Name:

Compiz Fusion

Command:

fusion-icon

Comment: (Put anything you like or leave blank.)

Template:Box Note


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.

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.

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

Template:Box Note

XFCE

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


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"/>
 </property>

with the following:

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

Template:Box Note


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"/>
 </property>


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.

Add

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

Template:Box Note

Template:Box Note

Method 2:

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)

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

Add the following

[Failsafe Session]
Client0_Command=fusion-icon

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

[General]
AutoSave=false
SaveOnExit=false

To remove the existing sessions

rm -r ~/.cache/sessions
Method 3:

Check if this file exists:

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

If not do:

cp /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml

and open it for edit:

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

or make the changes for all xfce4 users (needs root access):

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

Edit Client0_Command that it look like this:

<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:

<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:

rm -r ~/.cache/sessions

Now xfce4 will load compiz instead of Xfwm.

As a Standalone Window Manager

Configure ~/.xinitrc to launch fusion-icon.

exec ck-launch-session fusion-icon

An alternative method, utilizing a simple script entitled start-fusion.sh:

#!/bin/sh
# add more apps here if necessary or start another panel, tray like pypanel, bmpanel, stalonetray
xfce4-panel&
fusion-icon

If this script dosn't work for you, or you get issues with dbus utilize this script:

#!/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

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

exec ck-launch-session start-fusion.sh

Feel free to use a different panel, tray, or start a whole bunch of applications with your session. See this 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.

An alternative is to use mygtkmenu, also in AUR.

Misc

You must do this so your windows function like you expect them to!:

Make sure you have the plugins "Window Decorations", "Move Window", and "Resize Window" enabled. Depending on what packages you have downloaded you can choose between serveral 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. Use CompizConfig Settings Manager (ccsm) to change the default decorator: Window Decorator -> Command: "emerald --replace" or "kde4-window-decorator --replace" or "gtk-window-decorator --replace".

Using compiz-manager

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

pacman -S compiz-manager

Compiz-manager, that is now installed in Template:Filename, is a simple wrapper for Compiz and ALL of its options. For example, you can run

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

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.

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 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. The Compiz gconf configuration is located in in the key apps > compiz > general > allscreens > options.

"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 apps > compiz > plugins to see possible values). Plugins I’ve found useful are screenshot, png, fade, and minimize. Please do not remove those enabled by default.

Keyboard Shortcuts

Default plugin keyboard shortcuts (plugins have to be activated!)

  • Switch windows = Alt + Tab
  • Switch desktops on cube = Ctrl + Alt + Left/Right Arrow
  • Move window = Alt + left-click
  • Resize window = Alt + right-click

A more detailed list can be found under CommonKeyboardShortcuts in the Compiz wiki or you can always just look at your plugin's configuration (ccsm).

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 don't 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 don't need --replace because you are not first loading xfwm and then compiz.

Additional Resources

  • AIGLX -- article
  • Xgl -- article
  • Composite -- A Xorg extension required by composite managers
  • Xcompmgr -- A simple composite manager capable of drop shadows and primitive transparency


===========================
===========================
===========================
===========================

Avviare Compiz Fusion

Manuale (con "fusion-icon")

Avvia la tray icon di compiz:

 fusion-icon

note: se fallisce, prova con: dbus-launch

dbus-launch "fusion-icon"

Clicca di destro sull'icona nel pannello, e seleziona "select window manager", scegli "compiz", se non è ancora selezionato, dovrebbe partire.

Se fallisce, puoi avviare compiz-fusion usando i seguenti comandi

 fusion-icon
 emerald --replace
 compiz-manager

KDE

Manuale (senza "fusion-icon")

Avvia compiz con i seguenti comandi, dopo che l'installazione è conclusa:

  compiz --replace ccp &

Avvia il nuovo settings manager:

  ccsm &

Seleziona tutti i plugins che desideri includere, ed aggiungi

  kde-window-decorator --replace

come stringa di comando sotto "decoration" plugin.


Autostart (con "fusion-icon")

Dovresti aggiungere un link simbolico alla fusion-icon eseguibile, nella tua cartella autostart di kde(generalmente si trova in ~/.kde/Autostart):

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

Al prossimo avvio di KDE caricherà fusion-icon automaticamente.

Autostart (senza "fusion-icon")

Metodo 1 - Autostart Link

  • Puoi assicurarti che Compiz Fusion si avvierà sempre al login, aggiungendo a desktop entry nella cartella autostard di KDE. Crea il file ~/.kde/Autostart/compiz.desktop con il seguente contenuto
 [Desktop Entry]
 Encoding=UTF-8
 Exec=/usr/bin/compiz --replace ccp
 StartupNotify=false
 Terminal=false
 Type=Application
 X-KDE-autostart-after=kdesktop
  • Se vuoi usare l'opzionale fusion-icon application, avvia fusion-icon. Se esci normalmente con fusion-icon avviato, KDE dovrebbe rimettere la sessione, e lanciare fusion-icon la prossima volta che loggerai, se questa opzione è abilitata. Se non sembra andare, assicurati che tu abbia la seguente linea nel file: ~/.kde/share/config/ksmserverrc:
 loginMode=restorePreviousLogout

Metodo 2 - esportare KDEWM (con KWIN)

Usando questo metodo Compiz-Fusion sarà caricato di default in KWIN. Questo rende Compiz-fusion più velice da caricare perchè evita di caricare KWin. In questo modo, tra l'altro, si elmina quella fastidiosa schermata nera che capita di vedere usando algri metodi (quando si passa da KWin a Compiz).

Da root si deve creare un piccolo script eseguendo i seguenti comandi da terminale.

 echo "compiz --replace ccp --sm-disable &" > /usr/bin/compiz-fusion
 chmod +x /usr/bin/compiz-fusion

Ora basta aggiungere la seguente riga al tuo ~/.bashrc cosi' che KDE carichi compiz (attraverso lo script appena creato) invece di kwin.

export KDEWM="compiz-fusion"

GNOME

Autostart (senza "fusion-icon")

1) Crea il file /usr/share/applications/compiz.desktop con la seguente dicitura:

       [Desktop Entry]
       Type=Application
       Encoding=UTF-8
       Name=Compiz
       Exec=/usr/bin/compiz ccp
       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

Attenzione: Se non funziona prova:

 Exec=/usr/bin/compiz ccp --indirect-rendering

o

Exec=/usr/bin/compiz --replace --sm-disable --ignore-desktop-hints ccp --indirect-rendering

al posto di

Exec=/usr/bin/compiz ccp

2) Aggiungi le seguenti chiavi di registro:

       gconftool-2 --set -t string /desktop/gnome/session/required_components/windowmanager compiz
       gconftool-2 --set -t string /desktop/gnome/applications/window_manager/current /usr/bin/compiz
       gconftool-2 --set -t string /desktop/gnome/applications/window_manager/default /usr/bin/compiz

Autostart (senza "fusion-icon" Gnome precedenti alla 2.4)

Questo procedimento funziona se si esegue l'accesso con GDM

Crea un file chiamandolo /usr/local/bin/compiz-start-boot

       #!/bin/bash
       export WINDOW_MANAGER="compiz ccp"
       exec gnome-session

renderlo eseguibile (chmod +x). Successivamente crea il file /etc/X11/sessions/Compiz.desktop contenente la seguente dicitura:

       [Desktop Entry]
       Version=1.0
       Encoding=UTF-8
       Name=Compiz on GNOME
       Exec=/usr/local/bin/compiz-start-boot
       Icon=
       Type=Application

Seleziona Compiz su Gnome sulla tua sessione e tutto andrà bene.

Autostart (con "compiz-fusion")

Per avviare Compiz Fusion automaticamente quando fai il login,

aggiungi in [Sistema] -> [Preferenze] -> [Sessioni] -> [Programmi d'Avvio]


Nome: "Compiz Fusion"

e

Comando: "fusion-icon"

Aggiungere "Compiz Fusion" alla lista dei programmi all'avvio è una buona idea per cambiare velocemente tra Metacity e Compiz.

Xfce

Xfce autostart (without "compiz-fusion")

TO DO

Xfce autostart (with "compiz-fusion")

Start "Autostarted Applications"

Add

  (Name:) Compiz Fusion

and

  (Command:) fusion-icon

Troubleshooting

  • la variabile $XLIB_SKIP_ARGB_VISUALS non deve essere settata
  • nell'utilizzo di compiz, alcune schede nvidia (con driver ufficiali) possono essere soggette a ripetuti sfarfalii dello schermo. In tal caso è necessario creare il file /etc/modprobe.d/nvidia.conf e inserire la riga:
options nvidia NVreg_RegistryDwords="PerfLevelSrc=0x2222"

See Compiz_Troubleshooting

Additional Resources

  • AIGLX
  • Xgl
  • Composite -- A Xorg extension required by composite managers
  • Compiz Fusion -- A composite and window manager offering a rich 3D accelerated desktop environment
  • Compiz -- The original composite/window manager from Novell
  • Xcompmgr -- A simple composite manager capable of drop shadows and primitive transparency
  • Beryl -- A composite/window manager forked from Compiz (since merged to become Compiz Fusion)
  • Wikipedia: Compositing Window Managers