You are not logged in.

#1 2007-07-28 10:02:35

Kane
Member
Registered: 2006-10-08
Posts: 220

Separate Xorg Configs for each user?

Hey guys,
Im just wondering, is it possible to have separate xorg configs for each different user?
e.g. For one user i might have dual screens setup, but for another user maybe i just want them to use a single screen.

Is this possible?

Anyone able to point me in the right direction?

Cheers
Kane

Offline

#2 2007-07-28 10:34:58

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: Separate Xorg Configs for each user?

i guess u can since the file which sets all these lies in $HOME/.xinitrc


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#3 2007-07-28 20:41:49

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Separate Xorg Configs for each user?

You need to specifie different server layouts in xorg.conf
For my laptop, I have the following:

# layout pour laptop seulement
# Start it with
# startx -- -layout Laptop
Section "ServerLayout"
        Identifier     "Laptop"
        Screen         0 "Screen0"
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "Synaptics Touchpad"
        InputDevice    "USB Mouse" "CorePointer"
EndSection

# layout pour ecran LCD 1280x1024
# Start it with
# startx -- -layout LCD
Section "ServerLayout"
        Identifier     "LCD"
        Screen         1 "Screen1"
        Screen         0 "Screen0"
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "Synaptics Touchpad"
        InputDevice    "USB Mouse" "CorePointer"
EndSection

# Xinerama server layout
# Start it with
# startx -- -layout Xinerama
Section "ServerLayout"
        Identifier     "Xinerama"
        Screen         0 "Screen0"
        Screen         1 "Screen1" LeftOf "Screen0"
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "Synaptics Touchpad"
        InputDevice    "USB Mouse" "CorePointer"
        Option         "Xinerama" "true"
EndSection

You specify the layout you want when running startx, e.g. I use
startx -- -layout Xinerama
when I want to use xinerama dual display.

Offline

#4 2007-07-28 20:51:49

skymt
Member
Registered: 2006-11-27
Posts: 443

Re: Separate Xorg Configs for each user?

Snowman wrote:

You specify the layout you want when running startx, e.g. I use
startx -- -layout Xinerama
when I want to use xinerama dual display.

This can be combined with the .xserverrc file to do what Kane was looking for. Here's an example:

#~/.xserverrc
exec /usr/bin/Xorg :0 -nolisten tcp -layout Xinerama

Last edited by skymt (2007-07-28 20:52:02)

Offline

Board footer

Powered by FluxBB