You are not logged in.

#1 2007-06-23 14:27:17

KomodoDave
Member
From: Oxford, UK
Registered: 2007-04-22
Posts: 162
Website

XFCE4 with compiz - my .xinitrc lines aren't right

I've got this in my .xinitrc currently:

#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
    xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
    xmodmap $usermodmap
fi


xfce-mcs-manager
xfwm4 --daemon
gtk-window-decorator --replace &
compiz --replace --use-cow gconf &
xfdesktop &
exec xfce4-panel

Compiz runs, but gtk-window-decorator doesn't want to work... there are no window decorations on the windows in XFCE4. I've tried switching the order of the 'compiz ...' and 'gtk-window-decorator' lines, but the result is the same.

Can anyone explain what I'm doing wrong?

Thanks a lot.

- Dave

Offline

#2 2007-06-23 14:36:43

KomodoDave
Member
From: Oxford, UK
Registered: 2007-04-22
Posts: 162
Website

Re: XFCE4 with compiz - my .xinitrc lines aren't right

By the way, if I try to start gtk-window-decorator from within XFCE4 launched with the above .xinitrc, I get this:

Window manager warning: Failed to load theme "Clearlooks": Failed to find a valid file for theme Clearlooks

I've done 'pacman -S clearlooks', so I'm not sure whether this is the problem or not... Googling has provided no remedy for this, although I'm still looking into it.

- Dave

Offline

#3 2007-06-24 16:58:57

KomodoDave
Member
From: Oxford, UK
Registered: 2007-04-22
Posts: 162
Website

Re: XFCE4 with compiz - my .xinitrc lines aren't right

Someone must be running XFCE4 with Compiz/Compiz-Fusion...

I'm intrigued to see there's a 'Compiz' menu within XFCE4 big_smile  I'm guessing that if I can find how to get Compiz working properly, things might be quite easy to configure from then on..

Googling and searching the forums still hasn't provided a solution. Would anyone care to explain the sequence of commands I should use to run Compiz with XFCE4?

Many thanks.

- Dave

Offline

#4 2007-06-25 00:19:49

Andrew
Member
From: New Zealand
Registered: 2006-10-17
Posts: 3
Website

Re: XFCE4 with compiz - my .xinitrc lines aren't right

Try installing metacity, gtk-window-decorator uses metacity themes.

Offline

#5 2007-06-25 12:49:41

KomodoDave
Member
From: Oxford, UK
Registered: 2007-04-22
Posts: 162
Website

Re: XFCE4 with compiz - my .xinitrc lines aren't right

Andrew wrote:

Try installing metacity, gtk-window-decorator uses metacity themes.

Ok, I'll do that, cheers Andrew.

I can now get compiz running by manually running compiz-manager, and the XFCE4 compiz settings panel works great. However, even doing 'compiz-manager -fi' to reset the config files doesn't let  me run 'compiz' to get everything operating as expected.

Very confusing...

- Dave

Offline

#6 2007-06-26 19:18:35

KomodoDave
Member
From: Oxford, UK
Registered: 2007-04-22
Posts: 162
Website

Re: XFCE4 with compiz - my .xinitrc lines aren't right

I finally got XFCE4 starting properly with Compiz-Fusion big_smile

The steps I followed (fairly close to the wiki's Beryl entry.. wish I'd known that beforehand =P ):

(i) Add nesl247's repo to your /etc/pacman.conf :

[compiz-fusion]
Server = http://arch.nesl247.org/compiz-fusion/i686

(ii) Install compiz-fusion and extras:

$ su
$ pacman -S compiz-fusion compiz-fusion-extra

(iii) Edit /etc/xdg/xfce4-session/xfce4-session.rc

Replace:

Client0_Command=xfwm4

With:

Client0_Command=compiz-manager   # this will run Emerald as well, so no need to run separately =)

(iv) Your ~/.xinitrc entry should read:

exec dbus-launch --exit-with-session --auto-syntax startxfce4

(v) Remove any old sessions you've saved to avoid problems

rm -r ~/.cache/sessions/*

Easy, huh? smile

Edit: By the way, you should disable session saving (Right-click desktop -> Settings -> Sessions and Startup Settings -> uncheck 'Automatically save...', then upon 'Quit' make sure you uncheck the 'Save session' box); it gums up the works with Compiz, seemingly.

- Dave

Last edited by KomodoDave (2007-06-27 09:31:34)

Offline

Board footer

Powered by FluxBB