I just have this in my .xinitrc:
Code: Select all
/usr/bin/compiz --replace ccp &
/usr/bin/startxfce4
The --replace isn't necessary as no wm has started. I also have it set up so xfwm4 doesn't start, or else it could replace compiz.
To stop xfwm4 from starting, comment out these (or similar) lines in /etc/xdg/xfce4-session/xfce4-session.rc:
Code: Select all
#Client0_Command=xfwm4
#Client0_PerScreen=False
Perhaps you could instead put compiz there, but I had troubles doing that. Also, I had troubles with the compiz-start script, so I ran compiz directly.