Testing multiple window manager simultanously with Xnest

12.09.2005 at 20:18

My favorite window manager is currently fluxbox but i recently wnated to try out wmii. So i searched for a way to run multiple window managers and still be able to switch between them. This is were Xnest comes in. With Xnest it is possible to nest a xserver huh suprised aren't you ;)

We have to pass another display number to Xnest because the default 0:0 is normally already in use.

Xnest -ac :1

Afterwards we can start any application on our nested Xserver the easiest way is probably to launch an xterm and issue further commands from there.

xterm -display :1

Note that within our new xterm the display environment variable is set to :1.0

echo $DISPLAY
:1.0

Another way would be to simply set the display variable to 1 instead of 0 in the terminal where you started Xnest. All application will redirect their graphical output to the nested x server.

export DISPLAY=":1.0"

Next step would probably be to start a window manager in my case i just typed /usr/bin/wmii in my xterm and everything worked as expected.

Comments (0)

There are currently no comments available