LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-13-2011, 08:59 PM   #1
trademark91
Member
 
Registered: Sep 2009
Distribution: Slackware -current x64
Posts: 372

Rep: Reputation: 72
using compiz-fusion as a standalone window manager


does anyone know how to do this exactly?

i found this http://crunchbanglinux.org/forums/to...indow-manager/ it has screenshots of exactly what i'm looking for, but i cant actually get it to work when following their instructions.

i create the fusion.desktop file and the start-fusion.sh file, but they do not show up in xwmconfig or KDM. is there something in particular for slackware that i have to do to add the .desktop entry to my list of sessions?
 
Old 01-14-2011, 12:42 AM   #2
androidd
LQ Newbie
 
Registered: Oct 2009
Location: Albuquerque
Distribution: Slackware 13.1 / Debian / Ubuntu 10.10
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by trademark91 View Post
does anyone know how to do this exactly?

i found this http://crunchbanglinux.org/forums/to...indow-manager/ it has screenshots of exactly what i'm looking for, but i cant actually get it to work when following their instructions.

i create the fusion.desktop file and the start-fusion.sh file, but they do not show up in xwmconfig or KDM. is there something in particular for slackware that i have to do to add the .desktop entry to my list of sessions?
Here is the rep for Slackware 13.1 - which I'm about to try n see if it works.. I will let you know

http://slackbuilds.org/repository/13...cairo-compmgr/
http://slackbuilds.org/repository/13...p/fusion-icon/


also this thread might help
http://www.linuxquestions.org/questi...13-1-a-813708/

Not sure how distant you want to be s far as standalone, I plan on trying to get this to run through gnome just figured it might be a starting place

Last edited by androidd; 01-14-2011 at 01:42 AM.
 
Old 01-14-2011, 10:15 AM   #3
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 109Reputation: 109
compiz is a Window Manager and a Composite Manager.

To use compiz as a 'stand-alone' you will probably want to also run a taskbar. There are many available that all work in different respects. You can even run xfce's panel and none of the other stuff that comes with xfce. You will probably want to install some of the extras from slackbuilds.org as well. They will give you window decorations (title bar/close buttons/etc.) and a configuration manager.

Once you know what you want, you can create your own xinitrc file. I would recomend the following
Code:
cp /etc/X11/xinitrc/xinitrc.fluxbox $HOME/.xinitrc
Edit $HOME.xinitrc and change the last line from "exec /usr/bin/startfluxbox" too
Code:
# Any command you want to run before the window manager should be "<command> &"
# '&' tells the script to execute the command in the background and continue processing
# command &

# Taskbar
xfce4-panel &

# Uncomment the following if you install the compiz extras on slackbuilds.org
# fusion-icon &

# Finally replace the current process with compiz
exec /usr/bin/compiz

I HIGHLY recommend you install the extras for compiz and configure it with some window decorations. Compiz is unusable without window decorations as all windows opened can not be resized/closed/minimized/etc. unless you know the keyboard shortcuts.



On another note,
cairo-compmgr is not a window manager, it is only a composite manager and it has less features. However, it has more features than xcompmgr. It's nice if you want basic effects and still want to use things like fluxbox.
 
Old 01-14-2011, 02:00 PM   #4
trademark91
Member
 
Registered: Sep 2009
Distribution: Slackware -current x64
Posts: 372

Original Poster
Rep: Reputation: 72
Quote:
Originally Posted by lumak View Post
compiz is a Window Manager and a Composite Manager.

To use compiz as a 'stand-alone' you will probably want to also run a taskbar. There are many available that all work in different respects. You can even run xfce's panel and none of the other stuff that comes with xfce. You will probably want to install some of the extras from slackbuilds.org as well. They will give you window decorations (title bar/close buttons/etc.) and a configuration manager.

Once you know what you want, you can create your own xinitrc file. I would recomend the following
Code:
cp /etc/X11/xinitrc/xinitrc.fluxbox $HOME/.xinitrc
Edit $HOME.xinitrc and change the last line from "exec /usr/bin/startfluxbox" too
Code:
# Any command you want to run before the window manager should be "<command> &"
# '&' tells the script to execute the command in the background and continue processing
# command &

# Taskbar
xfce4-panel &

# Uncomment the following if you install the compiz extras on slackbuilds.org
# fusion-icon &

# Finally replace the current process with compiz
exec /usr/bin/compiz

I HIGHLY recommend you install the extras for compiz and configure it with some window decorations. Compiz is unusable without window decorations as all windows opened can not be resized/closed/minimized/etc. unless you know the keyboard shortcuts.



On another note,
cairo-compmgr is not a window manager, it is only a composite manager and it has less features. However, it has more features than xcompmgr. It's nice if you want basic effects and still want to use things like fluxbox.
well, you were kind of right. that causes an instant crash on my machine. what i did was create the start-fusion.sh file detailed here:http://crunchbanglinux.org/forums/to...indow-manager/

then modified your .xinitrc file to say:
Code:
#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws 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

# Start the window manager:
exec /usr/local/bin/start-fusion.sh


that works beautifully. here are some screenshots

http://img717.imageshack.us/img717/995/compizwm1.png
http://img718.imageshack.us/img718/9253/compizwm2.png
http://img814.imageshack.us/img814/2125/compizwm3.png

in order to use the *box style desktop menus, i downloaded compiz-deskmenu from: git://cgit.compiz.org/~crdlb/compiz-deskmenu/ and added a custom command compiz-deskmenu under "commands" in ccsm.

in order to get the gnome apps to work with my theme, i installed gtk-qt-engine, qtcurve-kde, and qtcurve-gtk from slackbuilds. i made the symbolic link for theming as detailed in qtcurve-gtk, and voila, my compiz and gtk windows had my kde theme.

hope that helps anyone willing to try it.

Last edited by trademark91; 01-14-2011 at 02:20 PM.
 
Old 01-15-2011, 06:39 PM   #5
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 109Reputation: 109
everything that you put in the start-fusion.sh could instead go in the .xinitrc file. All .xinitrc does is let the 'startx' command know what commands to execute when starting the X server. In the case of compiz you need to run the window manager (compiz), window decorations (emerald), a menu app if you want one, and a task bar app if you want one.

the 'exec' line will be what you see when you do 'ps u' to list your processes.

So if you have 'exec compiz ccp', you will see 'compiz ccp' listed as the program executed.

The way you have it now you will see 'start-fusion.sh'

And the reason you see 'fluxbox' instead of 'startfluxbox', when you are running fluxbox, is because 'startfluxbox' is also a script that has 'exec fluxbox' at the end of it. So you are doubly replacing the process... if you didn't use exec in any of the scripts, you would see the following listed when running fluxbox

startx
startfluxbox
fluxbox



Speaking of exec.

I personally like running
exec startx

So if you exit, you automatically log out.

additionally,

exec reset

Is nice so that nobody can see you were logged into a console.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
compiz-fusion window focus not properly switching rmjohnso Slackware 3 03-14-2010 11:05 AM
not able to run 'compiz fusion' and 'avant window navigator' mathu Linux - Newbie 7 08-08-2009 01:44 PM
composting window manager (compiz-fusion on nvidia tv out) cjae Linux - Hardware 0 09-09-2008 01:18 PM
Compiz-fusion opensuse loose the title to each window kinnth Linux - Software 4 04-06-2008 10:57 AM
compiz fusion How to raise window off the cube? dv502 Linux - General 2 11-18-2007 07:10 AM


All times are GMT -5. The time now is 01:17 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration