-   Linux From Scratch (
-   -   Window Managers in Blfs build (

spiky0011 04-30-2011 02:35 PM

Window Managers in Blfs build
I have installed Fluxbox in blfs, Is it possible to install sawfish/metacity as well if so how would you switch between either of them. I have fluxbox set to start with command startx. Not that i,m not happy with Flux I would like to test drive the others

druuna 05-01-2011 02:48 AM


You can install all 3, no problem there.

Startx uses, among other files, the ~/.xinitrc file and as you might have noticed all three WM's you mention have a line in the .xinitrc file to make sure that specific WM is started. Putting all three in the same .xinitrc file won't work. One solution to this is to create 3 WM specific .xinitrc files and link the one you want to use to the real .xinitrc.

For example:

~/.xinitrc.metacity holds all the metacity specific entries,
~/.xinitrc.fluxbox the fluxbox specific entries,
~/.xinitrc.sawfish the sawfish specific entries.

If those are in place you can link the one you want to use to ~/.xinitrc:

ln -s ~/.xinitrc.fluxbox ~/.xinitrc
If you want to switch to say metacity:

rm ~/.xinitrc
ln -s ~/.xinitrc.metacity ~/.xinitrc

Hope this helps.

spiky0011 05-01-2011 03:12 AM

Hi yes i noticed xinitrc if I create a new user and set his xinitrc with exec sawfish then I can startx with sawfish that way.
Or can startx be changed (example startx-1) to point to another xinitrc?

charl^e 05-01-2011 04:48 AM

The startx script normally has a section in it where it looks up the .xinitrc file in the users home directory. It would be easy to change this, just go and read through the script. Personally, I'd take druuna's adivce. It'll be easier to play with other X configurations and to switch between them.


druuna 05-01-2011 05:05 AM


Originally Posted by spiky0011 (Post 4342568)
Or can startx be changed (example startx-1) to point to another xinitrc?

You don't have to change startx, you can give the file as an option. The following example starts fluxbox

startx ~/.xinitrc.fluxbox
and this would start blackbox:

startx ~/.xinitrc.blackbox
I do assume that ~/.xinitrc.fluxbox and ~/.xinitrc.blackbox hold the appropriate entries for that specific WM.

Also have a look at the xinit man page (startx is a wrapper that uses xinit and its options).

Hope this helps.

All times are GMT -5. The time now is 07:37 AM.